Score:1

convert bunch of images to black and white with overwritting existing images

in flag

I need to convert a bunch of images (about 1000) to black and white I used the following code:

convert *.bmp -monochrome ./*.bmp

but it produces new images. for example, I have file1.bmp, file2.bmp and etc. and it converts them to file1-1.bmp file2-2.bmp and so on. I need the exact same name for images so I prefer to overwrite the existing one. any suggestion. Thanks!

hr flag
You probably want to use the [mogrify](https://imagemagick.org/script/mogrify.php) tool - *"This tool is similar to magick convert except that the original image file is overwritten (unless you change the file suffix with the -format option) with any changes you request."*
cn flag
duplicate of https://stackoverflow.com/q/69607886/7552
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.