mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 16:46:25 +00:00
updated wesnoth-pngcrush to use optipng instead of pngcrush
This commit is contained in:
parent
a16aca2167
commit
d57c9f22d5
@ -12,14 +12,15 @@ Version 1.1.13+svn:
|
||||
* new lava transitions (looks like completely new lava)
|
||||
* resolved all glitches with cave walls
|
||||
* language and i18n:
|
||||
* updated man-pages: French
|
||||
* updated translations: Czech, Esperanto, French, Italian
|
||||
* multiplayer maps:
|
||||
* revised multiplayer maps: Sablestone Delta, 3p Morituri, 4p Morituri,
|
||||
Merkwuerdigliebe
|
||||
* misc:
|
||||
* add script to strip ICC profiles from images
|
||||
* modified wesnoth-pngcrush to use pngcrush instead of pngrewrite (a lot
|
||||
slower than the old script)
|
||||
* modified wesnoth-pngcrush to use optipng instead of pngrewrite (a lot
|
||||
slower than the old script but good compression results)
|
||||
|
||||
Version 1.1.13:
|
||||
* graphics
|
||||
|
@ -11,6 +11,16 @@
|
||||
# but WITHOUT ANY WARRANTY.
|
||||
#
|
||||
# See the COPYING file for more details.
|
||||
#
|
||||
# Scipt to strip ICC profiles from all png images and to compress them
|
||||
# afterwards via optipng
|
||||
#
|
||||
# Requirements: ruby, imagemagick, optipng
|
||||
# HowToUse: start the script from the wesnoth maindir
|
||||
# 'svn ci' to commit the stuff
|
||||
# enter a commit message
|
||||
# enjoy ICC-profile clean and size-optimised png images
|
||||
#
|
||||
|
||||
require 'md5'
|
||||
|
||||
@ -35,7 +45,8 @@ files.each { | file|
|
||||
# next;
|
||||
# end
|
||||
output = `nice -n 19 convert -strip "#{file}" "#{file}.stripped.png"`;
|
||||
output = `nice -n 19 pngcrush -brute -q "#{file}.stripped.png" "#{file}.new.png"`;
|
||||
# output = `nice -n 19 pngcrush -brute -q "#{file}.stripped.png" "#{file}.new.png"`;
|
||||
output = `nice -n 19 optipng -q -o5 -nb -nc -np "#{file}.stripped.png" -out "#{file}.new.png"`;
|
||||
output = `rm "#{file}.stripped.png"`
|
||||
File.exists?("#{file}.new.png") or next;
|
||||
oldSize = File.size(file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user