Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i change image sizes? #190

Closed
SickHacks opened this issue Sep 21, 2024 · 4 comments
Closed

How can i change image sizes? #190

SickHacks opened this issue Sep 21, 2024 · 4 comments

Comments

@SickHacks
Copy link

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. 🌿

@L4Ph
Copy link
Contributor

L4Ph commented Sep 26, 2024

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

@SickHacks
Copy link
Author

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

@L4Ph
Copy link
Contributor

L4Ph commented Sep 26, 2024

@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.

@saicaca
Copy link
Owner

saicaca commented Sep 27, 2024

<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 saicaca closed this as completed Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants