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, 6 total Votes
Categories: imagemagick digital cameras photography
Added: on Jun 14, 2007 at 12:56 pm
Added By: an anonymous user
Searches: thumbnail imagemagick picture command camera

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

Easily remove people from photos

100% positive, 0 comments
– Tip added by an anonymous user on Aug 26, 2007 at 12:14 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

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

0% positive, 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

Make people look skinnier in photos

100% positive, 0 comments
– Tip added by an anonymous user on Mar 02, 2009 at 9:54 am

iPhoto constantly asking to import iPhone photos

75% positive, 1 comment - last added on Jan 30, 2009 at 4:34 pm
– Tip added by an anonymous user on Jan 30, 2009 at 12:33 pm

Make your own photo collages

66% positive, 0 comments
– Tip added by an anonymous user on Feb 08, 2009 at 12:25 pm

Long Exposure and Macro Photography Shots

100% positive, 0 comments
– Tip added by Nick Awkward on Feb 03, 2009 at 5:05 am

Geotagging photos on the Blackberry Storm

100% positive, 0 comments
– Tip added by an anonymous user on Jan 20, 2009 at 10:19 am

How to create a Polaroid from your digital photos

no ratings, 0 comments
– Tip added by an anonymous user on Aug 19, 2009 at 2:27 am

Dropped digital camera

no ratings, 0 comments
– Tip added by an anonymous user on May 02, 2009 at 6:57 am

Taking better photos at night

Categories: photography cameras
no ratings, 0 comments
– Tip added by an anonymous user on Jan 06, 2009 at 10:05 am

Picasa for the Mac

no ratings, 0 comments
– Tip added by an anonymous user on Jan 06, 2009 at 8:07 am