holdens
holdens

Reputation: 1

Issue with Basic Image Magick Convert and Mogrify Functions

I am attempting to convert all .jpg images in a folder to .png format using Image Magick. This functionality is described as a feature of Image Magick here using the mogrify tool. Here's what I type into the command line, followed by the error:

C:\Users\holde\Desktop\Photos and Videos>magick mogrify -format jpg *.png
mogrify: unable to open image '*.png': Invalid argument @ error/blob.c/OpenBlob/3527.

Any help is appreciated! If it's useful, I installed the Windows Binary release from this page, and installed via the ImageMagick-6.9.12-32-Q16-HDRI-x64-dll.exe executable on Windows 10.

Edit: Fixed, I had the syntax backwards. I should have used mogrify -format png *.jpg rather than mogrify -format jpg *.png With this change, the operation now completes. Thanks for the assistance!

Upvotes: 0

Views: 1520

Answers (1)

Ax_
Ax_

Reputation: 997

Convert all from png to jpg

mogrify -format jpg *.png

Upvotes: 0

Related Questions