Hi,
Using awesome-3.4.6, with libpng-1.2.42 and ImageMagick-6.5.6
Following is a little patch that fixes the error(ignorable) i get at build
time.
'-gamma 0.6' was added for old ImageMagick compatibility but appears to be
interfering with the new versions. Also newer ImageMagick-6.5.5 onwards there's
a new -auto-gamma which could be used in the future.
The 'incorrect gamma=(0/100000)' error is returned by libpng, use 'display
-verbose <bad-generated-png>' to check sanity of image.
'convert -gamma 0.6 -channel A -evaluate Multiply 0.4 <image> <new-image>'
'convert -auto-gamma -channel A -evaluate Multiply 0.4 <image> <new-image>'
'convert -channel A -evaluate Multiply 0.4 <image> <new-image>'
All 3 above commands produce the same image visually. Either '-auto-gamma'
should be used or '-gamma' should be dropped.
--
thanks
zoyd
---- patch -------
diff --git a/a/CMakeLists.txt b/b/CMakeLists.txt
index 8042b95..9fe70ae 100644
--- a/a/CMakeLists.txt
+++ b/b/CMakeLists.txt
@@ -300,7 +300,7 @@ endmacro()
foreach(icon ${ALL_ICONS})
# Make unfocused icons translucent
a_icon_convert("_focus" "_normal" ${icon}
- -gamma 0.6 -channel A -evaluate Multiply 0.4)
+ -channel A -evaluate Multiply 0.4)
endforeach()
foreach(icon ${ALL_ICONS})
---- error -------
[ 66%] Generating themes/zenburn//titlebar//floating_focus_inactive.png
[ 66%] Generating themes/zenburn//titlebar//sticky_focus_inactive.png
[ 66%] Generating themes/default//titlebar//maximized_normal_inactive.png
[ 66%] Generating themes/default//titlebar//ontop_normal_inactive.png
[ 66%] Generating themes/default//titlebar//floating_normal_inactive.png
[ 66%] Generating themes/default//titlebar//sticky_normal_inactive.png
[ 66%] Generating themes/zenburn//titlebar//maximized_normal_inactive.png
incorrect gamma=(0/100000)
convert: Ignoring incorrect gAMA value when sRGB is also present
`/sources/awesome-3.4.6/build/themes/zenburn//titlebar//maximized_normal_active.png'
@ png.c/PNGWarningHandler/1434.
[ 66%] Generating themes/zenburn//titlebar//ontop_normal_inactive.png
incorrect gamma=(0/100000)
convert: Ignoring incorrect gAMA value when sRGB is also present
`/sources/awesome-3.4.6/build/themes/zenburn//titlebar//ontop_normal_active.png'
@ png.c/PNGWarningHandler/1434.
[ 66%] Generating themes/zenburn//titlebar//floating_normal_inactive.png
incorrect gamma=(0/100000)
convert: Ignoring incorrect gAMA value when sRGB is also present
`/sources/awesome-3.4.6/build/themes/zenburn//titlebar//floating_normal_active.png'
@ png.c/PNGWarningHandler/1434.
[ 66%] Generating themes/zenburn//titlebar//sticky_normal_inactive.png
incorrect gamma=(0/100000)
convert: Ignoring incorrect gAMA value when sRGB is also present
`/sources/awesome-3.4.6/build/themes/zenburn//titlebar//sticky_normal_active.png'
@ png.c/PNGWarningHandler/1434.
[100%] Built target generated_icons
--
To unsubscribe, send mail to [email protected].