Autor Tema: Conversor de GIF (animado) a APNG (animated png)  (Leído 1975 veces)

Fl0ppy

  • Administrador
  • Usuario Héroe
  • *****
  • Mensajes: 9577
Conversor de GIF (animado) a APNG (animated png)
« en: 12 de Marzo de 2018, 04:56:37 pm »
http://gif2apng.sourceforge.net/

gif2apng is a simple program that converts animations from GIF to APNG format.

Quote (selected)
It disproves the common misconception that Animated PNG files are always too big, as it actually creates APNG files smaller than the original GIFs. Command-line version is very easy to use, and available for all major OSes. GUI version for Windows is also available.

Command line: gif2apng [options] anim.gif [anim.png]

-z0: zlib compression

-z1: 7zip compression (default)

-z2: Zopfli compression

-i##: number of iterations (default -i15) for 7zip and Zopfli

-kp: keep palette from GIF as is, do not optimize it.


Mass conversion, if you need to process all GIFs in the current directory:

for %%f in (*.gif) do gif2apng %%f

Example:


GIF = 97 864 bytes


APNG = 77 472 bytes

In this example, APNG is 20% smaller than original GIF (source). It's clear that bandwidth savings from switching to APNG could be quite significant, considering it's a lossless conversion. Alternative solutions like HTML5 video codecs or lossy animated WebP could produce noticable artifacts on computer graphics type of animation like the above example.

Command-line version of gif2apng is available for all major OSes, there is also a GUI version for Windows. C++ source code is available under zlib license.

GIF vs APNG vs WebP comparison: http://littlesvr.ca/apng/gif_apng_webp.html
https://sourceforge.net/projects/gif2apng/files/latest/download
Siempre que pasa igual sucede lo mismo



marc731116

  • KaPiTaL SiN miembro
  • Usuario Héroe
  • *
  • Mensajes: 629
Re:Conversor de GIF (animado) a APNG (animated png)
« Respuesta #1 en: 12 de Marzo de 2018, 05:12:39 pm »
Es una buena opción, 20% de ahorro ya es algo, aunque si se alcanza a ver algo de perdida en calidad  :ok: