Can i rezise lovelace card?

i have problems with the size of one of my cards. Can i resize the door lock picture somehow?

views:
    # View tab title.
  - title: Home
    # Unique path for direct access /lovelace/${path}
    path: example
    # Each view can have a different theme applied. Theme should be defined in the frontend.
    theme: dark-mode
    # The cards to show on this view.
    cards:
      - entity: weather.hem
        type: weather-forecast
        # The filter card will filter entities for their state
      - type: entity-filter
        entities:
          - entity: device_tracker.jonny_iphonex_2
          - entity: device_tracker.monas_iphone_x
        state_filter:
          - 'home'
        card:
          type: glance
          title: People that are home
        # The picture entity card will represent an entity with a picture
      - type: picture-entity
        state_filter: 
          - "on"
          - "off"
        entity: binary_sensor.hall_ytterdorr_1067
        state_image:
          "on": /local/Las-lock.png
          "off": /local/Las-open.png
    # Specify a tab icon if you want the view tab to be an icon.
  - icon: mdi:food-fork-drink
    # Title of the view. Will be used as the tooltip for tab icon
    title: Köket
    cards:
        # Entities card will take a list of entities and show their state.
      - type: entities
        # Title of the entities card
        title: Köket
        # The entities here will be shown in the same order as specified.
        # Each entry is an entity ID or a map with extra options.
        entities:
          - switch.kok_kaffebryggaren_893
          -  light.kok_taket_1032
          - entity: light.kok_lampa_tkb_1071
            # Override the name to use
            name: Fönster lampa

        # The markdown card will render markdown text.
      - type: markdown
        title: Lovelace
        content: >
          Welcome to your **Lovelace UI**.
   # Specify a tab icon if you want the view tab to be an icon.
  - icon: mdi:home-assistant
    # Title of the view. Will be used as the tooltip for tab icon
    title: Third view
    cards:
        # Entities card will take a list of entities and show their state.
      - type: entities
        # Title of the entities card
        title: Ute
        # The entities here will be shown in the same order as specified.
        # Each entry is an entity ID or a map with extra options.
        entities:
          - light.spot1
          - light.spot2
          - light.spot3
          - light.spot4

1 Like

You can use apect ratio to set the height based on the width.

aspect_ratio:
16x9, 16:9, 1.78

Also you could resize the actual picture.

You might also use two Button Cards. One for the image and one for control in a vertical stack card. But you would have to like that look on your dashboard.
With the Button card you have a lot of control over your size and more.