I have 3 different types of images that need resizing.
Landscape, Portrait and Square.
I'm using phpthumb on a portfolio page quite effectively (because the columns are a fixed width): For example:
[[+image:phpthumbof=`w=300&zc=1`]]
However when you click through from an image on the portfolio page, I want the images to display larger.
I want to use some logic like:
- if landscape image > no bigger than width 'x', height 'auto'
- if square image > no bigger than width 'x', height 'auto'
- if portrait image > no bigger than height 'x', height 'auto'
I've been reading through:
http://phpthumb.sourceforge.net/demo/docs/phpthumb.readme.txt
http://rtfm.modx.com/display/ADDON/phpThumbOf
However, the parameters in the text file don't seem to work as indented:
[[+image:phpthumbof=`&hp=500&wl=750&ws=500`]]
Square & portrait images have white space included in the image left and right, as if the rule above is conflicting.
Any experience with Phpthumb or advice?
[ed. note: jonleverrier last edited this post 11 years, 3 months ago.]