-
Notifications
You must be signed in to change notification settings - Fork 253
Open
Description
I noticed that the SVG image for a connector is not shown in the PNG output. I wonder if this is also observed by others. JPG, PNG, and GIF images in connectors seems to work fine, but a TIF image was rejected by Graphviz. It would be nice to create a test use case with all image types expected to work, and perhaps a separate (sub-)issue for unexpected outputs for such a test use case.
Originally posted by @kvid in #443 (comment)
Preliminary test use case YAML input:
connectors:
png: &png
pincount: 4
image:
src: resources/MolexKK254_4-pin.png
jpg:
<<: *png
image:
src: resources/MolexKK254_4-pin.jpg
svg:
<<: *png
image:
src: resources/MolexKK254_4-pin.svg
gif:
<<: *png
image:
src: resources/MolexKK254_4-pin.gif
# tif:
# <<: *png
# image:
# src: resources/MolexKK254_4-pin.tif
# webp:
# <<: *png
# image:
# src: resources/MolexKK254_4-pin.webp
cables:
w:
category: bundle
colors: [YE]
length: 1
connections:
- - png: [1]
- w.: [1]
- jpg: [1]
- w.: [1]
- svg: [1]
- w.: [1]
- gif: [1]
# - w.: [1]
# - tif: [1]
# - w.: [1]
# - webp: [1]
Image files expected to be in a resources
subfolder:
MolexKK254_4-pin.png
MolexKK254_4-pin.jpg
MolexKK254_4-pin.svg
MolexKK254_4-pin.gif
Please suggest including other image types you are able to use or any kind of improvements.
Metadata
Metadata
Assignees
Labels
No labels