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.
My Problem: Imagesize of Version 1 is correct but the height of Version 2 is too less - it is only 142 pixel - but it should be 160 pixel!!! In the second version the $handle->image_src_y is only 280 pixel but he should take the original image height ...
The image base for the transformation should always be the uploaded original image - but how can i do this?
i want to load an image and save it in two versions:
original load image: 620x414 pixel
version1: only height should be crop:
version2: resizing image and height should be crop:
My Problem:
Imagesize of Version 1 is correct but the height of Version 2 is too less - it is only 142 pixel - but it should be 160 pixel!!!
In the second version the $handle->image_src_y is only 280 pixel but he should take the original image height ...
The image base for the transformation should always be the uploaded original image - but how can i do this?
regrads,
martina
This will result in an image exactly 300x160, except if the original image is smaller than that.
regards martina