{"id":29225,"date":"2019-01-15T10:00:38","date_gmt":"2019-01-15T08:00:38","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=29225"},"modified":"2019-01-15T10:00:46","modified_gmt":"2019-01-15T08:00:46","slug":"graphviz-dot-format-png-not-recognized","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2019\/01\/15\/graphviz-dot-format-png-not-recognized\/","title":{"rendered":"GraphViz dot: Format: &#8220;png&#8221; not recognized."},"content":{"rendered":"<!-- google_ad_section_start -->\n\n<p class=\"wp-block-paragraph\">As I&#8217;ve mentioned many times, I&#8217;m a huge fan of <a href=\"https:\/\/www.graphviz.org\/\">GraphViz<\/a> software suite in general, and the dot tool in particular.  It&#8217;s super handy for generating graphs and diagrams out of plain text files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Today though I came across a problem that I haven&#8217;t seen before. While trying to generate an updated PNG graph from a dot file that used to work just fine before, I got the following:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\n$ dot -Tpng source.dot -o destination.png \nFormat: &quot;png&quot; not recognized. Use one of: canon cmap cmapx cmapx_np dot dot_json eps fig gv imap imap_np ismap json json0 mp pic plain plain-ext pov ps ps2 svg svgz tk vdx vml vmlz xdot xdot1.2 xdot1.4 xdot_json\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">That looks weird. I tried the same with a few other formats and none of them were working. A quick Google search around found the solution over at <a href=\"https:\/\/stackoverflow.com\/questions\/22427184\/dot-doesnt-support-any-format-in-a-newly-installed-graphviz\">StackOverflow<\/a>. All I had to do was:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\n$ sudo dot -c\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">After that, dot started working as always.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>As I&#8217;ve mentioned many times, I&#8217;m a huge fan of GraphViz software suite in general, and the dot tool in particular. It&#8217;s super handy for generating graphs and diagrams out of plain text files. Today though I came across a problem that I haven&#8217;t seen before. While trying to generate an updated PNG graph from &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2019\/01\/15\/graphviz-dot-format-png-not-recognized\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">GraphViz dot: Format: &#8220;png&#8221; not recognized.<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"GraphViz dot: Format: \"png\" not recognized. #Fedora #Linux #GraphViz","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,6,133,62],"tags":[2351,2276],"keyring_services":[],"class_list":["post-29225","post","type-post","status-publish","format-standard","hentry","category-general","category-linux","category-sysadmin","category-technology","tag-fedora-linux","tag-graphviz"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":24608,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/08\/20\/graphviz-dot-erds-network-diagrams\/","url_meta":{"origin":29225,"position":0},"title":"Using Graphviz dot for ERDs, network diagrams and more","author":"Leonid Mamchenkov","date":"August 20, 2015","format":false,"excerpt":"I've mentioned Graphviz many a time on this blog. \u00a0It's simple to use, yet very powerful. \u00a0The dot language is something that can be jotted down by hand in the simplest of all text editors, or generated programmatically. The official website features a gallery, which demonstrates a wide range of\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"Simple graph","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2015\/08\/simple.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":7358,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/03\/11\/gramps-and-graphviz-speak-russian\/","url_meta":{"origin":29225,"position":1},"title":"Gramps and GraphViz speak Russian","author":"Leonid Mamchenkov","date":"March 11, 2004","format":false,"excerpt":"Today is the very great day in history! :) I've managed to convince gramps to correctly export my family tree into GraphViz format. It did preserve all the names in Unicode, so I just had to install a unicode TrueType Arial font and generate a GIF and PNG. Both of\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":23081,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/12\/03\/mermaid-markdown-like-generation-of-flowcharts-and-diagrams\/","url_meta":{"origin":29225,"position":2},"title":"mermaid &#8211; markdown-like generation of flowcharts and diagrams","author":"Leonid Mamchenkov","date":"December 3, 2014","format":"link","excerpt":"mermaid - markdown-like generation of flowcharts and diagrams. \u00a0This is like a web-oriented, d3-based implementation of the dot tool from the GraphViz package. \u00a0","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"graph","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2014\/12\/graph-500x123.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":12274,"url":"https:\/\/mamchenkov.net\/wordpress\/2010\/03\/20\/cakephp-graphviz-making-sense-of-a-numerous-models\/","url_meta":{"origin":29225,"position":3},"title":"CakePHP + GraphViz = making sense of a numerous models","author":"Leonid Mamchenkov","date":"March 20, 2010","format":false,"excerpt":"NOTE: THIS IS VERY MUCH OUTDATED! Read about the update or go directly to GitHub repository for the new version. \u00a0 I have a task at hand.\u00a0 I have to re-introduce myself to a rather large codebase.\u00a0 It's a project that migrated to CakePHP a couple of years ago and\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2010\/03\/graph.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":14838,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/05\/08\/cakephp-graphviz-models\/","url_meta":{"origin":29225,"position":4},"title":"CakePHP GraphViz Models","author":"Leonid Mamchenkov","date":"May 8, 2011","format":false,"excerpt":"I have completely and totally rewritten my old script that generates a graph of CakePHP models and their relationships. \u00a0Instead of pasting the code in here, I pushed all of its development to GitHub where it now enjoys a new repository. \u00a0Please have a look, try it out, and let\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24008,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/04\/27\/schemaspy-graphical-database-schema-metadata-browser\/","url_meta":{"origin":29225,"position":5},"title":"SchemaSpy &#8211; Graphical Database Schema Metadata Browser","author":"Leonid Mamchenkov","date":"April 27, 2015","format":"link","excerpt":"SchemaSpy - Graphical Database Schema Metadata Browser. \u00a0This is a tool written in Java that helps one to generate database schema documentation. \u00a0Have a look at some sample pages. \u00a0Those familiar with Graphviz will immediately realize that the tools is using dot for graphing tables and their relationships. \u00a0Those familiar\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/29225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=29225"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/29225\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=29225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=29225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=29225"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=29225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}