Conversão de fotos no Linux

Published: 2018-02-07, Updated: 2020-10-09

Lendo texto de gif

sudo apt install -y gocr
giftopnm ~/Pictures/39.gif | gocr -

Lendo texto de jpeg

djpeg -pnm -gray text.jpg | gocr -

Converter webp para PNG

for i in *.webp; do ffmpeg -i  $i "${i%.webp}.png" ; done

Converter webp para JPG

for i in *.webp; do ffmpeg -i  $i "${i%.webp}.jpg" ; done

Redimensionar imagens

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

Rotacionar imagens

for file in *.png; do convert $file -rotate 90 rotated-$file; done
for file in *.png; do convert $file -resize 200 converted/$file; done

linux commands, image commands, webp para jpg, webp para jpeg, webp para png, linux image commands, image conversion


Como escolher o melhor mouse para a sua mão - Logitech G Pro vs G403 vs G502 vs Deathader Elite Configurando o openbox do zero

Comments