S
S
Sergey Goryachev2016-05-27 15:15:43
linux
Sergey Goryachev, 2016-05-27 15:15:43

How to massively resize images?

Good afternoon.
I need to massively increase the size of pictures in a folder. But the pictures are in different subfolders.
The only thing I know about them is that there is 970 in the title, this figure is added to the necessary pictures.
I need to somehow pull out all the pictures from the folder and subfolders, the title of which contains 970 and increase it to a minimum size of 400 pixels on the smaller side.
Yes, and you need to write in the same place, under the same name.
For example, there is a picture 37.970.jpg, 250x200 in size.
It should make 37.970.jpg, 500x400 in size.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2016-05-27
@webirus

Something like this, using www.imagemagick.org (installed from packages)

find /myfolder -name "*970.jpg" -exec  mogrify -resize 256x256 {} \;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question