Linux - fastest image size reduction (change resolution and photo quality)

Linux - fastest image size reduction (change resolution and photo quality)

Hi, I'm looking for the fastest way to reduce the image size on Ubuntu. I don't want to open GIMP or something like that every time I want to resize an image and click on all the options, it's tedious and unnecessary.

Thank you

REPLY


Hello,

I would see the fastest image reduction on Linux using ImageMagick and convert:

convert original.jpg -resize 640 -quality 80 resized.jpg
- This converts the original.jpg file to 640px with 80% quality to resized.jpg

To reuse this operation, I would define a function and set it to a bashrc file:
vim .bashrc

res() { convert $1 -resize 640 -quality 80 resized.jpg;}




Then just type res my-file.jpg in the terminal and you're done ....


PS: Bulk resize all the images in the directory here:
https://cloud.up4.cz/poradna/387-linux-jak-hromadne-zmenit-velikost-vsech-obrazku-fotek-v-adresari

Související obsah

linux

bash

terminal

imagemagick

images

Komentáře

Vaše reakce na Linux - nejrychlejší zmenšení velikosti obrázku (změna rozlišení a kvality fotografie)

Reference

Podívejte se na naše reference

Prohlédnout

Aplikace

Podívejte se na naše aplikace

Prohlédnout

Co umíme?

Podívejte se co umíme

Prohlédnout

Co umíme?

Vytváříme sofistikované aplikace pro náročné

Od webových aplikací přes android až po převodové můstky či složité informační systémy.

Podívejte se k nám

Máte ještě čas? Podívejte se na další rubriky

Tento web používá soubory cookie. Dalším procházením tohoto webu vyjadřujete souhlas s jejich používáním.. Více informací zde.