Questions tagged [apng]

Related to reading/writing Animated Portable Network Graphics (APNG) files.

APNG is supported natively in Opera and via plugins in Firefox and Chrome. svg2png can be used to convert SVG files with SMIL animation to APNG.

67 questions
3
votes
1 answer

How can I programmatically create APNG files?

Generally I use PHP, and ImageMagick, but as far as I can tell it seems the ImageMagick group refuse to implement the ability to create/understand animated PNG files? What tooling can I implement to take a dozen JPEG files and create an animated PNG…
Codemonkey
  • 4,455
  • 5
  • 44
  • 76
3
votes
4 answers

How can I detect whether an image is a PNG or APNG format?

Possible Duplicate: Can I programatically determine if a PNG is animated? APNG is backwards compatible with PNG. I opened up an apng and png file in a hex editor and the first few bytes look identical. So if a user uploads either of these…
perlit
  • 329
  • 4
  • 13
3
votes
2 answers

How can I split animated PNG with PHP?

There are a lot of solutions about how to create an APNG image (animated PNG), but how can I split APNG image frames into separate images? Thanks in advance.
Timur Gafforov
  • 771
  • 3
  • 10
  • 28
2
votes
1 answer

How is this animated .png possible?

While learning how to edit Firefox themes, I came across this animated .png (not apng) that I do not understand. I assumed it was a gif at first just given the pixel art style. .png in question: (reuploaded to a site of mine) The .png is part of…
Rick Feit
  • 21
  • 1
2
votes
1 answer

What do these FFmpeg APNG encoder prediction methods mean?

By running ffmpeg -h encoder=apng, I get this: APNG encoder AVOptions: -dpi E..V..... Set image resolution (in dots per inch) (from 0 to 65536) (default 0) -dpm E..V..... Set image resolution…
Nicke Manarin
  • 3,026
  • 4
  • 37
  • 79
2
votes
1 answer

FFMPEG control delay and looping for generating APNG

I have a (random selection) of JPG images that I want to use to make into an APNG animation using ffmpeg (to test the process). They are all the same dimensions (256x256). But I cannot seem to get the correct syntax to control the frame delay and…
fmw42
  • 46,825
  • 10
  • 62
  • 80
2
votes
2 answers

Does APNG support frame-based palettes or only a global palette?

I'm having a hard time understanding how palette information is handled in APNG animations that use type PNG_COLOR_TYPE_PALETTE because, apparently, there is little to no documentation. All PNG_COLOR_TYPE_PALETTE test animation files that I have…
Andreas
  • 9,245
  • 9
  • 49
  • 97
2
votes
0 answers

Why are my APNGs glitching in Safari on iOS?

I have these APNGs on my art portfolio website. They look fine on desktop Safari, but occasionally flicker (changes in color and parts of the APNG disappear) in safari on iOS. https://artadriana.com/alison Another person also viewed it on mobile,…
Silly Bun
  • 21
  • 3
2
votes
1 answer

Choose APNG fallback frame

By default, browsers without APNG support will display the first frame of the sequence. Is there a way of choosing which frame will be used as a fallback? In most cases, the last frame would make more sense than the first for me.
2
votes
2 answers

Reading animated PNGs in Python?

PyPNG, the most widely used PNG library for Python, doesn't seem to support animated PNGs. There's a library for writing animated PNGs, but I can't find an equivalent one for reading them. Anyone know a way of getting the frames out of this little…
Tom Quinn
  • 614
  • 4
  • 17
2
votes
1 answer

Combine data URIs into APNG?

Looking at the APNG spec, it seems that APNGs are PNGs which describe the frames after the first in their "extra" chunks". So it seems like it'd be feasible to create APNGs in Javascript easily by just compositing PNG headers and appending dataURIs…
2
votes
1 answer

Animated gif alternative with broad browser support?

I would like to insert an animated image to a blog and a forum (hence I can't use javascript, CSS, SVG, HTML5 and other tricks), but the gif animation is too big, about 700K. It was made of a photo, so I can't reduce the colours below 256 palette…
Konstantin
  • 2,983
  • 3
  • 33
  • 55
2
votes
1 answer

AVAnimator mvid conversion

Is there no way to play an apng file directly in iOS? I tried AVAnimator, but its solution is to convert the apng file to mvid and then play it frame-by-frame and then to reduce file storage space, it would compress the mvid file into 7z. So, my…
esh
  • 2,842
  • 5
  • 23
  • 39
1
vote
2 answers

Loading an animated image to a BufferedImage array

I'm trying to implement animated textures into an OpenGL game seamlessly. I made a generic ImageDecoder class to translate any BufferedImage into a ByteBuffer. It works perfectly for now, though it doesn't load animated images. I'm not trying to…
Klems
  • 35
  • 5
1
vote
1 answer

Animated webp shows all frames only on mobile browsers (Chrome, Safari)

[Deployed via nextjs 13 & vercel] I have an animated webp (great reduction in size relative to the APNG). It's supposed to show only one frame at a time, out of a series of frames used to animate it. The animated webp I've put on my site is…
Kenzo
  • 307
  • 2
  • 11