Friday 08 May 2009 10:35:55 am
Hi Pascal, I struggled with this some days ago, too. Though my filter was much easier, this may help you: Working definition in settings/image.ini.append.php:
[ImageMagick]
Filters[]=blueish=-fill #048ffd -colorize 30%
[AliasSettings]
AliasList[]
AliasList[]=small
...
[small]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=200;200
Filters[]=colorspace/gray
Filters[]=colorspace=RGB
Filters[]=blueish
I wanted to make a "blue tinted" version of an image. So, i changed the "small" alias defintion and added two colorspace filters to it, which will first change the colorspace to "gray", making a gray-scale image. As i wanted to give it some color again, the next filter gives the colour an RGB colorspace again.
Finally, i applies my new "blueish" filter, which is declared in the first line. I had to to some trial and error, too, as the original filter was
-fill "#048ffd" -colorize 30%
That didn't work, so i removed the quotes.
The %1, that you are using is unneeded in your (and my) case. It's used for passing parameters to the filter OTHER than the target filename (this is done by ez). For reference of the parameters, see the definitions in the original image.ini file and look at the "colorspace" filter (not the "colorspace/gray"), which has 1 parameter or look at "geometry/scaledownonly", which has 2.
In your case, i'm very unsure about the backslashes in your command line... if they are used for escaping the brackets, you may try to omit them in the image.ini. In any case, you should not use the %1 I would try with this:
[ImageMagick]
Filters[]=withshadow=( +clone -background black -shadow 120x4+2+2 ) +swap -background none -layers merge +repage
[AliasSettings]
AliasList[]=jaquette
[jaquette]
Filters[]
Filters[]=geometry/scaledownonly=190;190
Filters[]=withshadow
or try to define the filter with the backslashes:
[ImageMagick]
Filters[]=withshadow=\( +clone -background black -shadow 120x4+2+2 \) +swap \-background none -layers merge +repage
In any case, try one command after the other! I'm not an IM expert, so this image manipulations seems very complex to me.
Marco
http://www.hyperroad-design.com
|