Embed image with "width" parameter doesn't work

Hi,

I’m just starting with kirby and tried to embedd an image with a specified width into the text with
(image: myawesomepicture.jpg width: 120 height: 200)

i tried with own .svg and the .jpgs that were in the starterpack.

images are always displayed in full size.

thanks in advance
Knochi

You have to either modify your stylesheet or apply a class to your images and style them accordingly. In the starter kit, the image width is set to always be 100% of its container.

I have just tested this in 2.5.10, and the width attribute is added to the image.

@bvdputte Yes, but the width attribute is of no use if the image width is set to 100% in CSS.

1 Like