php-image-resize
php-image-resize copied to clipboard
Desired Width and Height not set
trafficstars
I updated from Version 1.7.0 every function like crop, resizeToBestFit etc. set a final_h and final_w. These dimensions are taken to produce the output file with this desired final width and height. The newer version of this script has changed the handling completely: if the height or width is smaller tahn the given values this side stays smaller and will not be filled up with a white background. In the result the image is not produced in the desired dimensions.
Did you try to pass $image->resize(500, 300, $allow_enlarge = True); like this to enlarge image? I think we disabled automatic enlarging in new version.