fuwari icon indicating copy to clipboard operation
fuwari copied to clipboard

How can i change image sizes?

Open SickHacks opened this issue 1 year ago • 4 comments

Hello, I really like this template. I have set up and configured my page, but I still can't modify the size of the images I upload to my posts. I've tried several ways, but haven't been successful. How do you usually handle this? Thanks in advance. 🌿

SickHacks avatar Sep 21 '24 22:09 SickHacks

What does resizing an image entail? px?, aspect ratio?

L4Ph avatar Sep 26 '24 14:09 L4Ph

Oh sorry, by image size i mean px, widht lenght.

SickHacks avatar Sep 26 '24 14:09 SickHacks

@SickHacks The markdown syntax ![image](expample.jpg) does not allow specifying image height or width. To do so, you must use the <img src="example.jpg" alt="" width="" height="" />. however, it's possible that Fuwari is overriding those values.

L4Ph avatar Sep 26 '24 15:09 L4Ph

<img width="" /> works, but it can only be used for images in the /public and remote images.

For local images, you might need to use the <Image> components, in MDX files. You will need to add MDX integration manually as it is not included by default.

https://docs.astro.build/en/guides/images/#images-in-mdx-files https://docs.astro.build/en/guides/integrations-guide/mdx

saicaca avatar Sep 27 '24 05:09 saicaca