Advanced search  


cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.

Pages: [1]   Go Down

Author Topic: Resize intermediate images to set WIDTH (but not height)  (Read 2110 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Resize intermediate images to set WIDTH (but not height)
« on: April 23, 2007, 09:29:55 pm »


I'm trying to work out how to have the intermediate (normal_) images resized to a set width rather than "finding the longest side (width or height) and resizing so that the longest side becomes the max size..."

To perhaps explain better.
I set my intermediate_max_image_size to 200.
If i upload an image which is width=1000 height=500 I get an image which is width=200 height=100.

If the width is greater than the height, this works how I'm after, but if I upload an image now which is width=500 height=1000 I'll end up with an image which is width=100 height=200.

What I want in this instance however, is width=200 height=400 (so the height is greater than the intermediate_max_image_size, but the width for intermediates is ALWAYS the max variable)

I hope I've explained this well enough. I've really tried everything I can think of for this. If anyone can offer any suggestions/pointers, it'd really be appreciated!
Pages: [1]   Go Up

Page created in 0.016 seconds with 20 queries.