So far, the title says it all--it would be nice to have support of ImageMagick Advanced Options in ImageAPI, like it comes with Image module as of version 1.6.

For most web sites I make, I need a sharpening filter. As digital pictures are resized several times until they are presented to the user, sharpening is very important. Resizing takes place maybe before, then on upload (necessary cause of 5 to 10 Megapixel photos/digital cameras), and finally on derivate creation.

Also for small thumbnail sizes sharpening is very important. Color conversion (e.g. from CMYK to RGB) is another issue, important for some customers/users.

I upgraded to ImageCache 5.x-2.0, which requires ImageAPI; and ImageAPI has it's own implementation of GD2 and ImageMagick. So far I didn’t find a way to enable ImageMagick Advanced Options (including the sharpening filter). The image_im_advanced module (that comes with the Image module 1.6+) by design only enables these options under admin/settings/image-toolkit.

I am a designer, and not a programmer. Nevertheless I took a look at the image_im_advanced modules source code, and found that it is not that long, with only four functions. Therefore it could be, that it’s not a big deal, to adopt the code from admin/settings/image-toolkit to admin/settings/imageapi (I don’t know).

But maybe there is someone out there capable an willing to port this module from Image to ImageAPI. Or is Advanced Options support for ImageAPI already planned?

Thankyou in advance for your answers and help!

Comments

dopry’s picture

Version: 5.x-1.1 » 5.x-1.x-dev

I think we could entertain this for a 1.2 release... I'd rather them be individual calls against imageapi instead of generic options... but I don't know that I have sharp/unsharp available for GD. I'll research it when I have time for imageAPI again, unless someone else has times to look into it and offer up a patch.

Moonshine’s picture

This is actually on my "todo" list for Imagemagick. I'll take a look at GD as well, but I think Dopry is correct about it lacking sharpening options.

Either way, I'll post a patch once I wire it together. I'd rather have Dopry use his time on Imagefile/Imagecache/Filefield. :D

Moonshine’s picture

I've submitted a sharpening patch for ImageAPI:

#266265: Sharpening for ImageAPI/Imagecache

And it's partner patch for Imagecache:

#266268: Sharpening for Imagecache

So maybe they will close this issue? :)

dopry’s picture

Status: Active » Closed (fixed)

see patches issues referenced in #3.