Bug 104877 - Implement support for filter import and playback of animated PNG -- APNG
Summary: Implement support for filter import and playback of animated PNG -- APNG
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL: https://wiki.mozilla.org/APNG_Specifi...
Whiteboard:
Keywords:
Depends on:
Blocks: Images-Animated
  Show dependency treegraph
 
Reported: 2016-12-23 10:49 UTC by Volga
Modified: 2022-06-16 23:27 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volga 2016-12-23 10:49:23 UTC
Description:
I have try to insert APNG image into Impress presentation, but it does not work proper even if I playing slide show.

Steps to Reproduce:
1. Open Impress 
2. Insert APNG (download from: https://en.wikipedia.org/wiki/File:Animated_PNG_example_bouncing_beach_ball.png and https://en.wikipedia.org/wiki/File:Brain_MRI_apng_105px_100ms.png )
3. Insert Animated GIF (download from: https://en.wikipedia.org/wiki/File:Rotating_earth_(large).gif )

Actual Results:  
None of APNGs works as animated image, even if playing slide show, but GIF does.

Expected Results:
Both APNG and GIF should work as animated image.


Reproducible: Always

User Profile Reset: No

Additional Info:
Version: 5.3.0.0.beta2+ (x64)
Build ID: 371f0f6770add78ae81e0f769d0490874bca353c
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; Layout Engine: new; 
TinderBox: Win-x86_64@62-TDF, Branch:libreoffice-5-3, Time: 2016-12-22_13:59:31
Locale: zh-CN (zh_CN); Calc: group


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:50.0) Gecko/20100101 Firefox/50.0
Comment 1 Volga 2016-12-23 13:17:29 UTC
If you want to support that you can visit the following resource:
http://littlesvr.ca/apng/
Comment 2 Volga 2016-12-25 06:49:18 UTC
The APNG formats has 24-bit images and 8-bit transparency not available for GIFs, and it uses more common than MNG format which made by PNG Group officially. To get these advantages, intergrating animated PNG support into LibreOffice is necessary.
Comment 3 V Stuart Foote 2016-12-25 14:00:12 UTC
Without official support in libpng not clear this alternative to animated GIF can ever be implemented for LibreOffice.
Comment 4 MM 2016-12-31 19:08:57 UTC
Would be nice if aPNG is officially supported. Until then you can try to apply the unofficial patch.
https://sourceforge.net/projects/libpng-apng/?source=typ_redirect
Comment 5 Volga 2017-05-26 15:11:37 UTC
Google Chrome will support APNG natively in June.
Comment 6 Volga 2017-06-05 09:08:00 UTC
We can also try to parse three trunks from APNG images: acTL, fcTL and fdAT to get every framws, then feed them to libpng,
Comment 7 Volga 2017-06-09 06:01:26 UTC
(In reply to Volga from comment #6)
> We can also try to parse three trunks from APNG images: acTL, fcTL and fdAT
> to get every frames, then feed them to libpng,

On this page Chromium developer put an article to give further informations to describe how to do that:
https://chromium.googlesource.com/chromium/src/+/7d2b8c45afc9c0230410011293cc2e1dbb8943a7
Comment 8 Volga 2018-05-16 05:00:22 UTC
Mozilla also provide the patch to parse APNG, we can get it from their source repo:
https://dxr.mozilla.org/mozilla-central/source/media/libpng/apng.patch
Comment 9 windyplayer 2020-04-12 15:47:05 UTC Comment hidden (me-too)
Comment 10 Maverick 2022-06-16 23:26:52 UTC
I would like to say I prefer the use of apng over to webp because of it's better compression and performance.

As to it being officially supported by the png group that will most likely never happen (I would say 99.9% sure).

But it's supported by every major browser and one can use .apng for animated as opposed to .png for static.

I would also like to leave A very interesting link about performance and compression comparison:

http://littlesvr.ca/apng/gif_apng_webp.html