WireViz icon indicating copy to clipboard operation
WireViz copied to clipboard

how to add image

Open picli3 opened this issue 3 years ago • 4 comments

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.

picli3 avatar Apr 30 '22 02:04 picli3

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.

kvid avatar Apr 30 '22 10:04 kvid

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.

picli3 avatar Apr 30 '22 16:04 picli3

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.

kvid avatar Apr 30 '22 19:04 kvid

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

picli3 avatar May 01 '22 18:05 picli3

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.

kvid avatar Apr 10 '23 19:04 kvid