Image - PIWEEK/polymux GitHub Wiki

A default image component displays a simple image. An image component has two display modes:

A custom image

  • url: The URL of the image we want to set
  • width(optional): The width of the image (setting this values in a custom image can deform the image)
  • height(optional): The height of the image (setting this values in a custom image can deform the image)
<polymux-image url="image.svg" width="640" height="480"></polymux-image>

A random placeholder

  • width(optional): The width of the image
  • height(optional): The height of the image
  • type(optional): We can choose what type of image we want to use. Will not work if used with url attribute
    • abstract: An abstract image
    • city: Images of cities
    • people: Random people doing random things
    • transport: things we use to move around
    • animals: Yeah, our beloved friends that sometimes want to eat us
    • nature: We love the Taiga (wink wink)
    • business: Buzzword buzzword
    • nightlife: I'm not drunk, Im promize...
    • sports: Jump! How tall?
    • cats: Purr animals default
    • fashion: When Purr animals become nice sweaters
    • technics: Nobody ever used this category
<polymux-image type="cats" width="640" height="480"></polymux-image>