chiark / gitweb /
remove -pedantic
[sgt-puzzles.git] / icons / icon.pl
index d0c5a8e03e8ffa731dafb1f9f0a2731b4c72b487..fcb1aa3e2cb754c413aaef9e626526e442ab2b3f 100755 (executable)
@@ -127,7 +127,7 @@ sub readicon {
     # point, to avoid having to do it ourselves (.BMP and hence
     # .ICO are bottom-up).
     my $data = [];
-    open IDATA, "convert -flip -depth 8 $filename rgba:- |";
+    open IDATA, "convert -set colorspace sRGB -flip -depth 8 $filename rgba:- |";
     push @$data, $rgb while (read IDATA,$rgb,4,0) == 4;
     close IDATA;
     # Check we have the right amount of data.