optimize/compress screenshots for docbook handbook
    Yuri Chornoivan 
    yurchor at ukr.net
       
    Fri May 30 06:28:30 BST 2025
    
    
  
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
    
    
More information about the kde-doc-english
mailing list