Skip to content

Commit b1d1289

Browse files
authored
DOC-3151: Aspect ratio was not properly calculated when uploading images wider than the editor. (#3713)
1 parent 42d4127 commit b1d1289

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

modules/ROOT/pages/7.9.0-release-notes.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,23 @@ Previously, using the spellchecker with a language that did not match the docume
8484

8585
For information on the **Spell Checker** premium plugin, see: xref:introduction-to-tiny-spellchecker.adoc[Spell Checker plugin].
8686

87+
=== Image Optimizer
88+
89+
The {productname} {release-version} release includes an accompanying release of the **Image Optimizer** premium plugin.
90+
91+
**Image Optimizer** includes the following fix.
92+
93+
==== Aspect ratio was not properly calculated when uploading images wider than the editor.
94+
// #TINY-11963
95+
96+
Previous version of the **Image Optimizer** plugin, an issue would occur where images wider than the editor were distorted when uploaded to the CDN.
97+
98+
This occurred when the image being uploaded replaced a resized version rendered from a `srcset` alternative, and the aspect ratio was incorrectly calculated using the `naturalWidth` of the original image and the `naturalHeight` of the new image. This mismatch led to a distorted aspect ratio post-upload.
99+
100+
{productname} {release-version} addresses this issue. Now, the aspect ratio is now correctly calculated using both the `naturalWidth` and `naturalHeight` of the original image, ensuring consistent and undistorted rendering after upload.
101+
102+
For information on the **Image Optimizer** plugin, see: xref:uploadcare.adoc[Image Optimizer].
103+
87104

88105
[[accompanying-premium-plugin-end-of-life-announcement]]
89106
== Accompanying Premium plugin end-of-life announcement

0 commit comments

Comments
 (0)