class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I haven't tried this, but expected that it'd work because it's a two step process (which I wanted to avoid). I'll wait for Colin to finish his investigations before I commit to a 2 step process.
Cheers
Dave
N.B. A a particular thanks to Colin for his quick response.Reply
I'll use my 'temporary' working code until Colin have a better solution working. Anyway, my site is not live yet, so it's just me sending up test pictures :-)
I haven't tried this, but expected that it'd work because it's a two step process (which I wanted to avoid). I'll wait for Colin to finish his investigations before I commit to a 2 step process.
Cheers
Dave
N.B. A a particular thanks to Colin for his quick response.
Anyway, my site is not live yet, so it's just me sending up test pictures :-)
/Stefan
So here is a Release Candidate 0.27RC1, which implements a mean to crop before resizing.
The cropping is set with image_precrop, which accepts the same type of parameters as image_crop.
For instance:
This will crop the image before eventually resizing it.
Note that both image_precropand image_crop can be used together. The first one crops before resizing, the second one after resizing.
The test suite looks OK, but I haven't tested it extensively. Feedback would be appreciated.