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
1
vote
1 answer

Making an APNG or GIF animation with perl

What is please a good way to do an APNG or GIF animation with perl ? I wish to create it from a group of PNG files, that I generate myself. Each of these files would be a frame of the final GIF animation. Thanks.
amir
  • 49
  • 4
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 to convert APNG into WEBP by using Magick.NET (imagemagick) and C#?

I have tried like this but APNG animation is lost Also I am looking for settings to lossless yet maximum compression. I don't care about CPU time speed etc. I need lossless and maximum compression. how to achieve that? So I have a lot of PNG files…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
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
  • 318
  • 5
  • 16
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 them…
Kai Qing
  • 18,793
  • 5
  • 39
  • 57
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
  • 4,295
  • 2
  • 24
  • 30
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); …
1
vote
1 answer

How to Splitting APNG into png images and convert to animate gif by PHP

I want to convert apng to gif by imagemagick, but I don't know how to do I see Splitting APNG into png images with PHP I try it but it still no work in my image I something like 1.ezgif.com/apng-to-gif…
1
vote
0 answers

How can I convert an animate PNG to GIF keeping animate?

how do i convert animate apng to gif keep animate by php? i saw the PHP: imagegif - Manual like that but the output gif is without animate $png = imagecreatefrompng('./X.png'); imagegif($png, './php.gif'); ?> wish it can keep the animate
1
vote
0 answers

How to save keyframe animations as APNG or GIF?

I want to convert a transparent SVG animated with keyframes into either APNG or a transparent GIF. How do I do this?
Vivek Joshy
  • 974
  • 14
  • 37
1
vote
1 answer

Animated PNG (APNG) to GIF using Python

Does anyone have any ideas how to do it? I tried using a PIL, apng, and imageio, but it didn't work.
White
  • 11
  • 3
1
vote
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
  • 461
  • 1
  • 4
  • 12
1
vote
0 answers

Swift: how to compress apngs for iMessage extension?

Alright, I have just recently learned the difference between png and apng but I have a custom sticker message extension with animating stickers using classes from this framework project : https://github.com/radif/MSSticker-Images Apple's size limit…
blue
  • 7,175
  • 16
  • 81
  • 179
1
vote
2 answers

Is there a way to distinguish APNG and PNG images before downloading them?

I checked the http header and their content type is both image/png. I need to sth different based on if an image is a PNG or APNG, like if it's a PNG, display it directly. If it's an APNG, display the first frame and only start downloading the whole…
njuxjy
  • 415
  • 4
  • 13
1
vote
0 answers

APNG files not working in Xcode for iMessage Stickers?

I'm having trouble getting .APNG files to work - they preview correctly in Firefox (meaning when drag'n'dropped into a Firefox window, they animate the way they're supposed to) but when I drag'n'drop the same file into xcode, I see only the first…