Convert RGB SVG to CMYK SVG possible?
Posted: 2012-09-18T20:21:52-07:00
Hello, ImageMagick users,
I have an SVG file in RGB colorspace... when I run IM's "identify", I get
Image: test_rgb.svg
Format: SVG (Scalable Vector Graphics)
Class: DirectClass
Geometry: 1500x1500+0+0
Units: Undefined
Type: TrueColorAlpha
Endianess: Undefined
Colorspace: sRGB
I am then using the IM convert utility as follows (which works fine on my JPG and TIFF files):
convert rgb.svg -profile srgb.icm -profile uswebcoatedswop.icc rgb2cmyk.svg
I get the following "verbose" output
srgb.icm ICM 1x1 1x1+0+0 16-bit sRGB 3.14KB 0.000u 0:00.000
uswebcoatedswop.icc ICC 1x1 1x1+0+0 16-bit sRGB 557KB 0.094u 0:00.055
test_rgb.svg=>test_rgb2cmyk.svg SVG 644x429 644x429+0+0 16-bit ColorSeparationAlpha CMYK 0.827u 0:00.530
This seems to run with no errors, and produces the "test_rgb2cmyk.svg" file at about 8k (test_rgb.svg is 8k). However, the "test_rgb2cmyk.svg" will not display in either IE or Gimp, and if I try to run IM's "identify -verbose test_rgb2cmyk.svg" I get the following errors:
identify.exe: Unescaped '<' not allowed in attributes values
`No such file or directory` @ error/svg.c/SVGError/2644.
identify.exe: attributes construct error
`No such file or directory` @ error/svg.c/SVGError/2644.
identify.exe: error parsing attribute name
`No such file or directory` @ error/svg.c/SVGError/2644.
identify.exe: attributes construct error
`No such file or directory` @ error/svg.c/SVGError/2644.
identify.exe: xmlParseStartTag: problem parsing attributes
`No such file or directory` @ error/svg.c/SVGError/2644.
identify.exe: Couldn't find end of Start Tag g
`No such file or directory` @ error/svg.c/SVGError/2644.
NOTE: Gimp fails with
Opening 'C:\SVG_to_CMYK\test_rgb2cmyk.svg' failed:
Could not open 'C:\SVG_to_CMYK\test_rgb2cmyk.svg' for reading:
Error domain 1 code 73 on line 5 column 10 of
file:///C:/SVG_to_CMYK: Couldn't find end of Start Tag g
My questions: Is it possible to do such a conversion (RGB SVG to CMYK SVG)? Am I not using the correct options? The command as I show it is what I use, successfully, to convert JPG and TIFF images.
Any questions / comments? I have uploaded the "test_rgb.svg" file here:
http://www.jon-schmid.com/test_rgb.zip
I have an SVG file in RGB colorspace... when I run IM's "identify", I get
Image: test_rgb.svg
Format: SVG (Scalable Vector Graphics)
Class: DirectClass
Geometry: 1500x1500+0+0
Units: Undefined
Type: TrueColorAlpha
Endianess: Undefined
Colorspace: sRGB
I am then using the IM convert utility as follows (which works fine on my JPG and TIFF files):
convert rgb.svg -profile srgb.icm -profile uswebcoatedswop.icc rgb2cmyk.svg
I get the following "verbose" output
srgb.icm ICM 1x1 1x1+0+0 16-bit sRGB 3.14KB 0.000u 0:00.000
uswebcoatedswop.icc ICC 1x1 1x1+0+0 16-bit sRGB 557KB 0.094u 0:00.055
test_rgb.svg=>test_rgb2cmyk.svg SVG 644x429 644x429+0+0 16-bit ColorSeparationAlpha CMYK 0.827u 0:00.530
This seems to run with no errors, and produces the "test_rgb2cmyk.svg" file at about 8k (test_rgb.svg is 8k). However, the "test_rgb2cmyk.svg" will not display in either IE or Gimp, and if I try to run IM's "identify -verbose test_rgb2cmyk.svg" I get the following errors:
identify.exe: Unescaped '<' not allowed in attributes values
`No such file or directory` @ error/svg.c/SVGError/2644.
identify.exe: attributes construct error
`No such file or directory` @ error/svg.c/SVGError/2644.
identify.exe: error parsing attribute name
`No such file or directory` @ error/svg.c/SVGError/2644.
identify.exe: attributes construct error
`No such file or directory` @ error/svg.c/SVGError/2644.
identify.exe: xmlParseStartTag: problem parsing attributes
`No such file or directory` @ error/svg.c/SVGError/2644.
identify.exe: Couldn't find end of Start Tag g
`No such file or directory` @ error/svg.c/SVGError/2644.
NOTE: Gimp fails with
Opening 'C:\SVG_to_CMYK\test_rgb2cmyk.svg' failed:
Could not open 'C:\SVG_to_CMYK\test_rgb2cmyk.svg' for reading:
Error domain 1 code 73 on line 5 column 10 of
file:///C:/SVG_to_CMYK: Couldn't find end of Start Tag g
My questions: Is it possible to do such a conversion (RGB SVG to CMYK SVG)? Am I not using the correct options? The command as I show it is what I use, successfully, to convert JPG and TIFF images.
Any questions / comments? I have uploaded the "test_rgb.svg" file here:
http://www.jon-schmid.com/test_rgb.zip