While trying to integrate the ImageMagick Adapter with the AdaptiveResize extension I noticed the cropping was completely wrong.
The extension first resizes and then crops, and there was an issue here.
You have to refresh the _imageSrcWidth and _imageSrcHeight members after a resize and use them in the crop, similar as the Varien_Image_Adapter_Gd2 class is doing.
While trying to integrate the ImageMagick Adapter with the AdaptiveResize extension I noticed the cropping was completely wrong. The extension first resizes and then crops, and there was an issue here. You have to refresh the
_imageSrcWidth
and_imageSrcHeight
members after a resize and use them in the crop, similar as theVarien_Image_Adapter_Gd2
class is doing.This pull request fixes this.
I took most of the code from the current Magento2 ImageMagick integration