0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 10:38:42 +01:00
gitea/web_src/js/utils
silverwind 5e72526da4
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">
2024-02-19 02:23:06 +00:00
..
color.js
color.test.js
dom.js Make submit event code work with both jQuery event and native event (#29223) 2024-02-17 21:48:10 +01:00
image.js Downscale pasted PNG images based on metadata (#29123) 2024-02-19 02:23:06 +00:00
image.test.js Downscale pasted PNG images based on metadata (#29123) 2024-02-19 02:23:06 +00:00
match.js
match.test.js
time.js Implement contributors graph (#27882) 2024-02-15 23:21:13 +01:00
time.test.js Implement contributors graph (#27882) 2024-02-15 23:21:13 +01:00
url.js
url.test.js