Page 1 of 1

Fixed image resizing

Posted: Sun Jun 06, 2010 10:12 am
by mattymatoo
Hi everyone,

Is it possible to resize all images to a fix square format using PHP?

At the moment if I resize a landscape picture the aspect ratios are maintained so the thumbnail is obviously in the same format. Is it possible to make the thumbnail square, to a fixed size, with a white background top and bottom so the picture keeps its original shape?

Thanks for your help !

Matt

Re: Fixed image resizing

Posted: Sun Jun 06, 2010 10:49 am
by markusn00b
Huh? You say you want to resize it, without constraining the proportions, but you then say 'keeps its original shape'? I don't understand.

Re: Fixed image resizing

Posted: Sun Jun 06, 2010 11:01 am
by mattymatoo
Thanks for the reply markusn00b. I didn't explain myself very well I know :)

I have finally found online exactly what i'm trying to achieve which works perfectly...

http://www.webxpert.ro/andrei/2009/01/0 ... -tutorial/

Thanks

Matt

Re: Fixed image resizing

Posted: Sun Jun 06, 2010 11:28 am
by markusn00b
Glad you got it sorted :)