E
E
Evgeniy Golovin2014-11-20 15:03:35
JPEG
Evgeniy Golovin, 2014-11-20 15:03:35

jpegoptim big list optimization how?

How to optimize a large JPG list with jpegoptim. The picture is about ~77,000.
With the command jpegoptim *.jpg -m85 --strip-all
Writes /sbin/find: Argument list too long.
Any ideas?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeniy Golovin, 2014-11-20
@JonGol

Here is the solution, you never know who will come in handy with
find . -name '*.jpg' | xargs jpegoptim -m85 --strip-all

S
Sergey, 2014-11-20
Protko @Fesor

for f in *.jpg; do jpegoptim "$f" -m85 --strip-all; done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question