Current Behavior
In version 2.12.0 the adaptive image servlet changes the aspect ratio of images to make them square when served with a quality+width selector. This causes the images to be severely distorted.
Expected behavior/code
It should not do this. The image aspect ratio should always be maintained (assuming no crop, or other transformations are applied).
Environment
AEM version: 6.5.6.0
Core Components version: 2.12.0
JRE version: JDK 11
Additional context / Screenshots
Steps to reproduce:
Go to /content/core-components-examples/library/page-authoring/image.html
Open the template editor for this page
On the template, edit the "Image" component policy
Return to /content/core-components-examples/library/page-authoring/image.html
See that the images are now square and distorted.
See attached screenshot, where the left is the image prior to adding quality+width selectors, the right is the image after adding these policy settings.
Bug Report
Current Behavior In version 2.12.0 the adaptive image servlet changes the aspect ratio of images to make them square when served with a quality+width selector. This causes the images to be severely distorted.
Expected behavior/code It should not do this. The image aspect ratio should always be maintained (assuming no crop, or other transformations are applied).
Environment
Additional context / Screenshots Steps to reproduce:
See attached screenshot, where the left is the image prior to adding quality+width selectors, the right is the image after adding these policy settings.![Screenshot from 2020-11-03 13-22-32](https://user-images.githubusercontent.com/19987287/98019072-b5c9af80-1dd7-11eb-8c16-69317e1def14.png)