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
Convert any file type to .tiff while using highest quality settings.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert any file type to .tiff while using highest quality settings.
For a single image:
... where in.ext is a filename that exists.
Code: Select all
convert in.ext out.tiff
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Convert any file type to .tiff while using highest quality settings.
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.
Thanks for the help! Without knowing the .suffix, I was able to successfully use:
convert in.* out.tiff
convert in.* out.tiff
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert any file type to .tiff while using highest quality settings.
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.josephs wrote:convert in.* out.tiff
snibgo's IM pages: im.snibgo.com