Closed sbrl closed 5 months ago
This is actually an interesting script. I find it a bit "alien" to the actual code of this repository, as I don't think it scales well to include scripts and/or code for every format or container under the sun that happens to use PNG internally, but I can see how it can come in handy and solve optimization needs for more people.
What do you and others think about adding a section to the README with useful script snippets like these? The code could be hosted in a Gist or something similar.
-1 @AlexTMjugador - while a nice idea, I think it might prove problematic to link to many other projects and adds ongoing maintenance... I'd say the suggestion is out of scope. Sorry 🤗
This is neat, though I think it would be more appropriate to post this to DrawPile/Krita or OpenRaster itself, as it seems more relevant to OpenRaster users than general oxipng users.
Also just for reference, FileOptimizer uses oxipng and can recursively optimise zip files, so it likely works for OpenRaster files. Leanify can too, though it uses zopflipng instead.
Ah, I thought that it was unlikely this would be accepted. No worries!
@AlexTMjugador: Yeah, I thought as much. It would be cool to have somewhere that lists associated scripts and programs, but I would probably agree that place isn't in this repository.
@andrews05: Good idea, I hadn't thought of that. While I can't find any source code repository for the OpenRaster website, I think I've seen some forums for Krita previously that I can dig up. Edit: found it, but it doesn't seem suitable. I'll just post a random gist somewhere instead.
@andrews05: FileOptimiser looks cool! Though it does appear to be windows-only.
Thanks for everyone's time!
Everyone's opinions here are fair enough. Thanks for the interesting PR anyway!
This script is probably inappropriate for submitting as a pull request to this repository, but I couldn't find a wiki to submit it to instead.
I discovered on the OpenRaster website that an OpenRaster image is just a
.zip
containing a bunch of PNGs (and, potentially, SVGs), so I wrote a little script to optimise them. I was surprised at the results, as both DrawPile and Krita are not very good at writing optimal OpenRaster files.Hopefully this is useful to someone?