Bug 407938

Summary: Icon resource file rcc is two times bigger on MacOS than on MS Windows
Product: [Plasma] Breeze Reporter: wojnilowicz <lukasz.wojnilowicz>
Component: IconsAssignee: visual-design
Status: RESOLVED FIXED    
Severity: normal CC: christoph, faure, kainz.a
Priority: NOR    
Version: 5.15.90   
Target Milestone: ---   
Platform: Compiled Sources   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description wojnilowicz 2019-05-25 11:32:50 UTC
SUMMARY
Compiling breeze icons on different operating systems as binary resource procudes files that differ significantly in size.

STEPS TO REPRODUCE
1. Download http://download.kde.org/stable/frameworks/5.58/breeze-icons-5.58.0.tar.xz
2. Compile with BINARY_ICONS_RESOURCE=ON
3. Do above on MacOS and MS Windows
4. Compare size of resultant breeze-icons.rcc file

OBSERVED RESULT
breeze-icons.rcc is 7.6 MB on MS Windows
breeze-icons.rcc is 19.3 MB on MacOS

EXPECTED RESULT
Size of breeze-icons.rcc should be equal on all operating systems

SOFTWARE/OS VERSIONS
Windows: 7, msys
macOS: 10.13, clang


ADDITIONAL INFORMATION
I think rcc file on MacOS contains duplicated data, eg.
In <BUILD_DIR>/icons/res/actions
there are two directories named:
"16" and "16@2x"
whereas on MS Windows there is only one directory named:
"16"
On MacOS "16" and "16@2x" have equal size, so they contain the same data.