Closed samatcd closed 11 years ago
Hey, sorry your pull request took so long. It's now merged with main.
Cheers for that. J.
On Thu, Nov 22, 2012 at 2:25 PM, Sam Sehnert notifications@github.comwrote:
Patches a bug in the Image Magician library which could cause the _crop_resize option fail for some images resizing to specific sizes.
Images affected by this bug would be resized to optimumWidth/Height, but comparisons on optimum vs new would then fail and the crop wouldn't take place.
Simply rounding the optimum values in the getOptimalCrop method fixes
this issue.
You can merge this Pull Request by running:
git pull https://github.com/samatdf/php-image-magician master
Or view, comment on, or merge it at:
https://github.com/Oberto/php-image-magician/pull/1 Commit Summary
- Fixed an issue where image crops could fail due to lack of rounding
File Changes
- M php_image_magician.php (4)
Patch Links
- https://github.com/Oberto/php-image-magician/pull/1.patch
https://github.com/Oberto/php-image-magician/pull/1.diff
— Reply to this email directly or view it on GitHubhttps://github.com/Oberto/php-image-magician/pull/1.
Patches a bug in the Image Magician library which could cause the crop resize option fail for some images resizing to specific sizes.
Images affected by this bug would be resized to optimumWidth / Height, but comparisons on optimum vs new would then fail and the crop wouldn't take place.
Simply rounding the optimum values in the getOptimalCrop method fixes this issue.