Re: How to use 'convert' to change several from png to jpg?
On 08/10/2010 08:52 AM, Alex Dean wrote: The imagemagick suite of software comes with a nice utility called mogrify in a nut shell it does what convert does, but it does it to the files directly. The best part is, that is takes all the same arguments as convert. FYI convert is also part of imagemagick. Oops, mean to say "The imagemagick suite of software also comes with a nice utility called mogrify" Brian Cluff --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: How to use 'convert' to change several from png to jpg?
On Aug 10, 2010, at 1:46 AM, Brian Cluff wrote: The imagemagick suite of software comes with a nice utility called mogrify in a nut shell it does what convert does, but it does it to the files directly. The best part is, that is takes all the same arguments as convert. FYI convert is also part of imagemagick. --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: How to use 'convert' to change several from png to jpg?
The imagemagick suite of software comes with a nice utility called mogrify in a nut shell it does what convert does, but it does it to the files directly. The best part is, that is takes all the same arguments as convert. Try simply doing: mogrify -type jpg -resize 900 -quality 90% *.png and all your PNGs will become jpgs You could also do it the brute force method with convert: for I in *.png; do convert -resize 900 -quality 90% $I ${I%.*}.png rm $I done Brian Cluff On 08/09/2010 10:42 PM, j...@actionline.com wrote: I use the following script to convert a batch of images to a uqiform width of 900 pixels. It works fine ... but how do I need to modify it to do the same task but also convert all the originals that are .png files to .jpg? mkdir 900 find -type f -maxdepth 1 -print0 | xargs -r -0 -ixxx convert -resize 900 -quality 90% xxx ./900/xxx --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: How to use 'convert' to change several from png to jpg?
On 08/09/2010 10:42 PM, j...@actionline.com wrote: I use the following script to convert a batch of images to a uniform width of 900 pixels. It works fine ... but how do I need to modify it to do the same task but also convert all the originals that are .png files to .jpg? mkdir 900 find -type f -maxdepth 1 -print0 | xargs -r -0 -ixxx convert -resize 900 -quality 90% xxx ./900/xxx find -type f -maxdepth 1 -print0 | xargs -r -0 -ixxx convert -resize 900 -quality 90% xxx ./900/$(basename xxx .png).jpg convert works by file extensions. I haven't tested this, so experiment with it before destroying all your images. :P --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss