Proportional Image Scaling: Possible?

Author Message

Alex Jones

Wednesday 09 July 2003 2:17:47 pm

Is it possible to scale the images proportional to their original size instead of by pixels? If so, how? If not, is this something that can be created via a module or operator? I know both ImageMagick and GD can do it, so perhaps it wouldn't be too hard to hack if need be.

It would be nice to provide the choice within the image settings.

Thanks,

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Jan Borsodi

Thursday 10 July 2003 7:11:57 am

All image operations are done with proportions intact. The sizes set in site.ini only controls the desired size, if one side of an image is larger than the other that side will be longer than the specified size and the other side will have the exact pixel size.

--
Amos

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

Alex Jones

Thursday 10 July 2003 8:19:27 am

I think I didn't phrase my question as well as I could have. Let me try again.

Is it possible to size the images based on set percentages? For example:
small: 25% of original image size
medium: 50% of original image size
large: 100% of original image size

Thanks!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Tuesday 22 July 2003 7:37:36 am

Anyone? Please? :)

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Ekkehard Dörre

Wednesday 13 August 2003 1:19:09 am

Look http://www.imagemagick.org/www/convert.html for the possibilities of imagemagick or in php
http://de.php.net/manual/en/function.imagecopyresized.php
the posting with function imagecopypercentsize

Greetings ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Alex Jones

Thursday 14 August 2003 7:54:33 am

ekke, I appreciate the reply. I have begun tracking down the code that performs the scaling and am modifying it to do what I need. I was hoping to avoid editing the code directly as I don't like the risk of overwriting it in a future upgrade, but I think it is unavoidable. Ahh well. When I have a solution I will post it for others. :)

Thanks!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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