Downscale pasted images on image upload
Problem to solve
When making a screenshot on Retina displays (very common nowadays!) and pasting the clipboard to text area, the image looks like upscaled 2x.
Here's what it looks like on my retina display:
![](/-/project/278964/uploads/086fe1508c1f70df71039f5a3f89d78c/image.png)
but it should look 2x smaller:
![](/-/project/278964/uploads/086fe1508c1f70df71039f5a3f89d78c/image.png)
Proposal
Use HTML <img>
tag for image pastes and specify width=xxx
the attribute. respect use display ratio and specify downscaled variant not actual image dimensions.
NOTE: from my experience specifying width is enough.
here's what I usually do by manually fixing the image scale
-![image](/uploads/c049a04f0d5211ac61930359ec22a821/image.png)
+!<img src=/uploads/c049a04f0d5211ac61930359ec22a821/image.png width=692>
2024-01-26 Update: Seems something has changed markdown in my issue to this (don't see any change history of the performer)
![](/uploads/086fe1508c1f70df71039f5a3f89d78c/image.png){width="282"}
More info on stack overflow:
Intended users
All users.
Feature Usage Metrics
Edited by Elan Ruusamäe