Menu

OxiPng Instead of OptiPng?

2020-10-19
2023-10-24
  • Owen Quinlan

    Owen Quinlan - 2020-10-19

    Oxipng is a multithreaded rewrite of optipng in rust that has the same benafits just faster for more cores, is there any plans on using that instead of the old optipng?

     
    👍
    2
  • Nikkho

    Nikkho - 2020-10-19

    For your information I just tried with 3.0.1. And unfortunately, since more than 3 years (https://github.com/shssoichiro/oxipng/issues/79):
    Processing: elephant.png
    APNG files are not (yet) supported

     
  • Owen Quinlan

    Owen Quinlan - 2020-10-19

    would it be possible to use oxipng for normal png files and opti for just apng? I don't know if it is possible or not

     
  • Nikkho

    Nikkho - 2020-10-19

    It would be possible for sure. But given there are higher priority tasks in the list I guess it is not worth to partially implement Oxipng, even considering the development is not interested in APNG.

    According to some tests I took, there will not be almost any benefit. Other PNG plugins in FO already use Zopfli, so unless some one decides to integrate it, I will wait for Oxi giving same support as Opti, and thus, being a true replacement.

     
  • Owen Quinlan

    Owen Quinlan - 2020-10-19

    that's definatly fair enough

     
  • Yakov Till

    Yakov Till - 2020-12-01

    Hey guys, I see it's implemented now: github.com/image-rs/image/pull/1250

     
  • Nikkho

    Nikkho - 2020-12-01

    Thanks Yakov Till.
    Have anyone tryied? It is not the first time they log APNG support has been added and then it was not enabled.

     
  • Nikkho

    Nikkho - 2020-12-02

    Just tried again, and it was still a buzz:

    oxipng 4.0.0
    Processing: elephant.png
    APNG files are not (yet) supported

     
  • Gannet

    Gannet - 2023-10-22

    Oxipng 9 is out now with APNG support. It also has way better optimisation now than earlier versions, so I think you'll find benefit regardless of APNG :)

     
    • Nikkho

      Nikkho - 2023-10-22
       
  • Gannet

    Gannet - 2023-10-22

    That issue was opened before v9 was released - it does support recompressing APNGs now, just not reductions yet. Worth another look at least.

     
    • Nikkho

      Nikkho - 2023-10-22

      I did a quick test, and it makes sense. I have implemented it on the source, but still need to do more trials. Any feedback is welcome.

      https://sourceforge.net/p/nikkhokkho/code/1798/

       
  • Gannet

    Gannet - 2023-10-24

    Awesome, thank you!!
    Flags that may be of interest:
    --strip safe (or more aggressive --keep acTL,fcTL,fdAT)
    --alpha
    --scale16 (lossy!)
    --zopfli (probably only for highest level)

     

    Last edit: Gannet 2023-10-24
  • Nikkho

    Nikkho - 2023-10-24

    Thank you. I supposed --strip safe was by default, so I have added it. Also --alpha.
    zopfli (-Z) was already in place.

     

Log in to post a comment.