Page 1 of 1

convert jpg to tif

Posted: 2016-02-03T04:33:05-07:00
by lenule
Hi,

please, do you know how to convert folder with jpg images to folder with tif images? I know how to convert one file to one file. By Google searching i found this:

Code: Select all

 convert -compress none *.jpg Picts.tiff 
[/b] but it convert all jpeg images to one tif image.

And this

Code: Select all

convert -format tiff -compress none *.jpg  
[/b] creates jpegs

There is also option mogrify, but the result tif is slightly different from one converted tif with option convert. They differ in version of tiff (one has 5.0, one has 6.0), size and so on.

So i wonder if there is a way how to convert folder of images to tiff using option convert.


(i use IM 6.9.3 on Windows)

Re: convert jpg to tif

Posted: 2016-02-03T05:15:51-07:00
by lenule
And also one discussion (http://superuser.com/questions/408603/h ... essed-tiff) says, that with mogrify option, even adding -compress none, jpeg compression was used. I checked with identify and it really says compresion: JPEG and that is not what i want. I want uncompressed tif.

Re: convert jpg to tif

Posted: 2016-02-03T05:18:40-07:00
by snibgo
You can use "+adjoin" so (n) input jpegs will be written to (n) tiffs, instead of to a single tiff. See http://www.imagemagick.org/script/comma ... php#adjoin

Or you can write a shell script to call "convert" once per jpeg.

Re: convert jpg to tif

Posted: 2016-02-03T05:26:55-07:00
by lenule
Thank you very much! "+adjoin" works for me!!