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.

58 questions
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
  • 28,780
  • 5
  • 37
  • 49
2
votes
1 answer

Animated PNG (APNG) fallback to gif in unsupported browsers?

So apparently APNGs fall back to the first frame for unsupported browsers But is there a way to make it fall back to a gif in unsupported browsers, like we do for webP?
00-BBB
  • 491
  • 4
  • 20
2
votes
1 answer

APNG num_plays works in Firefox but not in Chrome

An APNG file specification for reference: https://wiki.mozilla.org/APNG_Specification num_plays defines the number of times than an animated PNG should loop. 0 is a special value that means the animation will loop indefinitely. I found some APNGs…
Sophie
  • 491
  • 1
  • 3
  • 10
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
  • 593
  • 3
  • 14
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,575
  • 2
  • 26
  • 47
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,742
  • 5
  • 20
  • 37
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

Can I duplicate a frame of an APNG animated image and have no noticeable increase in the file size?

I have an APNG animation with several frames, and it happens that some frames are exactly the same. Each of those frames are carrying its own image data in the file, where they could be just reusing the image data of a prior frame that is equal and…
user603022
  • 11
  • 1
1
vote
1 answer

How do i detect APNG in python?

APNG files dont have any clear way to detect them. For APNg unawware applications they appear as normal PNGs, and they will show the first screen. Detecting them is a bit of a hassle.
laundmo
  • 131
  • 2
  • 13
1
vote
2 answers

Is it possible to get consistent apng support in modern browsers?

I have inherited a legacy project containing some 20+ apng files that are considered instrumental to the design of the site. However, for whatever reason, safari plays these apng files twice where every other browser I have tested them in plays only…
Kai Qing
  • 18,359
  • 5
  • 34
  • 56
1
vote
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 anims that use type PNG_COLOR_TYPE_PALETTE because apparently, there is little to none documentation. All PNG_COLOR_TYPE_PALETTE test animation files that I have here…
Andreas
  • 6,730
  • 5
  • 37
  • 76
1
vote
1 answer

Determining duration (or frame count) of APNG

Any way to count APNG frames in JS, in the browser? For a script that tinkers iteration count and interactivity, I'd like to determine from a given APNG file how long a single iteration of its animation takes. I assume that's not explicitly written…
Ronny
  • 3,775
  • 2
  • 21
  • 29
1
vote
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,…
1
vote
0 answers

UPNG.js - how do I work with transparent images?

Using UPNG.js, I get black instead of transparent color. How do I get things right? Have no idea where to start saveAPNG() { const arrAnimationSpeed = new Array(this.arrayBufferData().length); …