Affects Version/s: 12.0
Fix Version/s: None
Images inserted with the CKEditor image plugin used in Sakai 11 and Sakai 12 seem to resize appropriately for mobile devices per the fix to
SAK-31978. However, the width to height ratio for images that had been inserted with the CKEditor for older versions of Sakai such as 2.9 or 2.10 is distorted when the image is resized for mobile devices. This distortion will affect any image content migrated from older instances of Sakai.
The newer HTML for images inserted with the CKEditor from Sakai 11 & 12 places height and width values within distinct respective img attributes:
<p><img alt="" src="$imagePath" height="709" width="684" /></p>
These images seem to resize correctly without distortion as depicted in the attachment ModernImage_AspectRatioPreserved.png.
The older HTML for images inserted with the CKEditor from Sakai 2.9 & 2.10 placed both the height and width values within the style attribute:
<p><img alt="" src="$imagePath" style="height: 709.0px;width: 684.0px;" /></p>
The aspect ratio for these images distorts, where the height does not resize correspondingly with the resizing of the width as depicted in the attachment LegacyImage_AspectRatioDistored.png.