On Mon, 9 Nov 2009, Marrocco, Sam wrote:
> I have a .raw file from that I am able to read into photoshop as raw with settings of width,
> height, 3 channels, non-interleaved, 16 bit & pc byte ordering.
> I'd like to be able to read the same file(s) into graphicsmagick, but can't seem to determine a
> proper loader/combination of arguments to use.
> I tried reading the file as a .rgb and could write out a file, but could never get the file to
> actually contain an image.
> I believe the windows compiled graphicsmagick that I have contains support for dcraw but I'm
> uncertain if that is the type of file I have? Can anyone make some suggestions?
It seems that there may be some confusion. There are truely "raw"
files which are essentially headerless images where if one knows the
actual storage format, a useful image can be returned. There are also
so-called "raw" files from digital cameras which do include a header
(often some variant of TIFF) but the data is the original data from
the camera sensor. This later variant is what 'dcraw' supports.
GraphicsMagick does support 'dcraw' but we don't supply it in the
Windows installer. You can add a 'dcraw.exe' executable after the
>From your description, it sounds like may have a "raw" image such as
might have been generated by a computer program. This sort of command
could be used to read such a file:
gm convert -size 640x480 -depth 16 -endian -endian lsb -interlace none rgb:myfile.raw myfile.jpg
Of course if any parameter is incorrect, the result will be garbage.
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/