bachphuc / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

How to convert multiple images in subfolders too? #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
 How to convert multiple images inside subfolders into webp format, I have around 20K images.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Latest version and Windows 7 Professional

Please provide any additional information below.

Original issue reported on code.google.com by bsak...@gmail.com on 28 Dec 2011 at 10:08

GoogleCodeExporter commented 9 years ago
If all the encodes share the same parameters a simple for loop should work:

for /R <directory> %I in (*.jpeg) do ( cwebp.exe %I <cwebp_options> -o 
%~fnI.webp )

%I would be %%I in a batch file.

For a bash equivalent see:
https://groups.google.com/a/webmproject.org/group/webp-discuss/browse_thread/thr
ead/ee7c2e1844c6575a/80345a2098a4c393

Original comment by jz...@google.com on 5 Jan 2012 at 12:03