Skip to content

Image Types #445

@kvid

Description

@kvid

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:
Image MolexKK254_4-pin.png
Image MolexKK254_4-pin.jpg
Image MolexKK254_4-pin.svg
Image MolexKK254_4-pin.gif

Please suggest including other image types you are able to use or any kind of improvements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions