WireViz
WireViz copied to clipboard
how to add image
I have been trying to add an image of the connector, but I have not been successful nor do I see anything related in the tutorial.

I'm putting it as HTML, I don't know.
I discovered this tool recently, and I find it very good.
Thank you for reporting this strange error message. I admit it doesn't tell you much about what really is the problem. We are discussing how to improve error messages in #207.
See example-08 and the syntax doc for proper input syntax.
Thank you very much for answering, I'm doing it this way and it still doesn't work.
i get the following error

the image is in the same file path, use an absolute path and a relative path and the result is the same.
To be able to reproduce your use case, please provide your version numbers and full input YAML as described in the guidelines. The error might be triggered by something in your input YAML that is not shown in your excerpt above. Try also the original example-08 as input to see if that also triggers the same error. Both absolute and relative paths should work.
It already worked, I had a previous syntax problem.
thanks for your help.
X2:
type: DT04-3P
subtype: male
pinlabels: [BAT+, BAT-, IGN]
image:
src: "/home/maykol/Documentos/cables/TPS/wifi.png" # path to the image file
# optional parameters:
#caption: # text to display below the image
#bgcolor: # Background color of entry in diagram component box
width: 100 # Expand image cell to this minimum height
#fixedsize: false # Avoid scaling to a fixed size

It seems this issue has been solved, and #292 might help to avoid similar mistakes in the future. Feel free to re-open this issue again @picli3 if you don't agree.