-clone converts grayscale image to sRGB
Posted: 2018-01-30T16:04:21-07:00
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=33443
Code: Select all
convert logo: logo.pgm
convert logo.pgm -clone 0 -delete 0 logo.mpc
identify -verbose logo.mpc
head logo.mpc
...
type=Grayscale
colorspace=Gray
...
Code: Select all
magick input.tif -write input.icc ^
-profile Gray-elle-V2-g10.icc -distort Resize 500 ^
( -clone 0 -gamma 3 -gamma 0.33333 ) ( -clone 0 ) -delete 0 ( -clone 1 ) -compose over -composite ^
-profile input.icc output.tif
Code: Select all
magick: color profile operates on another colorspace `icc' @ error/profile.c/ProfileImage/1018.
Code: Select all
magick input.tif -write input.icc ^
-profile Gray-elle-V2-g10.icc ^
( -clone 0 -gamma 3 -gamma 0.33333 ) ( -clone 0 ) -delete 0 ( -clone 1 ) -compose over -composite ^
-profile input.icc output.tif
Code: Select all
magick identify output.tif
output.tif TIFF 600x761 600x761+0+0 16-bit Grayscale Gray 942600B 0.000u 0:00.000
Code: Select all
magick input.tif -write input.icc \
-profile Gray-elle-V2-g10.icc -distort Resize 500 \
\( -clone 0 \) -compose over -composite \
-profile input.icc output.tif
Code: Select all
magick input.tif -write input.icc \
-profile Gray-elle-V2-g10.icc -distort Resize 500 \
\( -clone 0 -evaluate pow 0.5 \) -compose over -composite \
-profile input.icc output.tif
Code: Select all
im7 magick input.tif -write input.icc \
-profile Gray-elle-V2-g10.icc -distort Resize 500 \
\( -clone 0 -evaluate pow 2 \) -compose over -composite \
-profile input.icc output.tif
Code: Select all
convert input.tif -write input.icc \
-profile Gray-elle-V2-g10.icc -distort Resize 500 \
\( -clone 0 -evaluate pow 0.5 \) -compose over -composite \
-profile input.icc output.tif
Code: Select all
magick input.tif -write input.icc \
-profile Gray-elle-V2-g10.icc \
\( -clone 0 -evaluate pow 0.5 \) -compose over -composite \
-profile input.icc output.tif