ImageMagick newbie - two questions

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
ursatz
Posts: 2
Joined: 2018-03-20T19:19:51-07:00
Authentication code: 1152

ImageMagick newbie - two questions

Post by ursatz »

Hello,

I have followed the instructions to build ImageMagick from source on a Windows 7 box. 32-bit is fine, but I don't see a 64-bit configuration. When I naively try to create a 64-bit configuration, I get an error in CORE_ffi (among other projects) stemming from the build of win32.asm - it makes a 32-bit obj, which then causes a link error. Is a 64-bit build possible, and if so, how to do it?

Second question - what I'm looking for from ImageMagick is an interface to tiff images that allows me to read 16bpp images without losing any pixel data, and to retrieve the data in something like scan-line form (regardless of how it's stored in the image). This would be possible with libtiff, but it looks like it would be extremely fussy and error-prone. I'm hoping for a higher level interface to the pixels, without conversion to 8bpp. Is this feasible with ImageMagick, and if so, where would I look for example code?

Thanks much for any assistance!

Bill
ursatz
Posts: 2
Joined: 2018-03-20T19:19:51-07:00
Authentication code: 1152

Re: ImageMagick newbie - two questions

Post by ursatz »

Silly me - already answered my question about 64-bit - just run the configure program with the 64-bit option checked. So that's one down.

Still very much interested in anyone's input on the 16bpp tiff question.

Thanks,
Bill
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick newbie - two questions

Post by fmw42 »

Imagemagick should be able to read 16-bits per pixel per channel images (48-bits for RGB) if you use the Q16 install, which is the default. Whatever format it is when read, it would likely be stored in scan-line format. Imagemagick uses libtif to read and write TIFF images. So if libtif is limited, then so would Imagemagick.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: ImageMagick newbie - two questions

Post by snibgo »

Q64 means 64 bits per channel per pixel. The last time I built Q64, it was automatically HDRI (floating point). Q64 integer wasn't available, but that might have changed more recently.

I'm not sure what you want for the second question. IM can read tiff files. You can then access the pixel data from the command line, or C or C++ programs or many other interfaces.
snibgo's IM pages: im.snibgo.com
Post Reply