XYZ -> sRGB issues after update
Posted: 2012-06-05T17:27:06-07:00
Hi, I have been using this script to convert XYZ -> sRGB. This script was working satisfactory until recently. After the latest update the images comes out greyish and off. I'm using Arch Linux and ImageMagick 6.7.7-5.
Here is the code:
Here is the code:
Code: Select all
#!/bin/bash
xyz2srgb() {
convert -verbose "$1" \
-type TrueColor \
-alpha Off \
-gamma 0.384615 \
-color-matrix "3.2404542 -1.5371385 -0.4985314 \
-0.9692660 1.8760108 0.0415560 \
0.0556434 -0.2040259 1.0572252" \
-gamma 2.2 \
-depth 8 \
$(basename "$1" ".j2c").tif
}
export -f xyz2srgb
j2c="$(readlink -f "$1")"
tif="$(readlink -f "$2")"
cd "$tif"; find "$j2c" -name "*.j2c" | sort | parallel xyz2srgb {}