Converting .SVG to .TIF but it creates .MVG instead
Posted: 2015-02-12T10:00:06-07:00
Hi,
I want to convert .SVG image to .TIF.
With the following code the result TIF file looks like a MVG file
Could somebody tell me what did I wrong?
Thanks in advance!
Regards,
Tibor
I want to convert .SVG image to .TIF.
With the following code the result TIF file looks like a MVG file
Could somebody tell me what did I wrong?
Code: Select all
MagickBooleanType status;
MagickWand* magick_wand;
MagickWandGenesis ();
magick_wand = NewMagickWand ();
status = MagickReadImage (magick_wand, fullSvgPath);
if (status != MagickFalse) {
MagickResizeImage (magick_wand, width * 2, height * 2, UndefinedFilter, 1.0);
MagickSetImageFormat (magick_wand, "TIFF");
MagickSetImageCompression (magick_wand, Group4Compression);
MagickSetImageCompressionQuality (magick_wand, 0);
MagickStripImage (magick_wand);
status = MagickWriteImage (magick_wand, fullTifPath); // fullTifPath ends with ".tif"
if (status == MagickFalse) {
ThrowMagickWandException (magick_wand);
}
} else {
ThrowMagickWandException (magick_wand);
}
magick_wand = DestroyMagickWand (magick_wand);
MagickWandTerminus ();
Regards,
Tibor