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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential 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>