convert jpg to tif

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
lenule
Posts: 3
Joined: 2016-02-02T09:24:03-07:00
Authentication code: 1151

convert jpg to tif

Post 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)
lenule
Posts: 3
Joined: 2016-02-02T09:24:03-07:00
Authentication code: 1151

Re: convert jpg to tif

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert jpg to tif

Post 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.
snibgo's IM pages: im.snibgo.com
lenule
Posts: 3
Joined: 2016-02-02T09:24:03-07:00
Authentication code: 1151

Re: convert jpg to tif

Post by lenule »

Thank you very much! "+adjoin" works for me!!
Post Reply