ZenphotoCMS Forum
image library abstraction - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: image library abstraction (/thread-115.html)



image library abstraction - mirmo - 24-12-2005

Hi there.

one thing that would be very very kind for the few people who just can't (not will depending) install php4-gd on their server would be to add some sort of image library abstraction, so that one can easily add layers such as imagemagick (I know it involves lots of system() calls, and it sucks, but it's far better than the ugly hack i just do to zenphoto (that is: "hey, use these genethumb.sh generated thumbnails instead of yours ")) in replacement of gd.

by the way, I can help for that, and may submit a patch against zen/i.php (didn't look in depth to zenphoto code but it looks like the biggest fortress of the GD empire) in a few days if I'm not too busy at work.

regards,

mirmo




image library abstraction - trisweb - 31-12-2005

Yeah, it's pretty easy to add conditionals in i.php to use different apps for processing. It could also just be abstracted to a class or something, which might be more elegant.

I've been planning on adding support for ImageMagick, so I'll get to it. Sorry for the inconvenience. If you ever try it out, send me your work.




image library abstraction - syndromes - 31-12-2005

That would be great to have the option to use imagemagick as my current webhost doesn't have gd support compiled in - bleh. Then I could actually use zenphoto and be of more use than that of voyeur