From 1a9546ff08bee7c82d7ab319db307c490540e2b1 Mon Sep 17 00:00:00 2001 From: Lerold Date: Thu, 30 Jan 2025 13:36:49 +0100 Subject: [PATCH] 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"" --- Create-a-custom-splash-screen.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Create-a-custom-splash-screen.md b/Create-a-custom-splash-screen.md index 82f78eb..0707f93 100644 --- a/Create-a-custom-splash-screen.md +++ b/Create-a-custom-splash-screen.md @@ -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