Comments (3)
Hey @SmaugPool!
I don't think APNG makes much sense nowadays, especially in the context of imgproxy:
- We have WebP. It's highly effective, widely supported, and has a lossless mode. But if your goal is to optimize your GIFs, you most probably don't need lossless mode.
- APNG is even less effective than GIF. I have a 25 MB GIF (616x451, 207 frames). APNG created from this GIF is 32 MB. Lossless WebP created from the same file is 23, and lossy one – 4.5 MB.
- Compression to APNG is extremely slow. It takes more than 4 min to convert that 25 MB GIF to APNG using FFmpeg. For comparison: its conversion to lossless WebP takes just 13 seconds, to lossy WebP – 5 seconds.
The main goal of APNG was full-color animations. However, the overwhelming majority of animations are still served as GIFs or MP4 created from GIFs. Actually, I didn't see a single APNG in the wild.
from imgproxy.
Thank you for your answer @DarthSim, I know about existing formats and most of their pros/cons.
I should have precised that my current use case is to transcode & rescale APNG to animated WebP/AVIF, not to get an APNG output.
As you know very well from all its security features, imgproxy
is also used for use cases where the source image comes from users and is not controlled. And APNGs definitely exist in the wild, for example in the NFT ecosystem (I guess because it's lossless with great browser support and backward compatible with PNG so supported at least without animation by basically all image applications). See for example this APNG collection (right save if you want to check): https://www.jpg.store/collection/chainsondogs
That said for sure APNG is not trending so I understand supporting it is far from a priority. But once it is natively supported in libvips
, maybe supporting it at least for inputs will be a low effort enough to make sense. Until then this issue can provide information for those wondering about the status of APNG support.
from imgproxy.
@DarthSim For information, I asked more about it and one of the main reasons APNG is still used instead of Lossless Animated WebP is because Discord still does not support Animated WebP.
For some projects, the ability to share media on social networks is very important and Discord is used a lot currently.
from imgproxy.
Related Issues (20)
- Link to Documentation is down HOT 1
- Monochrome thumbnails from latest release HOT 13
- There is an error in the image file name that contains the '@' character. HOT 1
- Feature request: animated AVIF HOT 4
- Allow gravity to be relative HOT 4
- Will chrome automatically convert webp to avif? HOT 2
- GIF: 250 frames gifs exceed 30s processing limit enforced by CDN HOT 5
- Feature request: Video thumbnail tile behaviour HOT 1
- Provide a more detailed error message why local:// is not available when IMGPROXY_LOCAL_FILESYSTEM_ROOT is not set
- GIF gint is invalid or out of range HOT 2
- Can't connect to firebase local emulator
- Priority of /format: %format/ and @ HOT 1
- Crop Area with focus point HOT 5
- Im Confused on how to code HOT 4
- ThumbHash support HOT 3
- Can warning logs `Recursive preset usage is detected: default` be suppressed? HOT 2
- Memory not being returned correctly HOT 3
- video thumbnail extraction: some videos reset back to 0? seconds for image returned HOT 2
- Issue with opentelemetry endpoint that contains a path HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgproxy.