php-image-resize icon indicating copy to clipboard operation
php-image-resize copied to clipboard

Desired Width and Height not set

Open ulrischa opened this issue 2 years ago • 1 comments
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.

ulrischa avatar Apr 05 '23 09:04 ulrischa

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.

adityapatadia avatar Oct 11 '23 14:10 adityapatadia