Creative Commons License

This work is licenced under a Creative Commons Licence.

User login

Getting images from an eBay gallery

While I won't go into the exact reasons, I recently wanted to get the images used in an ebay auction of an item I had won. Frustratingly, however, eBay's gallery interface does not allow me to do the normal "right-click>save image as" shenanigans, so I had to come up with an alternative. It's simple to get the image from your (firefox) browser cache, but can be a little tricky to identify which images are the ones you're looking for as they're all cryptically named.

However, usefully for us, eBay add the following to all their images "Processed By eBay with ImageMag". This is viewable by the file command, and I used the following to identify the eBay images in amongst the hundreds of other cached images:

cd ~/.mozilla/firefox/*.default/Cache

for i in *
    file "$i" | grep eBay

Very simple to identify the images wanted, assuming you don't have lots of eBay images in your cache. If you do, you're going to need to open all the images and work out which the ones you want are. The following will open all the images in gimp, allowing you to close the ones you don't want, and save the ones you do want in an appropriate location.

#so ugly I can't believe I'm putting this on the internet
for i in *
    gimp $(file "$i" | grep eBay | awk '{ print $1 }' | cut -d: -f1)

Anyway, I hopefully should be publishing some more useful information soon, after a long work-enforced hiatus from any non-work activity other than occasional sleeping.

you can do it quicker and

you can do it quicker and faster by turning off java/javascript and then using the usual right-click save as..