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
19
votes
5 answers

Can I programmatically determine if a PNG is animated?

I have PNG (as well as JPEG) images uploaded to my site. They should be static (i.e. one frame). There is such thing as APNG. (it will be animated in Firefox). According to the Wikipedia article... APNG hides the subsequent frames in PNG ancillary…
alex
  • 479,566
  • 201
  • 878
  • 984
17
votes
1 answer

Using ffmpeg to create looping apng

I'm trying to create looping apng files from mkvs. My problem is that they don't loop. The files play once, but stop. This is what I'm doing: ffmpeg -ss 16:43 -i ./10.mkv -loop 10 -t 1 -filter:v "setpts=PTS-STARTPTS, crop=1200:800,…
Harry
  • 52,711
  • 71
  • 177
  • 261
16
votes
4 answers

APNG vs GIF. Which is Better?

I have been using Gifs for those small loading images. Have been working great except the occasional transparency issues and 8 bit colors. Now I found out about the APNG recently. But don't know if i should be using it. Does it have enough browser…
Ruchan
  • 3,124
  • 7
  • 36
  • 72
14
votes
3 answers

APNG inside iOS app

I'm probably going to get flamed for this. I am wondering if anyone know of any way to load APNG (animated PNG) inside an iPhone app? I'm not talking about multiple PNG image added as an NSArray of UIImages to a UIImageView. I already can do this…
Zhang
  • 11,549
  • 7
  • 57
  • 87
14
votes
1 answer

Displaying an animated PNG (apng) using Swing?

I'm trying to display an animated png (known as apng), by adding the image to a JLabel as usual. This works fine with normal gif-animations, however, I'd prefer to be able to support apng aswell. I've been searching the net for existing frameworks…
Zar
  • 6,786
  • 8
  • 54
  • 76
12
votes
1 answer

How do I use animated PNG in Delphi?

How do I use animated PNG in Delphi?
hikari
  • 3,393
  • 1
  • 33
  • 72
8
votes
1 answer

How can I play APNG files in android

I want to play APNG files and create animated stickers in my app like LINE messenger! I can create apng using some tools like APNG Assembler. but I dont know how to play animated png in my app. help me please!
farhad.kargaran
  • 2,233
  • 1
  • 24
  • 30
8
votes
1 answer

What are the differences between APNG and MNG?

I know that APNG is an extension of PNG, while MNG is more of its own format (albeit developed by the original PNG developers). MNG is barely supported in any browser at all, while APNG almost only has native support in Firefox (for various backward…
obskyr
  • 1,380
  • 1
  • 9
  • 25
8
votes
4 answers

Join up PNG images to an APNG animated image

Is it possible somehow to join up PNG images to an APNG animated image using nodejs? I've found PHP library only: link
don kaka
  • 1,179
  • 2
  • 12
  • 28
6
votes
0 answers

Is there a way to pause an Animated .PNG (APNG) on the webpage?

I'd like to support APNG files, but with hover to animate functionality on some pages so it's not too overwhelming. I'd rather not have to store both an animated and still version of the user profile picture to do so and instead just pause the…
psyda
  • 61
  • 2
5
votes
1 answer

Implementing the APNG Render Function

Hey everyone, So, I'm currently trying the implement the APNG Specification, but am having some trouble with the frame rendering. My function is private void UpdateUI() { foreach (PictureBox pb in pics) { APNGBox…
Roadrunner-EX
  • 824
  • 11
  • 23
4
votes
2 answers

Convert apng to gif with sufficiant resolution and color depth

I want to convert some animated PNG (APNG) images to animated GIF. I can successfully convert with a utility I found on the web called apng2gif. Expertly named if I may say. The problem is it does not convert the images with sufficient color depth…
David Kierans
  • 1,599
  • 1
  • 16
  • 24
3
votes
1 answer

Disable Animated PNG from animating in an html page

I'd like to stop an animated PNG from playing on my html page, and be frozen on the first frame. Any ideas to do this would be appreciated.
Ghajik
  • 43
  • 3
3
votes
0 answers

Is there a way to control which frame an APNG starts from using javascript?

I'm trying to make an APNG play on mouseover, then get the frame the APNG is on on mouseout, then use that frame to play a reversed APNG so that there's a smooth transition. I tried searching around but couldn't really find much. Basically I want to…
Cosmos
  • 41
  • 1
  • 4
3
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
  • 746
  • 7
  • 24
1
2 3 4 5