Page 1 of 1

Convert any file type to .tiff while using highest quality settings.

Posted: 2017-11-28T14:15:22-07:00
by josephs
Hi all,

What would be a simple way to convert any image type, without knowing the type (jpg, png, etc..) to .tiff and maintaining the highest quality settings possible from the original file. I will know path of the single image to be converted, but not the image type.

Im using MS DOS with ImageMagick-6.9.3-Q16-HDRI. But I am not to concerned about specific format. I can usually figure that out if I know the right command structure.

Im assuming it will involve mogrify and -format. Not sure how to proceed.

I appreciate if some can lead me in right direction,

Joseph

Re: Convert any file type to .tiff while using highest quality settings.

Posted: 2017-11-28T15:26:00-07:00
by snibgo
For a single image:

Code: Select all

convert in.ext out.tiff
... where in.ext is a filename that exists.

Re: Convert any file type to .tiff while using highest quality settings.

Posted: 2017-11-28T15:54:32-07:00
by fmw42
Even if the filename has no .suffix, IM can usually figure it out from the header information.

Code: Select all

convert filename out.tiff

Re: Convert any file type to .tiff while using highest quality settings.

Posted: 2017-11-28T17:30:52-07:00
by josephs
Thanks for the help! Without knowing the .suffix, I was able to successfully use:

convert in.* out.tiff

Re: Convert any file type to .tiff while using highest quality settings.

Posted: 2017-11-28T17:42:38-07:00
by snibgo
josephs wrote:convert in.* out.tiff
This will take all the files in the current directory that match the pattern in.*, and make one file called out.tiff that contains multiple images. If your files have unique names before the dot, that won't be a problem.