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?".
srulop
Posts: 11 Joined: 2012-02-12T06:43:10-07:00
Authentication code: 8675308
Post
by srulop » 2013-10-28T08:17:39-07:00
Hello,
I've got raw
16 bits unsigned grayscale images with header. I can
successfully convert them to "regular" tiff using:
Code: Select all
convert -endian LSB -depth 16 -size "1024"x"1024"+"8192" gray:try_pic.edf -normalize -compress zip try.tif
But I've also got similar grayscale images in
32 bits floating point , and the following
doesn't work:
Code: Select all
convert -endian LSB -depth 32 -size "1024"x"1024"+"8192" gray:try_pic.edf -normalize -compress zip try.tif
After checking this
post , tried also this, with
no success:
Code: Select all
convert -endian LSB -depth 32 -define quantum:format=floating-point -size "1024"x"1024"+"8192" gray:try_pic.edf -normalize -compress zip try.tif
Can you please suggest something?
Thanks!
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2013-10-28T10:57:10-07:00
What Q level of IM are you using in your compile? Q16? Perhaps you need Q32 or Q32 HDRI.
What does
convert -version
return
srulop
Posts: 11 Joined: 2012-02-12T06:43:10-07:00
Authentication code: 8675308
Post
by srulop » 2013-10-29T00:51:15-07:00
It was Q16, now compiled with Q32, tried again all commands mentioned before - same results: tiff all transparent.
"convert -version" gives:
Version: ImageMagick 6.8.5-7 2013-10-29 Q32
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC HDRI OpenMP
Delegates: bzlib djvu mpeg fftw fontconfig freetype jng jp2 jpeg lcms lqr lzma openexr pango png ps tiff x xml zlib
Can sucessfuly open with ImageJ with the following options:
Image type: 32-bit real
Width: 1024 pixels
Height: 1024 pixels
Offset to first image: 8192 bytes
Number of images: 1
Gap between images: 0 bytes
Little-endian byte order
What could be wrong?
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
Post
by snibgo » 2013-10-29T01:36:36-07:00
srulop wrote: ... same results: tiff all transparent.
So IM has added an alpha channel? Weird. What happens if you add "-alpha off" before the output filename?
It might be worth putting the image somewhere like dropbox.com and pasting the URL here, so someone with Q32 HDRI can try. (I don't have Q32.)
srulop
Posts: 11 Joined: 2012-02-12T06:43:10-07:00
Authentication code: 8675308
Post
by srulop » 2013-11-19T02:16:22-07:00
Bumping.
Sorry, but still have no idea how to do it. There must be a way...