jump to navigation

Photobucket - Customisable Thumbnail Size November 8, 2005

Posted by Lucanos in : programming, javascript, greasemonkey , trackback

This GreaseMonkey userscript allows the user to specify their own thumbnail size for Photobucket.com.
NOTE: This script operates by accessing the full-resolutions of the images being processed and then squeezing them into the requested size on screen. As such this script is rather bandwidth-demanding, and is not recommended for people with bandwidth limits/slow connections.

Version History:

Configuration:

  1. In Firefox go to “Tools“.
  2. Select “Manage User Scripts“.
  3. Select “Photobucket.com Thumbnail Resizer“.
  4. Click the “Edit” Button.
    Your computer will open the Userscript file using your default HTML editor.
  5. In the coding find the line:
    var RequestedLongestEdge = “320“; // in pixels
  6. Modify the number in this line (in this case 320) to reflect your desired length for the longest edge (this measure is in pixels).
  7. Save the file.
  8. Reload your Photobucket page.

How It Does What It Does:

  1. Access the Array of Images
  2. Loop through them looking for images with filenames starting “th_” (which appears to be what Photobucket does to designate thumbnails
  3. Remove the “th_” if present (makes the thumbnail the original file)
  4. Determine the orientation of the image
  5. Make the longest side (width if landscape, height if portrait) the specified length

Enjoy!

Comments»

1. [Dusty Bin] - January 10, 2007

Hey Lucanos.

After searching for a long time for scripts that let me batch download the full images from photobucket accounts, this is the only one that actually works! It’s not the way I had imagined me grabbing the images, but I love it. I let the page load then use the DownThemAll extension to grab the full images.

Thank you sooooooo much for this, you’ve made my image grabbing sooooooo much easier!

Much Appreciated!
Dusty.

Hey Dusty,

Happy to hear that this helps!
Thanks for letting me know.