Superimposing vector data

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
Gasher

Superimposing vector data

Post by Gasher »

Hello everyone,

I would like to ask anyone on these forums regarding what the most simple way of adding the data from one vector format file to another vector format file whilst only doing some minor adjustments such as x/y -positioning of the later image.

I found the MagickWand function [CompositeImage] and my question is... Is it a good idea to use this function for what I am trying to achive or is there a better way? Any advice on this matter would be great.

Thank you very much for a really nice image manipulation library. It is truly great.

Best regards,
Gasher
Gasher

Re: Superimposing vector data

Post by Gasher »

Addition to the above:
I belive I got this working now... but my two main problem still resides:

Firstly this error occurs as soon as I try to use PDF or Illustrator formats:
"Postscript delegate failed `circle.pdf': No such file or directory @ pdf.c/ReadPDFImage/630 "

The file circle.pdf is in the directory and can be opened with other applications. Same thing happens if I try to use another PDF or even a .AI -file. EPS (and other formats) works great though.

My other issue is that when working with the EPS format, is it possible for me to force ImageMagick to _always_ use vector format. Because, when I read eps-files in IM, then work with them and re-save them... IM saves the result in rasterized format.

I would be grateful for any advice you might have for me.

Thank you again.
/Gasher
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Superimposing vector data

Post by mkoppanen »

Usually that error message appears if GhostScript is not installed or 'gs' command is not in PATH
Mikko Koppanen
My blog: http://valokuva.org
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Superimposing vector data

Post by el_supremo »

is it possible for me to force ImageMagick to _always_ use vector format. Because, when I read eps-files in IM, then work with them and re-save them... IM saves the result in rasterized format
IM converts vector images to an internal rasterized format before working on the image and it always saves images in raster format.
There's no way to make IM save an image in vector format.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Gasher

Re: Superimposing vector data

Post by Gasher »

Thank you very much for your replies.

So, there is no way to have IM save an image in vector format then? Is there a chance that any of you know of any other C/C++ API that would let me create a composite image from two vector files and still have the vector format retained in the final image?

Or is there some trick to do it in IM?

Regards,
Gasher
Post Reply