Closed (fixed)
Project:
ImageCache Actions
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2008 at 17:54 UTC
Updated:
5 May 2011 at 23:20 UTC
Can we list here what actions have imagemagick support and which ones need to be coded?
Comments
Comment #1
dman commentedI guess...
From my side of the fence in imagecache_actions it's pretty much everything
imageapi.module provides:
- {toolkit}_image_crop
- {toolkit}_image_resize
- {toolkit}_image_sharpen
- {toolkit}_image_rotate
- {toolkit}_image_desaturate
Imagecache actions here needs extensions for :
- {toolkit}_image_overlay
- define_canvas (currently not abstracted to a toolkit callback, gd-native only)
- colorshift_image
- brightness_image
- inverse_image
... these all are grouped into in a toolkit abstraction called
{toolkit}_image_imagefilterwhich provides a call to the toolkit or an algorithmic implimentation if the right libraries are not available.This is only for terse coding reasons optimized for gd as it's just the same function call there, dunno if it makes things more difficult for imagemagick.
- {toolkit}_image_overlaytext_alpha
Any or all of them can be tackled by anyone who needs them.
The imagefilters are probably the easiest (I started with them also), and the image_overlay is most in demand.
Not sure about how tricky text is.
Comment #2
mikeytown2 commentedI took a peak at imageapi_imagemagick.module and the code is fairly straight forward. Sharpen is the most complicated function in the module and it's quite simple
Since you brought up text, lets try to get this done...
The user docs for imagemagick are quite good so i'll use this one as a template.
http://www.imagemagick.org/Usage/annotating/#wmark_text
something like this?
Comment #3
mikeytown2 commentedFound a library...
http://www.francodacosta.com/phmagick
I might get around to doing this, but its quite low on my priority list.
Comment #4
francodacosta commentedhi mikeytown2
If you need help implementing phMagick or with ImageMagick, just drop me a note I will do my best to help
sven _AT_ francodacosta _DOT_ com
cheers
Comment #5
wqmeng commentedWhich thread I should scrib ?
http://articlesforge.com/
Comment #6
dman commentedThe text rendering method is entirely rewritten in 6.x-2.x-dev
Best not to go further down this path right now.
The successor to this library will be called imageapi_text, and be funky
Comment #7
asb commentedThe project page still states: "Many imagecache actions just do not work with the ImageMagick Toolkit", and I still don't know how to figure out what is supported without GD.
Could we please get an updated list, as mikeytown2 originally asked for on December 3, 2008?
Thanks!
Comment #8
dman commentedDistributed with the 6.x-2.x package is the optional module "Imagecache Test Suite"
That provides a page that lists a demo of uses of a large number of actions, with gd and imagemagick versions and results side by side.
Comment #9
asb commentedOK, then I have simply to install the module and the sub-module to figure that out ;)
Comment #10
dman commentedIt's contextual help and always sure to be up-to-date with the version you chose :-}.
Making a list somewhere else would get outdated