1
0
Fork 0
forgejo/web_src
silverwind b3f2447bc4
Downscale pasted PNG images based on metadata (#29123)
Some images like MacOS screenshots contain
[pHYs](http://www.libpng.org/pub/png/book/chapter11.html#png.ch11.div.8)
data which we can use to downscale uploaded images so they render in the
same dppx ratio in which they were taken.

Before:

<img width="584" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/50979e3a-5d5a-40dc-a0a4-36eb6e28f14a">

After:

<img width="329" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/0690902a-f2fe-4c6b-97b3-6fdd67c21bad">

(cherry picked from commit 5e72526da4e915791f03af056890e16821bde052)
2024-02-19 22:58:33 +01:00
..
css Clean up diff header css and reduce global textarea min-height (#29232) 2024-02-19 22:58:33 +01:00
fomantic Remove fomantic text module (#26777) 2023-08-30 10:37:17 +00:00
js Downscale pasted PNG images based on metadata (#29123) 2024-02-19 22:58:33 +01:00
svg [BRANDING] add Forgejo Git Service and migration UI 2024-02-05 16:05:02 +01:00