]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 10 Feb 2013 14:16:17 +0000 (14:16 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 10 Feb 2013 14:16:17 +0000 (14:16 +0000)
MagickCore/coder.c
coders/dot.c

index 2ca48584819504b32fac7109dabf9c13c47e3f46..0f0dccc1d6ec5f92d4b6dde0b5709287923eb84c 100644 (file)
@@ -128,6 +128,7 @@ static const CoderMapInfo
     { "G", "RAW" },
     { "GRANITE", "MAGICK" },
     { "GROUP4", "TIFF" },
+    { "GV", "DOT" },
     { "K25", "DNG" },
     { "KDC", "DNG" },
     { "H", "MAGICK" },
index 7299de1ef7a1f5dadfb7bfa978dac5499dfb0028..2ce8815f29757697332319e55e12002a0ed31eaf 100644 (file)
@@ -135,7 +135,7 @@ static Image *ReadDOTImage(const ImageInfo *image_info,ExceptionInfo *exception)
   (void) AcquireUniqueFilename(read_info->filename);
   (void) FormatLocaleString(command,MaxTextExtent,"-Tsvg -o%s %s",
     read_info->filename,image_info->filename);
-  graph=agread(GetBlobFileHandle(image));
+  graph=agread(GetBlobFileHandle(image),(Agdisc_t *) NULL);
   if (graph == (graph_t *) NULL)
     return ((Image *) NULL);
   option=GetImageOption(image_info,"dot:layout-engine");
@@ -188,6 +188,14 @@ ModuleExport size_t RegisterDOTImage(void)
   entry=SetMagickInfo("DOT");
 #if defined(MAGICKCORE_GVC_DELEGATE)
   entry->decoder=(DecodeImageHandler *) ReadDOTImage;
+#endif
+  entry->blob_support=MagickFalse;
+  entry->description=ConstantString("Graphviz");
+  entry->module=ConstantString("DOT");
+  (void) RegisterMagickInfo(entry);
+  entry=SetMagickInfo("GV");
+#if defined(MAGICKCORE_GVC_DELEGATE)
+  entry->decoder=(DecodeImageHandler *) ReadDOTImage;
 #endif
   entry->blob_support=MagickFalse;
   entry->description=ConstantString("Graphviz");
@@ -220,6 +228,7 @@ ModuleExport size_t RegisterDOTImage(void)
 */
 ModuleExport void UnregisterDOTImage(void)
 {
+  (void) UnregisterMagickInfo("GV");
   (void) UnregisterMagickInfo("DOT");
 #if defined(MAGICKCORE_GVC_DELEGATE)
   gvFreeContext(graphic_context);