D
D
Dima2014-03-23 17:09:43
bash
Dima, 2014-03-23 17:09:43

How to resize photos through she'll?

Hello
There is a \images\ folder, there are a lot of photos with a guid name and .jpg format in the folder
Question - how to compress all photos so that the size of the photo decreases by at least % 30?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AndeyValerevich, 2014-03-24
@AndeyValerevich

Use the imagemagick utility.
And then read MAN.
We change the quality
We change the sizes
And many other goodies)
You can write a batch processing script!

D
Dima, 2014-03-25
@Justbox87

We go to the directory where the necessary photos are located and execute the command:

mkdir new; for f in *.jpg ; do convert -resize 840x460 "$f" "new/${f%.jpg}.jpg" ; done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question