[comp.graphics] DPaint II vs HAM vs ILBM

dnwiebe@CIS.OHIO-STATE.EDU (Dan N Wiebe) (12/01/89)

	I've got some .GIF images I'm interested in converting into a format
compatible with DeluxePaint II (MS-DOS) for a friend so that she can edit them.
Saved DPaint II files have an extension of .LBM; therefore, I thought perhaps
their format was ILBM.  I used PBMPLUS to convert the 256-color .GIFs to
ILBM format (no problems, except that ppmtoilbm told me it was creating a HAM
file because my picture had more than 32 colors) and shipped them over to my
friend.  When she loaded them into DeluxePaint II, we could see that the image
was correct, but the palette was all wrong (it was the default palette).
Apparently either the palette of the original .GIF file didn't get stored in
the .LBM file, or DPaint II couldn't read it from the .LBM file.
	Has anyone else had this sort of problem?  Any ideas for a fix?  Should
I go about it an entirely different way?
	Thanks for any help...

Dan Wiebe
dnw@rsch.oclc.org (preferred)
dnwiebe@cis.ohio-state.edu (acceptable)

tony@hp-sdd.hp.com (Tony Parkhurst) (12/02/89)

In article <8912011549.AA03210@procyon.cis.ohio-state.edu> dnwiebe@CIS.OHIO-STATE.EDU (Dan N Wiebe) writes:
>	I've got some .GIF images I'm interested in converting into a format
>compatible with DeluxePaint II (MS-DOS) for a friend so that she can edit them.
>Saved DPaint II files have an extension of .LBM; therefore, I thought perhaps
>their format was ILBM.  I used PBMPLUS to convert the 256-color .GIFs to
>ILBM format (no problems, except that ppmtoilbm told me it was creating a HAM
>file because my picture had more than 32 colors) and shipped them over to my


Right concept, but apparently PBMPLUS does not handle 8 bit ILBM images.
DeluxePaintII on MeSsyDOS uses both ILBM files, or for 8 bit (256 color)
files, the files are PBM (not as in "PBMPLUS").  Both are a form of IFF
files, but ILBM is stored by plane, while PBM is stored by pixel.  The
problem is that PBMPLUS assumes that when you want an ILBM file, it is
to be Amiga compatible, and to get more than 32 colors, it must create a
HAM image which is 6 planes, but specific to the Amiga hardware.  So,
DeluxePaintII is seeing the 6 planes, and colors defined for the first
16 colors, and defaults the rest.  You cannot get the picture right simply
by adjusting the colors for the remaining 48 values simply because the
the bizzareness involved.  Only pixels using the first 16 colors will be
right.

-- Tony

-- 

Tony Parkhurst	( tony@hp-sdd.HP.COM )

"Is this Hell?  Or is this Texas?" "Both" -- Heinlein, _J_O_B: _A _C_o_m_e_d_y _o_f _J_u_s_t_i_c_e