added image and imagemagick command

This commit is contained in:
2025-01-27 16:25:50 +01:00
parent 76a28abdc8
commit bcf8dd40ff
3 changed files with 8 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -4,6 +4,12 @@
```bash
magick source.jpg -strip -interlace Plane -gaussian-blur 0.05 -quality 85% result.jpg
```
* Also resizes the image to 800 width
```bash
magick customising_mkdocs.jpg -strip -interlace Plane -gaussian-blur 0.05 -quality 85% -resize 800x customising_mkdocs.jpg
```
* [command source](https://stackoverflow.com/questions/7261855/recommendation-for-compressing-jpg-files-with-imagemagick)
* [image resizing](https://legacy.imagemagick.org/Usage/resize/)

View File

@@ -2,8 +2,7 @@
I wanna customise my mkdocs theme. So I can have a dark mode. Because it currently looks like this.
![alt text](image.png)
![alt text](../assets/customising_mkdocs.jpg)
## Issues
@@ -30,7 +29,7 @@ extra_css: [extra.css]
### Attempt 2
After I read the documentation thoroughly i found out that the css file needs to be relative to the `docs` folder and not the `mkdocs.yml`. After that it showed the css and I could finaly customise the theme.
![alt text](image-1.png)
## Customising Material theme
I decided to switch to material theme because its easier to configure and you can add all sorts of modules onto it making it super customisable.