Colors not displayed after conversion svg to pdf

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
bilog.mourad
Posts: 2
Joined: 2013-03-21T05:25:12-07:00
Authentication code: 6789

Colors not displayed after conversion svg to pdf

Post by bilog.mourad »

Hello everyone, I've an an application witch generate an SVG source code and I must convert it to PDF.
The conversion works fine but when I open the PDF file generated I find that colors are not the same and in some cases are inverted.

I can't send you the SVG source it so big (about 10 Mo !), so that you can see the source image https://docs.google.com/a/bilog.fr/file ... ZpUW8/edit and the result image after adding a text and an icon https://docs.google.com/a/bilog.fr/file ... 9Wd0U/edit

Can anyone tell me what's rong in my procedure and how I can resolve this problem

Many thanks in advance.

Best regards
Last edited by bilog.mourad on 2013-03-25T00:45:22-07:00, edited 4 times in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Colors not displayed after conversion

Post by fmw42 »

Your images do not show up.

But note that IM will convert SVG to raster and then imbed the raster in a PDF shell. That may not be what you want. Also there may be colorspace issues depending upon what color space you specified in the SVG file and also on what version of IM you are using.

see
http://www.imagemagick.org/Usage/formats/#vector
viewtopic.php?f=4&t=21269
http://www.imagemagick.org/script/forma ... colorspace

What was your exact command? What Version of IM? What platform?
bilog.mourad
Posts: 2
Joined: 2013-03-21T05:25:12-07:00
Authentication code: 6789

Re: Colors not displayed after conversion svg to pdf

Post by bilog.mourad »

Many Thanks fmw42 for your reply.

I'm modified my post to let you seeying the images.
The command-line used for the conversion is very basci and simple : convert source_file.svg res_file.pdf
I'm on Windows 7 32 bits.

I've read the URL you sent but I've not most skills in working with images.

Many thanks for your help
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Colors not displayed after conversion svg to pdf

Post by fmw42 »

I am not an expert on SVG, but it looks like it is a colorspace issue.

try

convert -colorspace sRGB image.svg image.pdf
Post Reply