Skip to main content
Topic: image resize (Read 1549 times) previous topic - next topic

image resize

I'm not sure the current resize methods (contain and crop) are really doing anything in PhpRad right now to help.  I spent quite a while looking at this tonight and finally just edited the timthumb.php file to get a proper result.

The reason was, many of my images were pretty much resized without displaying the entire image, rendering them not usable.

At any rate this worked for me.

Edit timthumb.php file
Line 56
Change the ZC  scaling options number to the one that best fits your needs..  3 works for me.

Here are the options for Proportional Image Scaling

0   Resize to Fit specified dimensions (no cropping)   
1   Crop and resize to best fit the dimensions (default)
2   Resize proportionally to fit entire image into specified dimensions, and add borders if required
3   Resize proportionally adjusting size of scaled image so there are no borders gaps

Hope this helps someone .