Neato not rendering gif or jpg

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.

[~/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?

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

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.

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.

I can repro this. Bisect says e1ca62a944e62a94fbdae7fe757ab230e218d27f is responsible. I’ll look into a fix now…

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

Proposed fix: Revert "gd plugin gd_format: remove pointer alignment assumptions" (!4059) · Merge requests · graphviz / graphviz · GitLab