Drupal coder

Get better (sharper) thumbnails with imagecache

We all use imagecache for our thumbnail and image manipulation need. But after resizing (or other operations) the images might look a bit blurry.

What's the opposite of blurry? Yes: "sharp". So we need to put a sharpen filter on our images.

With the release of imagecache 2 came the ability to create your own addons/effects/filters to plug into imagecache. One of those plugins is imagecache_unsharp and this does exactly what we need.

So just put an unsharp mask filter after all your other manipulations and there are your better images.

Here's a preview:
sharpen.jpg

September 17, 2008Drupal, imagecache

Comments

I have notice that images scaled with imagecache are blurry. In fact it has nothing with imagecache but with GD image manipulation. Take a look here http://drupal.org/node/60368. Off course you can additionally sharpen image but when setting jpeg quality to 95% unsharp mask is not necessary. GD deafult quality is 75% so it creates very blurry images.

Hope this helps.

A must have module!

I can't wait until it becomes a parrt of the Drupal core next year with the realease of Drupal 7.

Er zit een sharpen/unsharpen standaard bij imagcache. Je kan die normaal gezien gebruiken. Ik heb dit wel niet getest.

Weet je toevallig een oplossing voor Drupal 6 ?
Welke mask heb je juist ingesteld hierboven?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options