# Graphviz image loading error

**URL:** <https://forum.graphviz.org/t/graphviz-image-loading-error/2658>\
**Category:** Help\
**Created:** [January 13, 2025, 9:06pm UTC](https://forum.graphviz.org/t/graphviz-image-loading-error/2658 "2025-01-13T21:06:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xenlink](https://avatars.discourse-cdn.com/v4/letter/x/dbc845/32.png) [@xenlink](https://forum.graphviz.org/u/xenlink)\
**Post date:** [January 13, 2025, 9:06pm UTC](https://forum.graphviz.org/t/graphviz-image-loading-error/2658/1 "2025-01-13T21:06:20Z")

</div>

![image_2025-01-13_220450361](https://global.discourse-cdn.com/graphviz/original/2X/7/766ebe0f1b0c036bbcbe5c90de60c9cd4531e276.png)

Hello I created a dot graphique by usinng images on a old laptop and the pdf render was good but when I wanted to try on my new computer this message appere on screen while i touched to nothing can somebody help me please.

---

<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:** [January 13, 2025, 9:17pm UTC](https://forum.graphviz.org/t/graphviz-image-loading-error/2658/2 "2025-01-13T21:17:13Z")

</div>

Please show the input file and the command line you used

---

<div class="post-metadata">

**Author:** ![xenlink](https://avatars.discourse-cdn.com/v4/letter/x/dbc845/32.png) [@xenlink](https://forum.graphviz.org/u/xenlink)\
**Post date:** [January 13, 2025, 9:31pm UTC](https://forum.graphviz.org/t/graphviz-image-loading-error/2658/4 "2025-01-13T21:31:38Z")

</div>

Uploading: aatrox.jpg…  
Uploading: graphe.dot…

dot -Tpdf graphe.dot -o graphe.png

---

<div class="post-metadata">

**Author:** ![xenlink](https://avatars.discourse-cdn.com/v4/letter/x/dbc845/32.png) [@xenlink](https://forum.graphviz.org/u/xenlink)\
**Post date:** [January 13, 2025, 9:38pm UTC](https://forum.graphviz.org/t/graphviz-image-loading-error/2658/5 "2025-01-13T21:38:01Z")

</div>

Uploading: aatrox.jpg…  
Uploading: graphe.dot…

digraph G {

aa[label = " " ,image= “aatrox.png”,shape=none];

aa-\>zy

}  
dot -Tpdf graphe.dot -o graphe.png

---

<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:** [January 13, 2025, 11:47pm UTC](https://forum.graphviz.org/t/graphviz-image-loading-error/2658/6 "2025-01-13T23:47:52Z")

</div>

The above posting mentions (but does not include) _aatrox.jpg_, while the input file references _aatrox.png_ (note the different suffix)  
Does the file _aatrox.png_ exist and is it the same directory as the input file?

---

<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:** [January 14, 2025, 6:17am UTC](https://forum.graphviz.org/t/graphviz-image-loading-error/2658/7 "2025-01-14T06:17:32Z")

</div>

I think the bigger problem here is:

> `… -Tpdf … -o ….png`

You will find better luck pairing `-Tpdf` with a `.pdf` output or `-Tpng` with a `.png` output.
