Changed the command from "convert" to "magick" as per the "WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert""

Lerold
2025-01-30 13:36:49 +01:00
parent 5fd3e3e247
commit 1a9546ff08

@@ -22,21 +22,21 @@ Use your favorite picture editor to adjust size, or use "convert" from [ImageMag
### To just scale the picture down, use:
```
$ convert source.jpg -resize 240x304 destination.bmp
$ magick source.jpg -resize 240x304 destination.bmp
```
### If you see and don't want a frame left and right, you can adjust the convert with:
```
$ convert source.jpg -resize 240x304 -gravity center -extent 240x304 destination.bmp
$ magick source.jpg -resize 240x304 -gravity center -extent 240x304 destination.bmp
```
### To choose the filling color when resizing/extending the image, add '-background color' after 'source.jpg':
```
$ convert source.jpg -background "#000000" -resize 240x304 -gravity center -extent 240x304 destination.bmp
$ magick source.jpg -background "#000000" -resize 240x304 -gravity center -extent 240x304 destination.bmp
```
or
```
$ convert source.jpg -background black -resize 240x304 -gravity center -extent 240x304 destination.bmp
$ magick source.jpg -background black -resize 240x304 -gravity center -extent 240x304 destination.bmp
```
The list of predefined colors can be obtained with ```convert -list color```
@@ -47,6 +47,8 @@ destination.bmp BMP3 240x300 240x304+0+0 8-bit sRGB 216054B 0.000u 0:00.000
```
If it is saying '8-bit', you're good. It's the number of bits by color components. For sRGB, 8+8+8 = 24-bit
_If you have save the image via a different program and it looks right when using the identift command above, try to convert anyway with magick._
## Limitations
- image have to be a 24 bits bitmap
- width have to be exactly 240 pixels wide