32Bit bmp output with composite.exe

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
Mr_J
Posts: 4
Joined: 2012-01-30T05:51:05-07:00
Authentication code: 8675308

32Bit bmp output with composite.exe

Post by Mr_J »

Hi,
i encountered a problem using the composite.exe to displace an image in command line mode.
I used the following command:

Code: Select all

composite.exe ImageDistort2.bmp bb05.bmp -displace 2x2 bb05_1.bmp
Both input images were 32Bit bitmaps, but the output was only a 24Bit bitmap instead of a 32Bit. My question is now if its possible to get a 32Bit output image and if its possible how is this archieved?

regards,
Mr. J
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 32Bit bmp output with composite.exe

Post by fmw42 »

Is your 32-bit images 8bits/channel x 4 channels (rgba) or 32-bits for a single channel grayscale. If the latter, then you need to compile IM in HDRI mode. see http://www.imagemagick.org/script/high- ... -range.php. If the former then try adding -channel rgba -alpha on after reading the images.
Mr_J
Posts: 4
Joined: 2012-01-30T05:51:05-07:00
Authentication code: 8675308

Re: 32Bit bmp output with composite.exe

Post by Mr_J »

The images are 4x8 Bit rgba. How do i add the commands to my existing command line? I tried to use your commands also but i didnt seem to work.

regards,
Mr. J
Mr_J
Posts: 4
Joined: 2012-01-30T05:51:05-07:00
Authentication code: 8675308

Re: 32Bit bmp output with composite.exe

Post by Mr_J »

Found the problem, now it works, thanks for the help.

regards,
Mr. J
Post Reply