0

I have over 500 (50MB) .tif files and I want to convert them to .png.

I have tried nconvert and find it working, but there is no multithreading, is there a simple way of doing it in a bash or batch script?

Preferably Windows but Cygwin will work to

2
  • you can write a powershell script, but multithreading is a non-trivial task. get-blog.com/?p=22 Apr 17, 2014 at 3:00
  • in bash it is very easy to start a process on another thread, but much harder to track the state of the threads. if you are fine with that, you can just call nconvert and put an '&' on the end of the command. that will cause it to run in the background. the only issue is you don't get easy signals that its completed its task, so you can;t effectively limit the number of threads running at any one time. you might have to process them in blocks of 25 or somthing to prevent starting hundreds of threads that all fight with eachother for execution time. Apr 17, 2014 at 3:12

1 Answer 1

1

You could use gnu-parallel which works under Cygwin. Here is an exhaustive list of examples on how to use it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .