yiisoft / yii

Yii PHP Framework 1.1.x
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
4.84k stars 2.28k forks source link

Optimize PNG files #4495

Closed dilyanpalauzov closed 2 years ago

dilyanpalauzov commented 2 years ago

by calling for i in $(find -name '*.png'); do optipng -o7 -zm9 $i; done.

what-the-diff[bot] commented 2 years ago
samdark commented 2 years ago

Thanks.

marcovtwout commented 2 years ago

@dilyanpalauzov Could you tell me why we would not use the officially distributed files from jQueryUI and instead optimize these?

samdark commented 2 years ago

@marcovtwout just these are a bit smaller :) I did that in the past but it was lost during one of the updates.

marcovtwout commented 2 years ago

@samdark Thanks for clearning that up. One might otherwise wonder why vendor files are modified / will give a binary signature mismatch. To save just a few hundred bytes I would personally use the originals, but if this was common practice before in yii1 I guess it makes sense.

dilyanpalauzov commented 2 years ago

I optimized the PNG files in Limesurvey. Then I was told that once upstream synchronization happens, the changes will be reverted. In turn I optimized the PNG files used upstream projects, like here or https://github.com/jquery/jquery-ui/pull/2132.