Export to jpg or convert pngs to jpg with another program?

Post questions on how to use or achieve an effect in Inkscape.
Vectorator
Posts: 96
Joined: Tue Oct 21, 2014 1:40 pm
Location: Australia

Export to jpg or convert pngs to jpg with another program?

Postby Vectorator » Fri Apr 10, 2015 5:40 pm

I want to use inkscape to make images for a website but I save them in separate subfolders and change the images often.

I can only export to png which is no good for the web, I can't use imagemagick to convert them all to jpg at once because they are saved in different subfolders.

I did try one inkscape save to jpg extension but it didn't work.

Does anyone have any ideas? Another batch image converting program perhaps? that works with subfolders, or a working export to jpg inkscape plugin?

I'm using Inkscape in windows atm.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Export to jpg or convert pngs to jpg with another progra

Postby ragstian » Fri Apr 10, 2015 6:36 pm

Hi.

No problem having Imagemagic recurse subdirectories, have a look here

One tip; make sure you have backup of your images before you have any scripts working on your files. (learned the "hard" way a long time ago :) )
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

Vectorator
Posts: 96
Joined: Tue Oct 21, 2014 1:40 pm
Location: Australia

Re: Export to jpg or convert pngs to jpg with another progra

Postby Vectorator » Fri Apr 10, 2015 6:53 pm

Thanks, how would I made this recursive?


mogrify -format jpg *.png

I just have a bunch of pngs in different subdirs and I want to convert them all to jpg.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Export to jpg or convert pngs to jpg with another progra

Postby ragstian » Fri Apr 10, 2015 7:14 pm

Hi.

Vectorator wrote:Thanks, how would I made this recursive?
mogrify -format jpg *.png


mogrify -format jpg /Users/Ragnar/My_Image_Directory/*/*.png
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

Vectorator
Posts: 96
Joined: Tue Oct 21, 2014 1:40 pm
Location: Australia

Re: Export to jpg or convert pngs to jpg with another progra

Postby Vectorator » Fri Apr 10, 2015 10:39 pm

Thanks

I'm trying to go to the directory with cd dir

Then typing

mogrify -format jpg /*/*.png

But I get 'invalid argument' errors. :(


Return to “Help with using Inkscape”