convert input.jpg -resize 1920x1080 -background black -compose Copy -gravity center -extent 1920x1080 output.jpg
Fazendo com várias
for f in *.jpg; do \
convert $f -resize 1920x1080 -background black -compose Copy -gravity center -extent 1920x1080 $f; \
done
sudo apt install -y gocr
giftopnm ~/Pictures/39.gif | gocr -
djpeg -pnm -gray text.jpg | gocr -
for i in *.webp; do ffmpeg -i $i "${i%.webp}.png" ; done
for i in *.webp; do ffmpeg -i $i "${i%.webp}.jpg" ; done
sudo apt-get install imagemagick
convert example.png -resize 200 example.png
convert example.png -resize 200x100 example.png
convert example.png -resize 200x100! example.png
$ for file in *.jpg; do convert $file -resize 720 "${file%.jpg}-resized.jpg"; done
for file in *.png; do convert $file -rotate 90 rotated-$file; done
for file in *.png; do convert $file -resize 200 converted/$file; done
for file in *.png; do convert $file -auto-orient $file; done
convert image.jpg png:- | xclip -selection clipboard -t image/png
linux commands, image commands, webp para jpg, webp para jpeg, webp para png, linux image commands, image conversion, imagem commands, image bookmarks