Closed (fixed)
Project:
Image Enhanced Scaling
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2007 at 00:45 UTC
Updated:
23 May 2007 at 19:03 UTC
Now that we have hook_image_alter(), most of the dirty tricks going on in image_enchanced_scaling_nodeapi() should be replaced with a nice and clean implementation of said hook. Apart from getting rid of a "hack", this would also eliminate the problem with double scaling (see the README file) which would improve the performance a lot.
This patch may be useful as a reference.
I'll do this myself as soon as I've got the time, but until then, patches are more than welcome, as always.
Comments
Comment #1
zoo33 commentedIt's done! However, we're still doing the image scaling twice, since Image.module resizes the derivatives before invoking the hook. Too bad. But anyway, it's a lot cleaner now with this hook so it's still a good change.
Comment #2
(not verified) commented