Tip Details Add a Related Tip

Rate as: Positive Negative

Creating thumbnails in Imagemagick

Imagemagick makes it really easy to create thumbnails. You just have to use the convert command with the -thumbnail option like this.

convert picture.jpg -thumbnail 120x120 picture-thumbnail.jpg

While that works, it's pretty boring. If you are using a recent version of Imagemagick, they have recently added a -thumbnail option which allows you to create "polaroid-like" thumbnails. These are pretty cool. When you use this command, it adds a thick white border to the picture along with drop shadow. You also get the option of tilting the picture to a jaunty angle. Here's how the command is used.

convert picture.jpg -thumbnail 120x120 -background black -polaroid 10 picture-thumbnail.png

This will result in a black colored drop-shadow and a picture that is angled at 10 degrees. A couple things to note here:

1) Since the resulting picture needs to use transparency (for the drop shadow and the angle), the result needs to be a format (in this case PNG) that supports transparency. JPG does not support transparency.

2) The picture size that is specified (120x120 in this case) is the size of the thumbnail portion of the picture, it does not include the border or shadow.

When you do this, here's what the resulting thumbnails look like.

The result of creating a thumbnail using Imagemagick's -polaroid command. The result of creating a thumbnail using Imagemagick's -polaroid command.

As with all Imagemagick commands, this one can be run in bulk to make the conversion a fast and easy process.
Rating: 100% positive, 3 total Votes
Categories: imagemagick digital cameras photography
Added: on Jun 14, 2007 at 12:56 pm
Added By: an anonymous user

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

How to Recover Your Digital Photos If You Have Lost Or Misplaced Them On Your Computer

100% positive, 0 comments
– Tip added by an anonymous user on Mar 15, 2008 at 8:05 pm

Create HDR photos in photoshop

100% positive, 0 comments
– Tip added by an anonymous user on May 14, 2007 at 2:07 pm

Use a photo light box whenever you photograph jewelry or craft items

100% positive, 0 comments
– Tip added by an anonymous user on Sep 03, 2007 at 12:42 am

For best pictures don't use digital zoom

100% positive, 1 comment - last added on Apr 10, 2008 at 12:34 pm
– Tip added by shutterbug on Aug 29, 2007 at 7:46 am

Easily remove people from photos

100% positive, 0 comments
– Tip added by an anonymous user on Aug 26, 2007 at 12:14 pm

Underwater photography tips

100% positive, 0 comments
– Tip added by an anonymous user on Mar 29, 2007 at 12:40 pm

Easy polarizing filter for point and shoot digital cameras

100% positive, 0 comments
– Tip added by an anonymous user on Mar 14, 2007 at 11:49 am

Taking better digital photos

no ratings, 0 comments
– Tip added by an anonymous user on Sep 09, 2008 at 10:26 am

Engraving effect in Photoshop

no ratings, 0 comments
– Tip added by an anonymous user on Apr 27, 2007 at 2:37 pm

Create antique-looking photos

no ratings, 0 comments
– Tip added by an anonymous user on Apr 22, 2007 at 4:45 pm

Getting sharp photos with a digital camera

no ratings, 0 comments
– Tip added by an anonymous user on Apr 19, 2007 at 9:42 am

Amateur Glamour Photography: Photo Session Tips

100% positive, 0 comments
– Tip added by phyodor 1 day, 10 hours ago

Let photos tell life stories and keep favorite memories

50% positive, 1 comment - last added on Sep 24, 2008 at 7:28 pm
– Tip added by Jessica on Sep 24, 2008 at 7:18 pm

Reducing red eye

100% positive, 0 comments
– Tip added by an anonymous user on Aug 18, 2008 at 2:06 pm

taking better pictures

Categories: photography cameras
100% positive, 0 comments
– Tip added by an anonymous user on Jul 07, 2008 at 7:39 am

Taking better portraits

100% positive, 0 comments
– Tip added by an anonymous user on Jun 06, 2008 at 1:08 pm

Photoshop

100% positive, 0 comments
– Tip added by an anonymous user on Jun 04, 2008 at 8:10 am

Cheap Digital Cameras

100% positive, 0 comments
– Tip added by an anonymous user on May 20, 2008 at 12:40 pm

Discover A Totally Mind-Blowing Zoom Technique

0% positive, 0 comments
– Tip added by phyodor on Oct 02, 2008 at 6:08 am

Properly size your images when displaying them online

no ratings, 0 comments
– Tip added by an anonymous user on Jun 26, 2008 at 6:18 pm