Closed GoogleCodeExporter closed 9 years ago
This patch add the following feature which is IMHO a good start to the requested
feature :
This patch add two new parameters : w2 and h2.
Those parameter are taken into account if :
- crop=0
and
- one of "w" or "h" parameter has been omitted.
Then it does the following :
If those conditions are met a *kind of* "second pass" is done meaning it will
apply
the new constraint on the first pass values.
To do that if factorized the "new w/h generation code" into a function and call
it a
second time if conditions are met.
In a case like :
- resize the height to h and omit the width, thus preserving the ratio ...
the feature provided by the patch is the following :
- then resize the width to w if new width > w
Original comment by gibbo...@gmail.com
on 26 Mar 2010 at 10:43
Attachments:
How do I install this? Like, where does it go? Inside the timthumb.php file or
in the same folder or what? I'm using classipress with wordpress and timthumb
is part of one or the other and the cropping at the top is driving me nuts.
Thanks, Don
Original comment by d...@donmilton.com
on 15 Aug 2010 at 5:42
It's taken a while, but this is now added!
Use parameter zc = 2
Original comment by BinaryMoon
on 6 Feb 2011 at 9:40
Original issue reported on code.google.com by
gibbo...@gmail.com
on 24 Mar 2010 at 5:23