mirror of
1
Fork 0
forgejo/web_src/js/utils
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
..
color.js Always pass 6-digit hex color to monaco (#25780) 2023-07-09 12:17:22 +02:00
color.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
dom.js [gitea] Avoid showing unnecessary JS errors when there are elements with different origin on the page (#29081) 2024-02-10 10:53:43 +01:00
image.js Downscale pasted PNG images based on metadata (#29123) 2024-02-19 22:58:33 +01:00
image.test.js Downscale pasted PNG images based on metadata (#29123) 2024-02-19 22:58:33 +01:00
match.js Avoiding accessing undefined mentionValues (#26461) 2023-08-12 08:36:23 +00:00
match.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
time.js Implement contributors graph (#27882) 2024-02-17 23:24:31 +01:00
time.test.js Implement contributors graph (#27882) 2024-02-17 23:24:31 +01:00
url.js Refactor branch/tag selector to Vue SFC (#23421) 2023-03-14 17:51:20 +08:00
url.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00