error while converting from jpg to png

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Lacika1981
Posts: 2
Joined: 2018-10-05T06:20:14-07:00
Authentication code: 1152

error while converting from jpg to png

Post by Lacika1981 »

Hi,

I converted 100 jpg image to png and some of the image looks same. It is an image sequence so this error ruins the whole sequence.
I used this command:

Code: Select all

convert *.jpg *.png
Here you can have a look on the error:
https://youtu.be/wjXyKFXQPSI

What can I do to have it error free?

Thank you
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: error while converting from jpg to png

Post by snibgo »

What version of IM, on what platform?

The command is bad. It reads all the jpg files, then tries to write files called *_0.png, *_1.png etc.

To convert many files from jpg to png, with IM v6:

Code: Select all

mogrify -format png *.jpg
snibgo's IM pages: im.snibgo.com
Lacika1981
Posts: 2
Joined: 2018-10-05T06:20:14-07:00
Authentication code: 1152

Re: error while converting from jpg to png

Post by Lacika1981 »

Thank you

The version is ImageMagick 6.8.9-9 Q16 x86_64

I will try again with the command you shared.
Post Reply