This commit is contained in:
Malin Freeborn 2023-09-18 23:44:39 +02:00
parent 6557ec6ebe
commit ff3a3d2556
Signed by: andonome
GPG Key ID: 52295D2377F4D70F

View File

@ -2,7 +2,6 @@
title: "imagemagick" title: "imagemagick"
tags: [ "Documentation", "Vision" ] tags: [ "Documentation", "Vision" ]
--- ---
[Source](https://lxlinux.com/imagemagick.html)
Convert jpg to png. Convert jpg to png.
@ -41,13 +40,13 @@ convert image.jpg -resize 25% output.jpg
# Trim images to border # Trim images to border
This is generally used for transparrent images. This is generally used for transparent images.
```bash ```bash
convert -trim image.png output.png convert -trim image.png output.png
``` ```
Make the white of an image transparrent. Make the white of an image transparent.
```bash ```bash
convert -transparent white -fuzz 10% input.png output.png convert -transparent white -fuzz 10% input.png output.png
@ -101,7 +100,7 @@ See your installed fonts:
convert -list font convert -list font
``` ```
Make na image showing day of the week: Make an image showing day of the week:
```bash ```bash
convert -fill blue -font Sauce-Code-Pro-Semibold-Nerd-Font-Complete-Mono -gravity center -pointsize 79 label:$(date +%A) day.png convert -fill blue -font Sauce-Code-Pro-Semibold-Nerd-Font-Complete-Mono -gravity center -pointsize 79 label:$(date +%A) day.png