• Skip to main content
  • Skip to footer

TechGirlKB

Performance | Scalability | WordPress | Linux | Insights

  • Home
  • Speaking
  • Posts
    • Linux
    • Performance
    • Optimization
    • WordPress
    • Security
    • Scalability
  • About Janna Hilferty
  • Contact Me
You are here: Home / WordPress / How to download your images held hostage by Photobucket

How to download your images held hostage by Photobucket

Why download your Photobucket images?

Earlier this year, Photobucket changed their Terms and Conditions fairly silently, to prevent linking of images on their service on 3rd party websites for free. Instead, users who had posted Photobucket links to their images on another website saw this ugly prompt to upgrade their account.

Photobucket had already done this for users when they reached a very high bandwidth usage, but previously an upgrade was only $25. Now the ability to hotlink your images from Photobucket comes with a steep $400/year price tag. Many users called it extortion and blackmail. Especially because users soon discovered the interface to download their images to then post them from their own website was broken. And, the option to upload an image in a support ticket with Photobucket was broken too. This left many users in a panic. There simply was no way to get their site working again.

Luckily, if you’re familiar with Terminal and Bash, there’s a pretty easy way to get your images back. Philip Jewell posted helpful steps on Github as well as images to help guide the way.

Get the Image Links

First, log into your Photobucket account and select the album of images you need (this process goes one album at a time). Choose an image or two in the album and a “Select all” box appears. Choose “Select all” and wait for your count of images in the bottom to update before continuing. Now navigate to the next album you’d like to download and repeat the process. Do this for all albums you need to download. Through this process your total images selected should continue to grow. When you’re finished, click “Link” at the bottom of your screen.

Photobucket will open a window containing all the direct links for your images in it. Clicking will copy the links to your clipboard.

From here, create a folder on your desktop called “photobucket.” Then open a text editor on your computer and paste your image links into it. Save it as a TXT file (e.g. my_photobucket_files.txt) to your “photobucket” folder on your desktop.

Now you are ready to download the files.

Please note: the following instructions are for users on Mac OS X. If you are using a Windows machine, users have provided solutions in the comments of Philip Jewell’s post on Github: https://gist.github.com/philipjewell/a9e1eae2d999a2529a08c15b06deb13d

Download your images

Now the fun part: downloading your images from Photobucket. In your Terminal application, paste the following commands:

cd ~/Desktop/photobucket
cut -d\/ -f 7 photobucket_files.txt | grep "\." | while read file; do grep "${file}$" photobucket_files.txt; done | while read file; do curl -O --referer "http://s.photobucket.com/" ${file}; done
cut -d\/ -f 7 photobucket_files.txt | grep -v "\." | sort -u | while read dir; do mkdir ${dir}; cd ${dir}; grep "/${dir}/" ../photobucket_files.txt | while read file; do curl -O --referer "http://s.photobucket.com/" ${file}; done; cd -; done

What is this command doing? It’s looping through all your images to download them, and using “http://s.photobucket.com/” as a referer. This tricks Photobucket into thinking the requests are coming from itself. This allows you to easily download your images you need without dealing with their buggy and ad-ridden interface, or dealing with their upgrade messaging.

Some users have also suggested using sed to take out IMG tags as well:

sed -i 's/\[IMG]//g; s/\[\/IMG]//g' photobucket_files.txt


That’s all there is to it! Hopefully this guide has helped you download your images so they can be uploaded directly to your site, store, forum, or wherever they were needed. Have any comments, questions, or notes to add? Let me know in the comments, or Contact Me.

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

Reader Interactions

Comments

  1. Tim C. says

    June 26, 2019 at 1:23 pm

    Janna, thank you for this. Unfortunately, since your original posting, it looks like Photobucket has disabled the “select all” button. I’m going to bite the bullet and select each one of my ~2,500 photos … one at a time … and download them. And, hopefully will be done with Photobucket once and for all.

    Reply
  2. Bob says

    July 19, 2019 at 10:50 am

    Does this work on a Mac?

    Reply
  3. Christa Roenfanz says

    July 21, 2019 at 4:32 pm

    So, I tried this in windows 10. I even downloaded a terminal shell from the windows store. I cannot seem to do this. it keeps telling me: C:\[redacted]\Photobucket>cut -d\/ -f 7 photobucket_files.txt | grep “\.” | while read file; do grep “${file}$” photobucket_files.txt; done | while read file; do curl -O –referer “http://s.photobucket.com/” ${file}; done
    ‘cut’ is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\jazzz\Desktop\Photobucket>

    How do I do this if there is no cut command?

    Reply
  4. Daysi says

    July 27, 2019 at 10:53 am

    I tried doing this, When I try to paste the links into a text editor it does not work. The option to paste is not available.

    Reply
  5. Brian says

    August 18, 2019 at 2:57 am

    Cut is no longer a valid command.. help! Need my photos please.

    Reply
  6. Chelsea says

    August 26, 2019 at 3:44 pm

    What is supposed to happen after entering this into the terminal application? I’m not exactly familiar with coding stuff. Will this be any different if I have a Mac computer?

    Reply
  7. Juuan Castillo says

    August 28, 2019 at 10:17 am

    This didn’t work for me. Eveytime I paste the link above into my command center its says ‘cut’ is not recognized as an internal or external command,
    operable program or batch file

    Reply
  8. Annette says

    August 28, 2019 at 6:47 pm

    I attempted to run this command but got this message. Can anyone help?

    C:\Users\annet>cd ~/Desktop/photobucket
    The system cannot find the path specified.

    C:\Users\annet>cut -d\/ -f 7 photobucket_files.txt | grep “\.” | while read file; do grep “${file}$” photobucket_files.txt; done | while read file; do curl -O –referer

    “http://s.photobucket.com/” ${file}; done
    ‘cut’ is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\annet>cut -d\/ -f 7 photobucket_files.txt | grep -v “\.” | sort -u | while read dir; do mkdir ${dir}; cd ${dir}; grep “/${dir}/” ../photobucket_files.txt | while read file; do curl -O –referer “http://s.photobucket.com/” ${file}; done; cd -; done
    ‘cut’ is not recognized as an internal or external command,
    operable program or batch file.

    Reply
  9. Ruhel says

    September 7, 2019 at 2:25 am

    Old article but saved me hours of work. I contacted Photobucket after they sent me an ultimatum email that they would be watermarking all my images, even though I can’t link to them anyway. I asked for a download tool but never received a response so thanks to this article I was able to save all my pictures.
    Thank you

    Reply
  10. Roxy says

    September 8, 2019 at 1:26 am

    It tells me that cut isn’t recognized. Help?

    Reply
« Older Comments
Newer Comments »

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

Categories

  • Ansible
  • AWS
  • Git
  • Linux
  • Optimization
  • Performance
  • PHP
  • Scalability
  • Security
  • Uncategorized
  • WordPress

Copyright © 2025 · Atmosphere Pro on Genesis Framework · WordPress · Log in