Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desired Width and Height not set #190

Open
ulrischa opened this issue Apr 5, 2023 · 1 comment
Open

Desired Width and Height not set #190

ulrischa opened this issue Apr 5, 2023 · 1 comment

Comments

@ulrischa
Copy link

ulrischa commented Apr 5, 2023

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.

@adityapatadia
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants