I want to convert a png-image to a jpg image in imagemagick.
Usually I would use this command:
convert image.png image.jpg
This works since imagemagick determins the output format by looking at the file extension '.jpg'. Is there any commandline option for imagemagick to override this behaviour?
I would like to use something like this
convert image.png -outputformat jpg image.data
It is important for my application, that no *.jpg file is ever created in the process, so I can't "mv" it afterwards either!
I just found the solution:
convert image.png jpg:image.data
The jpg:
is not written!
You are looking for the -format option: http://www.imagemagick.org/script/command-line-options.php#format
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With