geometry/crop

geometry/crop

Thursday 15 January 2004 3:30:05 am - 2 replies

Author Message

Ben Pirt

Thursday 15 January 2004 3:47:05 am

OK, I've figured out why it was not cropping, my code was;

Filters[]=geometry/crop=40,40,0,0

as per the documentation here;
http://ez.no/developer/ez_publish_3/releases/ez_publish_3_3/new_image_system

but after looking in the templates, you need semi colon seperators as;

Filters[]=geometry/crop=40;40;0;0

Someone should make a quick fix to the documentation to avoid future confusion, but I hope this helps someone.

Cheers,
Ben

Jan Borsodi

Wednesday 21 January 2004 1:41:07 am

The documentation has been updated.

As for the scale and crop requests, they should be doable but requires some additions to the image handlers.
For instance to get support for this for ImageMagick we would have to have some more keywords to use in the parameter strings, for instance the size of the image to scale from, perhaps also some basic arithmetic operations.

Also it can be problematic to know the size of an image, we must either rely on the builtin functions in PHP to do this (but they don't support many formats) or create custom code to figure out the size.
Formats such as JPEG, GIF and PNG shouldn't be a problem though.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.