All | 43 Folders | Accessibility | BoingBoing | Books | Computer Related | Family | Films | General | Hacking | Hobbies | Humor | Java | Links | Omni | OpenSolaris | Puzzles and Games

« Previous day (Aug 8, 2005) | Main | Next day (Aug 10, 2005) »
20050809 Tuesday August 09, 2005

Cleaning Up Amazon Book Images

Recently I've seen a couple of blogs that have used a book image from Amazon, but have left all the "trimmings" on it. I'm pretty sure they didn't want that.

When I started my "Now Reading" column, Jon gave me this great tip on how to clean these images up.

For example, take the System of the World image that I'm currently using. (Of course that won't always by in my Now Reading column, but I'm probably safe for 2-3 months). The one that Amazon points you on their web page for this book is:

which has the URL:
http://images.amazon.com/images/P/0060523875.01._BO2,204,203,200_PIsitb-dp-500-arrow,TopRight,45,-64_AA240_SH20_SCLZZZZZZZ_.jpg

To clean this up, you want to remove everything from the first underscore through to everything upto (but not including) "LZZZZZ", and the last underscore. That gives you:

which is the URL:
http://images.amazon.com/images/P/0060523875.01.LZZZZZZZ.jpg

This image is way too big for what I want, so I replace the "L" (large" for "M" (medium) and end up with:

which is the URL:
http://images.amazon.com/images/P/0060523875.01.MZZZZZZZ.jpg

I then use that in my <img src ="...." alt="" /> line.

This technique also works for images in the other Amazon product areas.

[]

[]

[]

( Aug 09 2005, 06:39:31 AM PDT ) [Listen] Permalink Comments [2]