Hi, Look at my script used in the older version of digiKam handbook based on docbook :
https://invent.kde.org/documentation/digikam-doc/-/blob/v7.9.0/project/optpng.sh?ref_type=tags Note: now with digiKam manual based on Sphynx, we use Webp and it's so far better for the file size than PNG. Best Gilles Caulier Le ven. 30 mai 2025 à 07:28, Yuri Chornoivan <yurc...@ukr.net> a écrit : > > El dijous, 29 de maig del 2025, a les 22:59:55 (Hora d’estiu d’Europa > central), Jack va escriure: > > (I recently asked this on IRC, but Konversation crashed before I saw > > any response, so apologies if this is actually a duplicate request.) > > > > I'm currently capturing screenshots for the handbook for the new > > version of KMyMoney. I recall the last time I did this (years ago) > > there was a tool (or more than one?) for optimizing/compressing the png > > files, but I can't currently find any mention of such beyond the simple > > basics of capturing screenshots. > > optipng (i'm sure there's more, search in you favorite search engine for > optinpng alternative for linux or something) > > Cheers, > Albert > > > > > Thanks for any pointers to any fine manual I seem to have missed > > reading. > > > > Jack > > Hi, > > Personally, I use pngnq/advpng like this: > > #!/bin/sh > > for i in *.png > do > pngnq -s 1 "$i" && advpng -z4 "${i%.*}-nq8.png" && mv -f "${i%.*}- > nq8.png" "$i" > done > > Hope this helps. > > Best regards, > Yuri > >