Skip to content

Downscale pasted retina images

Himanshu Kapoor requested to merge 419913-retina-paste into master

What does this MR do and why?

Downscale pasted retina images

On paste, downscale retina images to 50% of the dimensions.

Changelog: added

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Case Before After
Rich text editor image.png image.png
Plain text editor image.png image.png

How to set up and validate locally

  1. Take a screenshot on a retina display.
  2. Paste in either rich text or plain text editor.
  3. In plain text editor, {width=X height=Y} will be appended where X and Y are real dimensions of the retina image.
  4. In rich text editor, same happens, but the image will be the actual size (50% smaller).

Note: This should also work for uploading files manually using the toolbar, or drag/drop.

Related to #419913 (closed)

Edited by Himanshu Kapoor

Merge request reports