Overview

Request 1164976 superseded

- Use png for wallpapers for Tumbleweed

* SLES seems to be using png
* Using a compat symlink wallpapers/openSUSEdefault-> wallpapers/SLEdefault
allows running certain apps without rebuild. Such as cockpit.
* Use optipng -o5 to compress files (has to be reflected in spec)


Fabian Vogt's avatar

SLES seems to be using png

Not a good reason IMO. What's the size difference?


Lubos Kocman's avatar
author source maintainer target maintainer

lkocman@localhost:~/Workspace/opensuse/branding> ls -lah /usr/share/wallpapers/openSUSEdefault/contents/images/*jpg -rw-r--r-- 1 root root 40K Jan 22 15:46 /usr/share/wallpapers/openSUSEdefault/contents/images/1280x1024.jpg -rw-r--r-- 1 root root 44K Jan 22 15:46 /usr/share/wallpapers/openSUSEdefault/contents/images/1350x1080.jpg -rw-r--r-- 1 root root 46K Jan 22 15:46 /usr/share/wallpapers/openSUSEdefault/contents/images/1440x1080.jpg -rw-r--r-- 1 root root 50K Jan 22 15:46 /usr/share/wallpapers/openSUSEdefault/contents/images/1600x1200.jpg -rw-r--r-- 1 root root 62K Jan 22 15:46 /usr/share/wallpapers/openSUSEdefault/contents/images/1920x1080.jpg -rw-r--r-- 1 root root 61K Jan 22 15:46 /usr/share/wallpapers/openSUSEdefault/contents/images/1920x1200.jpg -rw-r--r-- 1 root root 145K Jan 22 15:46 /usr/share/wallpapers/openSUSEdefault/contents/images/3840x2400.jpg -rw-r--r-- 1 root root 219K Jan 22 15:46 /usr/share/wallpapers/openSUSEdefault/contents/images/5120x3200.jpg

vs

lkocman@tw:~/Workspace/opensuse/branding> ls -lah openSUSE/wallpapers/openSUSEdefault/contents/images/*.png -rw-r--r-- 1 lkocman users 296K Apr 4 16:39 openSUSE/wallpapers/openSUSEdefault/contents/images/1280x1024.png -rw-r--r-- 1 lkocman users 323K Apr 4 16:40 openSUSE/wallpapers/openSUSEdefault/contents/images/1350x1080.png -rw-r--r-- 1 lkocman users 341K Apr 4 16:40 openSUSE/wallpapers/openSUSEdefault/contents/images/1440x1080.png -rw-r--r-- 1 lkocman users 408K Apr 4 16:39 openSUSE/wallpapers/openSUSEdefault/contents/images/1600x1200.png -rw-r--r-- 1 lkocman users 403K Apr 4 16:39 openSUSE/wallpapers/openSUSEdefault/contents/images/1920x1080.png -rw-r--r-- 1 lkocman users 442K Apr 4 16:40 openSUSE/wallpapers/openSUSEdefault/contents/images/1920x1200.png -rw-r--r-- 1 lkocman users 1.5M Apr 4 16:39 openSUSE/wallpapers/openSUSEdefault/contents/images/3840x2400.png -rw-r--r-- 1 lkocman users 2.2M Apr 4 16:39 openSUSE/wallpapers/openSUSEdefault/contents/images/5120x3200.png


Dominique Leuenberger's avatar

That speaks very much for jpg (wasn't png supposed to compress better?)


Jay Michalska's avatar

The benefit of png is that it's lossless, jpg doesn't compress better unless it loses detail


Lubos Kocman's avatar
author source maintainer target maintainer

with optipng -o7 (slowest) total 5.8M removes about 100-200K from each file. Adds two-three minutes on build time.

lkocman@localhost:~/Workspace/opensuse/branding> ls -lah openSUSE/wallpapers/openSUSEdefault/contents/images/ total 5.8M drwxr-xr-x 1 lkocman users 208 Apr 4 17:14 . drwxr-xr-x 1 lkocman users 12 Apr 4 17:11 .. -rw-r--r-- 1 lkocman users 296K Apr 4 17:13 1280x1024.png -rw-r--r-- 1 lkocman users 323K Apr 4 17:14 1350x1080.png -rw-r--r-- 1 lkocman users 341K Apr 4 17:14 1440x1080.png -rw-r--r-- 1 lkocman users 408K Apr 4 17:13 1600x1200.png -rw-r--r-- 1 lkocman users 403K Apr 4 17:13 1920x1080.png -rw-r--r-- 1 lkocman users 442K Apr 4 17:13 1920x1200.png -rw-r--r-- 1 lkocman users 1.5M Apr 4 17:13 3840x2400.png -rw-r--r-- 1 lkocman users 2.2M Apr 4 17:12 5120x3200.png


Lubos Kocman's avatar
author source maintainer target maintainer

The main benefit is running SLE Micro cockpit on LeapMicro without rebuilding and need for a separate update channel just for cockpit :-)


Fabian Vogt's avatar

I don't see the compat symlink creation in the diff. In any case, it seems like the wrong approach to me


Lubos Kocman's avatar

Let me fix that. Sorry I originally wanted to test this all out on 16.0 / Micro 6.0 first

Request History
Lubos Kocman's avatar

lkocman created request

- Use png for wallpapers for Tumbleweed

* SLES seems to be using png
* Using a compat symlink wallpapers/openSUSEdefault-> wallpapers/SLEdefault
allows running certain apps without rebuild. Such as cockpit.
* Use optipng -o5 to compress files (has to be reflected in spec)


Lubos Kocman's avatar

lkocman superseded request

- Use png for wallpapers for Tumbleweed provide compat symlink for SLES

* SLES seems to be using png
* Using a compat symlink wallpapers/openSUSEdefault-> wallpapers/SLEdefault
allows running certain apps without rebuild. Such as cockpit.
* Use optipng -o5 to compress files (has to be reflected in spec)
*- Bump date

openSUSE Build Service is sponsored by