Home > Mobile >  Convert entire folder to grayscale using image magick?
Convert entire folder to grayscale using image magick?

Time:12-23

Another person asked this question but the answers are not adjusted to the average civilian comprehension.

I am trying to convert an entire folder to grayscale, using image magick.

I want to convert the entire folder of JPG and PNG images that are in color to grayscale.

Things that I know: I know to open notepad, copy-paste text aka code, save it as a bat, save it in a specific folder, and click run.

Anything beyond what is listed is not within my skills.

I see here on this website a million questions that I also have but answers are not end-user friendly. For example, no one mentioned that we can't have folder names with spaces in the Run command line window.

Codes are not full but in fragments throughout messages and there is no conclusion at the end when the problem is solved that gives step-by-step procedure on how to solve the problem.

Can anyone help with the full code I need to have in notepad for the batch procedure to work?

Thank you.

CodePudding user response:

No need for Notepad. Start a Command Prompt and change directory to the one containing your images. So if your images are in HOME/Images, type:

cd Images

then press Enter/Return. Then type:

magick mogrify -colorspace gray *.png *.jpg

then press Enter/Return and you're finished.

  • Related