Needs review
Project:
ImageAPI
Version:
6.x-1.10
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2010 at 17:49 UTC
Updated:
3 Dec 2011 at 17:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
dokumori commentedI've just created a module that does this - Imagecache Quality
Since ImageAPI does not allow other modules to hook into / alter the process, I wrote a patch that basically adds drupal_alter() to imageapi_gd.module and imageapi_imagemagick.module to allow other modules to alter the quality. Considering ImageAPI should take no notion of ImageCache presets, I tried to make the change as generic (i.e. not ImageCache-specific) as possible. As a result, I also needed to patch ImageCache too.
I'm attaching a patch for ImageAPI here, which was created based on ImageAPI 6.x-1.10. To get a better idea on how the module does the alteration, please have a look at the module.
The way I patched the code may not be the best way, but it gives us a starting point :)
(The patche adds this feature to both GD and ImageMagick, so I'm changing the 'Component' tag of this issue to 'Code'.)
Comment #2
dokumori commentedChanging the status to 'needs review'. Please review and let me know how you think!
Mori
Comment #3
bartclarkson commentedHi dokumori! Very cool. I will test this out in dev environment. I'm interested in using it with http://re.vu, where user profiles background images can be very large.