TIFF images got fom Image Pro Plus and convertion

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
mauriciorubik
Posts: 1
Joined: 2012-09-01T20:14:00-07:00
Authentication code: 67789

TIFF images got fom Image Pro Plus and convertion

Post by mauriciorubik »

Original image got from Image Pro Plus: http://uploads.boxify.me/89236/prueba_1.tif?1346433567
I tried to open it in GIMP 2.8 but didn't work. Photoshop does open it.

If I use IM convert with -verbose got:

Image: prueba_1.tif
Format: TIFF (Tagged Image File Format)
Class: DirectClass
Geometry: 1392x1040+0+0
Resolution: 300x300
Print size: 4.64x3.46667
Units: PixelsPerInch
Type: TrueColor
Base type: TrueColor
Endianess: MSB
Colorspace: RGB
Depth: 12-bit..........

So, if the original image is in 12-bit depth and that's the reason it doesn't open in any image editor and I want to resize it for example to 200% which commands I have to use for the best quality possible (I don't matter the time spent) the images I will use are taken from a microscope (human and animal cells)

depth 8 or 16?

Lanczos or Mitchell?

force -quality 100?

Should I convert it from TIFF to JPG or PNG? from RGB to CMY?
rich2005
Posts: 32
Joined: 2012-04-09T11:07:36-07:00
Authentication code: 8675308

Re: TIFF images got fom Image Pro Plus and convertion

Post by rich2005 »

bump

Can someone help this guy out, he originally posted in a Gimp mailing list. Of course Gimp will not open a 12 bit image so a IM '-depth 8' command works..but

Then the scaling question comes up and I am an engineer, so photo-micrographs of cells are a bit out of my league. AFAIK in Gimp using sinc(lanczos3) might produce halos. So what to use?

Any help I am sure will be gratefully received.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: TIFF images got fom Image Pro Plus and convertion

Post by fmw42 »

This works for me on IM 6.7.9.2 Q16 Mac OSX Snow Leopard.

convert prueba_1.tif -auto-level -depth 16 prueba_1_new.tif

If you want to resize for sharpness, but can accept jaggies and other artifacts then use -filter catrom -resize or -filter lagrange -resize. If you want to avoid jaggies and artifacts and can accept less sharpness when enlarging, then see viewtopic.php?f=1&t=21703&start=15#p89213
Post Reply