Forums / Setup & design / Custom image filter
Joanna Grzegorczyk
Monday 26 January 2009 5:45:15 am
GD have some predefined filters such as:
geometry/scalewidth geometry/scaleheight geometry/scaledownonlygeometry/scalewidthdownonly
Do you know how to add new image filter that will be processed by GD without modifing kernel class?
What I want to do is to crop an image based on coordinates that are stored as image object attributes.
http://ez.no/certification/verify/253200
Noicokuna Niemoge
Monday 26 January 2009 6:55:16 am
If I remember correctly, there's an extension called ezcrop...
http://projects.ez.no/ezcrop/(language)/eng-GB
Maybe it will be helpful?
Shiki soku ze ku...
Tuesday 27 January 2009 1:11:58 am
The problem is that I also need the original image, that's why I wanted to make different image aliases.
Michael Fürst
Wednesday 28 January 2009 4:26:07 am
Do you have the image.ini.append.php File in your Site Settings? There you are able to declare Images Classes and use them in your template file.
For example (INI File): --------------------------------- [articleimage140x100] Reference= Filters[] Filters[]=geometry/scaleheight=120 Filters[]=geometry/scalewidth=140Filters[]=geometry/crop=140;120;0;10
Usage in Template: ------------------------------{attribute_view_gui attribute=$valid_nodes.data_map.photos.data_map.image title=$imageTitle alt=$imageAlt image_class='articleimage140x100'}
But I don't know if this works without ezFlow Extension..
Ciao,Mike