Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add image #281

Closed
picli3 opened this issue Apr 30, 2022 · 5 comments
Closed

how to add image #281

picli3 opened this issue Apr 30, 2022 · 5 comments

Comments

@picli3
Copy link

picli3 commented Apr 30, 2022

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.

@kvid
Copy link
Collaborator

kvid commented Apr 30, 2022

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.

@picli3
Copy link
Author

picli3 commented Apr 30, 2022

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.

@kvid
Copy link
Collaborator

kvid commented Apr 30, 2022

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.

@picli3
Copy link
Author

picli3 commented May 1, 2022

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

@kvid
Copy link
Collaborator

kvid commented Apr 10, 2023

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 kvid closed this as completed Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants