Image size attributes after uploading image #14531
Labels
package:image
squad:core
Issue to be handled by the Core team.
type:task
This issue reports a chore (non-production change) and other types of "todos".
Milestone
Provide a description of the task
Currently, we set width and height attributes on images when we add them in the editor (intrinsic sizes). We also set image attributes when, for example, we copy an image from Office. When such an image is uploaded to the server and comes back with the suggested width, it can happen that the aspect ratio is broken (new width does not match the original height).
Scope of this ticket: Check and decide whether we should keep the initial sizes or the sizes that come from the server. Although it seems to make sense to set new sizes (returned from the server) if the initial sizes are just original (intrinsic) sizes, this isn't necessarily the case if, for example, the user copies the resized image from Office (the user might expect the Office sizes to remain untouched).
A test case:
word.docx
Instead of sizes from the Office:
We get this:
📃 Other details
The text was updated successfully, but these errors were encountered: