Repository navigation
Document legacy and clarify bestfit parameters for Imagick::resizeImage - #5056
Conversation
There was a problem hiding this comment.
According to the changelog file the legacy property has also been added to a few other methods. Would you be able to implement these as well?
To be exact, this is the changelog of Imagick 3.4.0.
Imagick::adaptiveResizeImage, Imagick::cropThumbnailImage Imagick::resizeImage,
Imagick::scaleImage, and Imagick::thumbnailImage have all had a rounding bug fixed.
An additional parameter has been added to each of them, 'bool $legacy'. If legacy
is true, the calculations are done with the small rounding bug that existed in
Imagick before 3.4.0. If false, the calculations should produce the same results as
ImageMagick CLI does.
jordikroon
left a comment
There was a problem hiding this comment.
Thanks! Looks good to me. Unless someone objects.
1a4468f to
c1d141a
Compare
a8da249 to
44a69fe
Compare
Imagick::resizeImage(), Imagick::scaleImage(), Imagick::adaptiveResizeImage() and Imagick::cropThumbnailImage() gained a legacy parameter in PECL imagick 3.4.0, which was undocumented, and their bestfit parameter had no description of the proportional scaling it performs. Fixes php#4816
44a69fe to
c393f5f
Compare
This PR clarifies two optional parameters of
Imagick::resizeImage()Fixes #4816