ImageMagick with Drupal 5 for nicer image scaling

To put images on Drupal sites I mainly use ImageField or my hacked version of the inline module together with ImageCache and Thickbox

Imagecache can scale and crop images on the fly according to the presets you set up, a very nice module. All the small images on this blog is done this way. It will use the image toolkit from the Drupal settings on your site. This will most likely be GD2 toolkit since it comes with almost all installs of PHP and Drupal supports it out of the box.

GD2 works well but I was not satisfied with the quality of the scaled images. I know the Image module does it better with the help of the ImageMagick toolkit but I don’t want to use it for all my image needs.

The other day I stumbled on this post by zoo33 Now available: better control over ImageMagick operations. As of version 5.x-1.6 the Image module comes with “ImageMagick Advanced Options”. This new module can be activated separately from the rest of the packages and are used on all image operations in Drupal.

It’s now active here on xdeb.org and the scaled images looks a lot better. I use JPEG quality 80% and sharpening filter with settings 90/0,9.

Since all scaled images was automatically done with Imagecache I just told it to fluch all old images and they are rebuilt with the help of the newly activated ImageMagick toolkit. Did I say the Imagecache is a really nice module!

Comments

% settings?

What would you recommend to be a good quality setting to achieve the right balance between quality and size?

Is 80% suitable for a photo gallery or should I notch it up to 85%?

The best way is to test it on

The best way is to test it on some pictures and judge the result yourself. I set it to 80% on all my own sites just for the feeling of setting it a bit higher than the default 75% :-).

Thanks for the reply.

Thanks for the reply.

I have tested the GD library on localhost and found that 85% roughly suits my needs. I guess it should be the same for ImageMagick as well.

Cheers,
Shaunak

Post new comment

The content of this field is kept private and will not be shown publicly.
  • No HTML tags allowed
  • Lines and paragraphs break automatically.

More information about formatting options

Syndicate content