BukkitDev featured image API

Discussion in 'Bukkit Tools' started by lol768, Dec 1, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    lol768

    Since BukGet doesn't support this yet (but should do soon, this one will only be temporary as the BukGet service will be superior to mine), here's my version:
    http://199.241.30.86/bukkitImage.php?slug=slug

    e.g.
    http://199.241.30.86/bukkitImage.php?slug=worldguard
    http://199.241.30.86/bukkitImage.php?slug=worldedit
    http://199.241.30.86/bukkitImage.php?slug=battlekits&rd=1

    Database is updated every day or when image URLs are not available.

    Examples:
    [​IMG]

    [​IMG]

    https://github.com/SteveMcGrath/bukget/issues/77
     
    hawkfalcon likes this.
  2. Offline

    Sushi

  3. Offline

    joshwenke

    Oh nice!
     
  4. Offline

    404Ninja

    Good job!
     
  5. Offline

    lol768

    If you add &rd=1 (like I did with the images in the post) then the server will do a 301 Moved Permanently direct and also redirect the web browser if any. I don't want to store the actual images, because that would use my bandwidth + disk space, so I just cache the URLs for now.

    There's also bukkitThumb.php:
    http://199.241.30.86/bukkitThumb.php?slug=battlekits&rd=1

    which gives:
    [​IMG] [​IMG] [​IMG] [​IMG]
     
  6. Offline

    Mastergalen

    lol768 likes this.
  7. Offline

    lol768

    Awesome! I'll let you know if I exceed my bandwidth. I'll blame it on you :p
     
  8. Offline

    Mastergalen

    I could help you host it if you need help :), got about 2TB of spare bandwidth lol.
     
  9. Offline

    lol768

    It actually appears to be pretty light:
    [​IMG]
    I'm about halfway through my billing period.

    Also, it might be worth caching the images. It will be somewhat sluggish because although I do cache on my end, I only cache the URL to conserve disk space which means that hmm, it doesn't seem to be caching. I'll look into it

    Caching now fixed, requests should speed up a bit now :D
     
  10. Offline

    Mastergalen

    Hmm, in the newest API version of bukget it now gives the URL of the featured image as well.
     
  11. Offline

    lol768

    Yep, see here:
    https://github.com/SteveMcGrath/bukget/issues/77

    Also, the original post:
    This will persist (as you can use it for getting thumbnails) for some time, also some people are reliant on it.
     
  12. Offline

    SteveMcGrath

    You guys can already play with the new API rev if you want. It's currently in dev, but all the information is in the BukGet thread or on Bukget.org ;)
     
  13. Offline

    SteveMcGrath

    All changes into Bukget have been promoted to production (including the one that sparked this thread) ;)
     
    lol768 likes this.
  14. Offline

    KeybordPiano459

    lol768
    When I put in the slug of one of my plugins, it just says bad slug =/
     
  15. Offline

    lol768

    Plugin URL?
     
  16. Offline

    KeybordPiano459

    http://dev.bukkit.org/server-mods/mcweapons/

    lol768
    Nevermind, I'm realizing that it's because I didn't upload an image for that project. I would recommend making a different message if you didn't upload one though.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
Thread Status:
Not open for further replies.

Share This Page