# Neato not rendering gif or jpg

**URL:** <https://forum.graphviz.org/t/neato-not-rendering-gif-or-jpg/2494>\
**Category:** Help\
**Created:** [October 14, 2024, 7:33pm UTC](https://forum.graphviz.org/t/neato-not-rendering-gif-or-jpg/2494 "2024-10-14T19:33:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgibson](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/tgibson/32/1532_2.png) [@tgibson](https://forum.graphviz.org/u/tgibson)\
**Post date:** [October 14, 2024, 7:33pm UTC](https://forum.graphviz.org/t/neato-not-rendering-gif-or-jpg/2494/1 "2024-10-14T19:33:27Z")

</div>

```auto
strict graph {
  overlap="false";
  node [shape="circle", label="", style="filled"];

  1 [fillcolor=blue];
  2 [fillcolor=red];
  3 [fillcolor=green];
  4 [fillcolor=yellow];
  1 -- 2;
  1 -- 3;
  1 -- 4;
  2 -- 3;
  2 -- 4;
  3 -- 4;
}

```

`neato` renders this just fine as PDF or PNG. On Linux rendered image is blank for GIF and JPG. On Intel MacOS only GIF image is blank. On an older version of Graphviz (2.43.0) all render fine.

```auto
[~/graphy]$ neato -V
neato - graphviz version 12.1.2 (0)
[~/graphy]$ neato -Tx
Format: "x" not recognized. Use one of: canon cmap cmapx cmapx_np dot dot_json eps fig gd gd2 gif gv imap imap_np ismap jpe jpeg jpg json json0 kitty kittyz pdf pic plain plain-ext png pov ps ps2 svg svg_inline svgz tk vrml vt vt-24bit vt-4up vt-6up vt-8up wbmp webp x11 xdot xdot1.2 xdot1.4 xdot_json xlib
[~/graphy]$ neato -Tpng first_graph.dot >image.png #this image is fine
[~/graphy]$ neato -Tpdf first_graph.dot >image.pdf #this image is fine
[~/graphy]$ neato -Tgif first_graph.dot >image.gif #EMPTY IMAGE
[~/graphy]$ neato -Tjpg first_graph.dot >image.jpg #BLANK WHITE IMAGE

```

Is this a bug or are there supporting dependencies I haven’t installed?

---

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [October 15, 2024, 8:00pm UTC](https://forum.graphviz.org/t/neato-not-rendering-gif-or-jpg/2494/2 "2024-10-15T20:00:43Z")

</div>

On my Linux system, (neato graphviz version 12.2.0~dev.20241005.0106 (20241005.0106)) , **jpg** is OK but **gif** is blank!

---

<div class="post-metadata">

**Author:** ![jjlong](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/jjlong/32/887_2.png) [@jjlong](https://forum.graphviz.org/u/jjlong)\
**Post date:** [October 15, 2024, 9:01pm UTC](https://forum.graphviz.org/t/neato-not-rendering-gif-or-jpg/2494/3 "2024-10-15T21:01:54Z")

</div>

Additional confirmation. On my Windows 11 laptop with version:

`dot - graphviz version 12.1.2 (20240928.0832)`

I get the same results as @steveroush . PNG, and JPG work fine, no output for GIF.

---

<div class="post-metadata">

**Author:** ![scnorth](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/scnorth/32/89_2.png) [@scnorth](https://forum.graphviz.org/u/scnorth)\
**Post date:** [October 15, 2024, 11:39pm UTC](https://forum.graphviz.org/t/neato-not-rendering-gif-or-jpg/2494/4 "2024-10-15T23:39:24Z")

</div>

Probably just superstition, but I would always use `neato -Tgif file.dot -o file.gif` not `>file.gif` because of past problems with unwanted CRLF conversion corrupting binary files.

---

<div class="post-metadata">

**Author:** ![smattr](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/smattr/32/85_2.png) [@smattr](https://forum.graphviz.org/u/smattr)\
**Post date:** [October 18, 2024, 6:26am UTC](https://forum.graphviz.org/t/neato-not-rendering-gif-or-jpg/2494/5 "2024-10-18T06:26:30Z")

</div>

I can repro this. Bisect says [e1ca62a944e62a94fbdae7fe757ab230e218d27f](https://gitlab.com/graphviz/graphviz/-/commit/e1ca62a944e62a94fbdae7fe757ab230e218d27f) is responsible. I’ll look into a fix now…

([neato renders blank GIFs (#2609) · Issues · graphviz / graphviz · GitLab](https://gitlab.com/graphviz/graphviz/-/issues/2609) if you want to follow the progress on Gitlab, but I’ll cross-post updates here.)

---

<div class="post-metadata">

**Author:** ![smattr](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/smattr/32/85_2.png) [@smattr](https://forum.graphviz.org/u/smattr)\
**Post date:** [October 19, 2024, 12:53am UTC](https://forum.graphviz.org/t/neato-not-rendering-gif-or-jpg/2494/6 "2024-10-19T00:53:07Z")

</div>

Proposed fix: [Revert "gd plugin gd\_format: remove pointer alignment assumptions" (!4059) · Merge requests · graphviz / graphviz · GitLab](https://gitlab.com/graphviz/graphviz/-/merge_requests/4059)
