unrecognized color error
Posted: 2018-12-29T14:31:48-07:00
Hello,
ImageMagick: Version: ImageMagick 7.0.8-8 Q16 x64 2018-07-23 (for MS-Windows)
Windows 8.1
cygwin - zsh 5.5.1
I'd like to create most color pallette for image and following some examples I've got to:
Part in $() is for extraction colors from histogram, ordering it and getting rid of some cygwin/windows/newline stuff, when redirected to file it is in form:
When using first chunk I get:
When pasting second chunk into command line everything works as intended, just when using it directly (or even `cat`ing it from temp file).
It also happens when extracting hex color values (like #93817C). If it was purely weird stuff on border of Windows ImageMagick version and cygwin it should fail with last color value (192,191,193) - not all of them separately
Any help please?
ImageMagick: Version: ImageMagick 7.0.8-8 Q16 x64 2018-07-23 (for MS-Windows)
Windows 8.1
cygwin - zsh 5.5.1
I'd like to create most color pallette for image and following some examples I've got to:
Code: Select all
magick convert -size 100x100 $(magick convert IMG_20181112_055511.jpg -format %c -colorspace HSB -colors 10 histogram:info:- | sort -n -r | awk '{print $NF}' | sed -e 's/\r//g' | sed -e 's/srgb/xc:"rgb/' -e 's/)/)"/' | paste -sd' ') +append pallette0.png
Code: Select all
xc:"rgb(18,17,17)" xc:"rgb(163,164,169)" xc:"rgb(216,213,211)" xc:"rgb(180,186,197)" xc:"rgb(82,80,84)" xc:"rgb(188,195,206)" xc:"rgb(211,175,156)" xc:"rgb(147,129,124)" xc:"rgb(232,207,178)" xc:"rgb(192,191,193)"
Code: Select all
convert: unrecognized color `"rgb(18,17,17)"' @ warning/color.c/QueryColorCompliance/2394.
convert: unrecognized color `"rgb(163,164,169)"' @ warning/color.c/QueryColorCompliance/2394.
convert: unrecognized color `"rgb(216,213,211)"' @ warning/color.c/QueryColorCompliance/2394.
convert: unrecognized color `"rgb(180,186,197)"' @ warning/color.c/QueryColorCompliance/2394.
convert: unrecognized color `"rgb(82,80,84)"' @ warning/color.c/QueryColorCompliance/2394.
convert: unrecognized color `"rgb(188,195,206)"' @ warning/color.c/QueryColorCompliance/2394.
convert: unrecognized color `"rgb(211,175,156)"' @ warning/color.c/QueryColorCompliance/2394.
convert: unrecognized color `"rgb(147,129,124)"' @ warning/color.c/QueryColorCompliance/2394.
convert: unrecognized color `"rgb(232,207,178)"' @ warning/color.c/QueryColorCompliance/2394.
convert: unrecognized color `"rgb(192,191,193)"' @ warning/color.c/QueryColorCompliance/2394.
It also happens when extracting hex color values (like #93817C). If it was purely weird stuff on border of Windows ImageMagick version and cygwin it should fail with last color value (192,191,193) - not all of them separately
Any help please?