sg

Çarşamba, Aralık 14, 2005

[lug] Batch file issue: convert, resize, and rename all images in a directory


How do I loop this command

convert test.nuv.png -resize 64x64 test.jpg

through every file in a given directory? For simplicity, i can store
the batch file in the directory I want it to execute in.

If I execute "convert *.nuv.png -resize 64x64 *.jpg" from command line,
then the files that Image Magick creates are all named like "*-0.jpg",
"*-1.jpg", ect... So I guess i need a loop that will go through every
file in the directory rather than using a wildcard character. I'm
guessing the problem is that the terminal doesn't recognize both of the
'*' as being linked.

Thanks in advance, i've tried searching but I can't find any good
description of how to loop through file names from command line.

Cheers,
-Rob

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık