Mailinglist Archive: opensuse (958 mails)

< Previous Next >
Re: [opensuse] Re: pngquant - PNG compressor
On 03/05/2019 22.46, L A Walsh wrote:
On 5/3/2019 12:15 AM, Felix Miata wrote:
David C. Rankin composed on 2019-05-02 00:13 (UTC-0500):


Six months or so ago, Felix and I discussed utilities that did a good job of
png compression. pngquant does an excellent job, but there were no packages
for opensuse. I finally got around to packaging it.

----
Did your comparison also include optipng?


OptiPNG is a PNG optimizer that recompresses image files to a smaller
size, without losing any information. This program also converts
external formats (BMP, GIF, PNM; TIFF support is coming up) to
optimized PNG, and performs PNG integrity checks and corrections.
Distribution: openSUSE Tumbleweed


Testing on 15.1

cer@Elesar:~/Pictures/Screenshots> optipng --keep
Screenshot_2019-05-03_13-57-51-copy.png
** Processing: Screenshot_2019-05-03_13-57-51-copy.png
1920x1080 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 216461 bytes
Input file size = 216845 bytes

Trying:
zc = 9 zm = 8 zs = 1 f = 5 IDAT size = 213773

Selecting parameters:
zc = 9 zm = 8 zs = 1 f = 5 IDAT size = 213773

Output IDAT size = 213773 bytes (2688 bytes decrease)
Output file size = 213845 bytes (3000 bytes = 1.38% decrease)

cer@Elesar:~/Pictures/Screenshots> l
total 644
drwxr-xr-x 2 cer users 4096 May 3 22:54 ./
drwxr-xr-x 5 cer users 4096 Apr 21 14:53 ../
-rw-r--r-- 1 cer users 213845 May 3 22:54
Screenshot_2019-05-03_13-57-51-copy.png
-rw-r--r-- 1 cer users 216845 May 3 22:54
Screenshot_2019-05-03_13-57-51-copy.png.bak
-rw-r--r-- 1 cer users 216845 May 3 13:58 Screenshot_2019-05-03_13-57-51.png
cer@Elesar:~/Pictures/Screenshots>

I'm not very impressed ;-)


Trying pngquant from the graphics repo, as there is no 15.1 version on David's
repo:

cer@Elesar:~/Pictures/Screenshots> cp Screenshot_2019-05-03_13-57-51.png
Screenshot_2019-05-03_13-57-51-copy-2.png
cer@Elesar:~/Pictures/Screenshots> pngquant
Screenshot_2019-05-03_13-57-51-copy-2.png
cer@Elesar:~/Pictures/Screenshots> l
total 948
drwxr-xr-x 2 cer users 4096 May 3 23:01 ./
drwxr-xr-x 5 cer users 4096 Apr 21 14:53 ../
-rw-r--r-- 1 cer users 90144 May 3 23:01
Screenshot_2019-05-03_13-57-51-copy-2-fs8.png <===
-rw-r--r-- 1 cer users 216845 May 3 23:01
Screenshot_2019-05-03_13-57-51-copy-2.png
-rw-r--r-- 1 cer users 213845 May 3 22:54
Screenshot_2019-05-03_13-57-51-copy.png
-rw-r--r-- 1 cer users 216845 May 3 22:54
Screenshot_2019-05-03_13-57-51-copy.png.bak
-rw-r--r-- 1 cer users 216845 May 3 13:58 Screenshot_2019-05-03_13-57-51.png
cer@Elesar:~/Pictures/Screenshots>


Now I'm impressed.

And the result is pretty good for sending informative screenshots.


However, all of them seem to be 8 bit, according to "file":

cer@Elesar:~/Pictures/Screenshots> file *png
Screenshot_2019-05-03_13-57-51-copy-2-fs8.png: PNG image data, 1920 x 1080,
8-bit colormap, non-interlaced <-- pngquant
Screenshot_2019-05-03_13-57-51-copy-2.png: PNG image data, 1920 x 1080,
8-bit/color RGB, non-interlaced
Screenshot_2019-05-03_13-57-51-copy.png: PNG image data, 1920 x 1080,
8-bit/color RGB, non-interlaced <-- optipng
Screenshot_2019-05-03_13-57-51.png: PNG image data, 1920 x 1080,
8-bit/color RGB, non-interlaced <-- original


I don't have installed imagemagic to get more info.

--
Cheers / Saludos,

Carlos E. R.

(from openSUSE, Leap 15.1 x86_64 (ssd-test))

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups