%
%
*/
-
+\f
/*
Include declarations.
*/
#include "librsvg/librsvg-features.h"
#endif
#endif
-
+\f
/*
Typedef declarations.
*/
document;
#endif
} SVGInfo;
-
+\f
/*
Forward declarations.
*/
static MagickBooleanType
WriteSVGImage(const ImageInfo *,Image *,ExceptionInfo *);
-
+\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
attributes;
/*
- Our best hope for compliance to the SVG standard.
+ Our best hope of compliance with the SVG standard.
*/
status=AcquireUniqueSymbolicLink(image->filename,input_filename);
(void) AcquireUniqueFilename(output_filename);
if ((status == 0) && (stat(output_filename,&attributes) == 0) &&
(attributes.st_size != 0))
{
+ Image
+ *svg_image;
+
ImageInfo
*read_info;
read_info=CloneImageInfo(image_info);
(void) CopyMagickString(read_info->filename,output_filename,
MaxTextExtent);
- image=ReadImage(read_info,exception);
+ svg_image=ReadImage(read_info,exception);
read_info=DestroyImageInfo(read_info);
(void) RelinquishUniqueFileResource(output_filename);
- if (image != (Image *) NULL)
- return(image);
+ if (svg_image != (Image *) NULL)
+ {
+ image=DestroyImage(image);
+ return(svg_image);
+ }
}
(void) RelinquishUniqueFileResource(output_filename);
}
return(GetFirstImageInList(image));
}
#endif
-
+\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
(void) RegisterMagickInfo(entry);
return(MagickImageCoderSignature);
}
-
+\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
xmlCleanupParser();
#endif
}
-
+\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %