Forums / Developer / Sizing image by percentage instead of by set pixel value

Sizing image by percentage instead of by set pixel value

Author Message

Alex Jones

Wednesday 23 July 2003 6:29:39 am

My earlier question along these lines has gotten buried and as I still really need help with this I am posting it once more.
How can I set up eZ publish to re-size the images based on set percentages instead of set pixel values?
For example:
small: 25% of original image size
medium: 50% of original image size
large: 100% of original image size

I know this is possible with GD2 (which is what I am using); but for the life of me I cannot determine what change needs to be made to put it into place. When using the various imagecopy* commands in PHP the only difference seems to be adding a % after the numeric value to indicate it should be a percentage.

I could really use some help on this one.

Alex

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

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

Alex Jones

Wednesday 06 August 2003 9:23:06 am

Anyone? Please?

Alex

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

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