[Imtoolkit-users] Convert loaded gif file
Brought to you by:
scuri
From: Milind G. <mil...@gm...> - 2014-07-18 17:48:08
|
Hi, I am loading a gif file using image = im.FileImageLoadBitmap(fileName) then I want to resize this loaded file so I tried: r_img = im.ImageCreate(r_w, r_h, im.RGB, im.BYTE) im.ProcessResize(image, r_img, 1) -- do bilinear interpolation But I get this error: images must have the same data type and color space stack traceback: [C]: in function 'ProcessResize' bingo.lua:50: in function 'resizeImage' bingo.lua:81: in function 'SavePalettes' bingo.lua:103: in main chunk [C]: ? How can I do the appropriate conversion so that the resize works. Thanks, Milind |