How to bulk convert PNG to JPG

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

cutefish.ae
Posts: 7
Joined: Thu Jan 26, 2023 2:18 pm

How to bulk convert PNG to JPG

Post by cutefish.ae »

Hi everyone, I'm a beginer developer who wants to make a tool to convert PNG to JPG and JPG to PNG formats, the reason I want to make these tools is because I want to make it easier for after effects users under the CC2019 version, who get the following error like in bellow
im using windows batch

Can someone teach me, and sorry for bad english 😢
You do not have the required permissions to view the files attached to this post.
Last edited by cutefish.ae on Thu Jan 26, 2023 2:37 pm, edited 2 times in total.
. HI GUYS, ITS ME CUTEFISH
. You guys can call me as Chelsea
Im an Editor, but i want to be developer
cday
XnThusiast
Posts: 4132
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to bulk convert PNG to JPG

Post by cday »

You have used Tools > Batch convert... already, or not?
cutefish.ae
Posts: 7
Joined: Thu Jan 26, 2023 2:18 pm

Re: How to bulk convert PNG to JPG

Post by cutefish.ae »

I forgot to say, soo this error is happening if you try to import photo that have an bad footer
i already search how to fix it but it takes a lot of time

according to the method that I have seen on YouTube, photos that cannot be imported into after effects must be edited in mspaint, then you can import it to after effect, but thats takes a lot time for fixing more than one photo
. HI GUYS, ITS ME CUTEFISH
. You guys can call me as Chelsea
Im an Editor, but i want to be developer
cutefish.ae
Posts: 7
Joined: Thu Jan 26, 2023 2:18 pm

Re: How to bulk convert PNG to JPG

Post by cutefish.ae »

cday wrote: Thu Jan 26, 2023 2:41 pm You have used Tools > Batch convert... already, or not?
Not, because i want to convert more than one file :')
. HI GUYS, ITS ME CUTEFISH
. You guys can call me as Chelsea
Im an Editor, but i want to be developer
cday
XnThusiast
Posts: 4132
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to bulk convert PNG to JPG

Post by cday »

So you have many images that After Effects CC 2019 can not open?
cutefish.ae wrote: Thu Jan 26, 2023 2:45 pm I forgot to say, that this error is happening if you try to import photos that have an bad footer
i already search how to fix it but it takes a lot of time

according to the method that I have seen on YouTube, photos that cannot be imported into after effects must be edited in mspaint, then you can import it to after effect, but that takes a lot time for fixing more than one photo.
Are you able to upload an example image that Pierre, the developer of xnview software, can examine?

And are you able to summarise the method that can be used in MS Paint to correct the file defect, or identify the defect?
cutefish.ae
Posts: 7
Joined: Thu Jan 26, 2023 2:18 pm

Re: How to bulk convert PNG to JPG

Post by cutefish.ae »

cday wrote: Thu Jan 26, 2023 3:03 pm So you have many images that After Effects CC 2019 can not open?
cutefish.ae wrote: Thu Jan 26, 2023 2:45 pm I forgot to say, that this error is happening if you try to import photos that have an bad footer
i already search how to fix it but it takes a lot of time

according to the method that I have seen on YouTube, photos that cannot be imported into after effects must be edited in mspaint, then you can import it to after effect, but that takes a lot time for fixing more than one photo.
Are you able to upload an example image that Pierre, the developer of xnview software, can examine?

And are you able to summarise the method that can be used in MS Paint to correct the file defect, or identify the defect?
No i cant find it how 😪
. HI GUYS, ITS ME CUTEFISH
. You guys can call me as Chelsea
Im an Editor, but i want to be developer
cday
XnThusiast
Posts: 4132
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to bulk convert PNG to JPG

Post by cday »

cutefish.ae wrote: Thu Jan 26, 2023 3:06 pm
cday wrote: Thu Jan 26, 2023 3:03 pm Are you able to upload an example image that Pierre, the developer of xnview software, can examine?
A download link to where you posted your image above aftereffecterror.png?
cday wrote: Thu Jan 26, 2023 3:03 pmAnd are you able to summarise the method that can be used in MS Paint to correct the file defect, or identify the defect?
No i cant find it how
A link to that webpage?
cutefish.ae
Posts: 7
Joined: Thu Jan 26, 2023 2:18 pm

Re: How to bulk convert PNG to JPG

Post by cutefish.ae »

cday wrote: Thu Jan 26, 2023 3:21 pm
cutefish.ae wrote: Thu Jan 26, 2023 3:06 pm
cday wrote: Thu Jan 26, 2023 3:03 pm Are you able to upload an example image that Pierre, the developer of xnview software, can examine?
A download link to where you posted your image above aftereffecterror.png?
cday wrote: Thu Jan 26, 2023 3:03 pmAnd are you able to summarise the method that can be used in MS Paint to correct the file defect, or identify the defect?
No i cant find it how
A link to that webpage?
Sorry for interrupting, I already understand how to bulk convert
So the first time i tried

Code: Select all

"tools\nconvert" -out png input\ *.jpg
but it doesnt work

soo i try

Code: Select all

"tools\nconvert" -out png "input\*jpg" *.jpg
and it workssss. i already try this menthod in imagemagick but it doesn work, so i try to search alternative for imagemagick and found this software
it help me a lot, and more easier for beginer :D :D
. HI GUYS, ITS ME CUTEFISH
. You guys can call me as Chelsea
Im an Editor, but i want to be developer
cday
XnThusiast
Posts: 4132
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to bulk convert PNG to JPG

Post by cday »

You are using NConvert [now?] but you posted in XnView MP...
cutefish.ae wrote: Thu Jan 26, 2023 3:28 pm Sorry for interrupting, I already understand how to bulk convert
So the first time i tried

Code: Select all

"tools\nconvert" -out png input\ *.jpg
but it doesn't work
You have a space in input\ *.jpg which is probably the reason...
So I try:

Code: Select all

"tools\nconvert" -out png "input\*jpg" *.jpg
and it workssss.
I think the following code should be sufficient:

Code: Select all

"tools\nconvert" -out png "input\*jpg"
cutefish.ae wrote: Thu Jan 26, 2023 3:28 pmI already try this method in imagemagick but it doesn't work, so i try to search alternative for imagemagick and found this software
it help me a lot, and more easier for beginner :D :D
I think that NConvert is certainly easier to understand... :D