imtoolkit-users Mailing List for IM (Page 2)
Brought to you by:
scuri
You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2010 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(3) |
Jun
(2) |
Jul
(11) |
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2012 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(15) |
Aug
|
Sep
(5) |
Oct
(1) |
Nov
|
Dec
(5) |
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Antonio S. <sc...@te...> - 2014-09-13 00:27:35
|
No. It is possible using CD. There is a how to in the CD documentation. Best, Scuri On Fri, Sep 12, 2014 at 7:52 PM, Milind Gupta <mil...@gm...> wrote: > Hi, > Is it possible to take a screen capture using im? > > Thanks, > Milind > > > > ------------------------------------------------------------------------------ > Want excitement? > Manually upgrade your production database. > When you want reliability, choose Perforce > Perforce version control. Predictably reliable. > > http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |
From: Milind G. <mil...@gm...> - 2014-09-12 22:52:25
|
Hi, Is it possible to take a screen capture using im? Thanks, Milind |
From: Milind G. <mil...@gm...> - 2014-07-22 21:47:53
|
Thank you very much. That works, Milind On Tue, Jul 22, 2014 at 3:01 AM, Antonio Scuri <sc...@te...> wrote: > Here it is in Lua: > > require"imlua" > require"imlua_process" > require"cdlua" > require"cdluaim" > > local crd = im.ImageCreate(2200, 1700, im.RGB, im.BYTE) > im.ProcessRenderConstant(crd, {255, 255, 255}) > local canvas = crd:cdCreateCanvas() > canvas:LineStyle(cd.DASHED) > canvas:Line(10, 10, 50, 50) > cd.KillCanvas(canvas) > im.FileImageSave("a.png", "PNG", crd) > > Best, > Scuri > > > > On Tue, Jul 22, 2014 at 1:21 AM, Milind Gupta <mil...@gm...> > wrote: > >> Tried this: >> >> local crd = im.ImageCreate(2200, 1700, im.RGB, im.BYTE) >> im.ProcessRenderConstant(crd, {255, 255, 255}) >> canvas = >> cd.CreateCanvas(cd.IMAGERGB,tostring(crd:Width()).."x"..tostring(crd:Height()).." >> 0x"..tostring(crd[0]):match("imImageChannel%((.-)%)").." >> 0x"..tostring(crd[1]):match("imImageChannel%((.-)%)").." >> 0x"..tostring(crd[2]):match("imImageChannel%((.-)%)")) >> canvas:LineStyle(cd.DASHED) >> canvas:Line(10, 10, 50, 50) >> cd.KillCanvas(canvas) >> im.FileImageSave("a.png", "PNG", crd) >> >> But did not work just a white image >> >> >> Milind >> >> >> On Mon, Jul 21, 2014 at 5:58 PM, Milind Gupta <mil...@gm...> >> wrote: >> >>> Thanks for sending the steps. I am struggling to find a lua equivalent. >>> Is it possible to implement it in lua? >>> >>> Thanks, >>> Milind >>> >>> >>> >>> On Mon, Jul 21, 2014 at 7:23 AM, Antonio Scuri <sc...@te... >>> > wrote: >>> >>>> Hi, >>>> >>>> Using the CD library. You can create a CD_IMAGERGB canvas using the >>>> existing image buffers. >>>> >>>> Here is a sample in C: >>>> >>>> imImage* image = *imImageCreate*(width, height, IM_RGB, IM_BYTE); >>>> // Can also call *imImageAddAlpha* if alpha support is wanted >>>> cdCanvas* canvas = cdCreateCanvasf(CD_IMAGERGB, "%dx%d %p %p %p", width, height, >>>> image->data[0], image->data[1], image->data[2]);cdCanvasLineStyle(canvas, CD_DASHED); >>>> cdCanvasLine(canvas, 10, 10, 50, 50); >>>> cdKillCanvas(canvas); >>>> *imFileImageSave*(file_name, "PNG", image);*imImageDestroy*(image); >>>> >>>> Best, >>>> Scuri >>>> >>>> >>>> On Mon, Jul 21, 2014 at 3:31 AM, Milind Gupta <mil...@gm...> >>>> wrote: >>>> >>>>> Hi, >>>>> I am combining some images on a bigger images. How can I draw >>>>> lines also on that combined image? >>>>> >>>>> Thanks, >>>>> Milind >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Want fast and easy access to all the code in your enterprise? Index and >>>>> search up to 200,000 lines of code with a free copy of Black Duck >>>>> Code Sight - the same software that powers the world's largest code >>>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>>> http://p.sf.net/sfu/bds >>>>> _______________________________________________ >>>>> Imtoolkit-users mailing list >>>>> Imt...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>>> >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Want fast and easy access to all the code in your enterprise? Index and >>>> search up to 200,000 lines of code with a free copy of Black Duck >>>> Code Sight - the same software that powers the world's largest code >>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>> http://p.sf.net/sfu/bds >>>> _______________________________________________ >>>> Imtoolkit-users mailing list >>>> Imt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>> >>>> >>> >> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Imtoolkit-users mailing list >> Imt...@li... >> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >> >> > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |
From: Antonio S. <sc...@te...> - 2014-07-22 10:02:06
|
Here it is in Lua: require"imlua" require"imlua_process" require"cdlua" require"cdluaim" local crd = im.ImageCreate(2200, 1700, im.RGB, im.BYTE) im.ProcessRenderConstant(crd, {255, 255, 255}) local canvas = crd:cdCreateCanvas() canvas:LineStyle(cd.DASHED) canvas:Line(10, 10, 50, 50) cd.KillCanvas(canvas) im.FileImageSave("a.png", "PNG", crd) Best, Scuri On Tue, Jul 22, 2014 at 1:21 AM, Milind Gupta <mil...@gm...> wrote: > Tried this: > > local crd = im.ImageCreate(2200, 1700, im.RGB, im.BYTE) > im.ProcessRenderConstant(crd, {255, 255, 255}) > canvas = > cd.CreateCanvas(cd.IMAGERGB,tostring(crd:Width()).."x"..tostring(crd:Height()).." > 0x"..tostring(crd[0]):match("imImageChannel%((.-)%)").." > 0x"..tostring(crd[1]):match("imImageChannel%((.-)%)").." > 0x"..tostring(crd[2]):match("imImageChannel%((.-)%)")) > canvas:LineStyle(cd.DASHED) > canvas:Line(10, 10, 50, 50) > cd.KillCanvas(canvas) > im.FileImageSave("a.png", "PNG", crd) > > But did not work just a white image > > > Milind > > > On Mon, Jul 21, 2014 at 5:58 PM, Milind Gupta <mil...@gm...> > wrote: > >> Thanks for sending the steps. I am struggling to find a lua equivalent. >> Is it possible to implement it in lua? >> >> Thanks, >> Milind >> >> >> >> On Mon, Jul 21, 2014 at 7:23 AM, Antonio Scuri <sc...@te...> >> wrote: >> >>> Hi, >>> >>> Using the CD library. You can create a CD_IMAGERGB canvas using the >>> existing image buffers. >>> >>> Here is a sample in C: >>> >>> imImage* image = *imImageCreate*(width, height, IM_RGB, IM_BYTE); >>> // Can also call *imImageAddAlpha* if alpha support is wanted >>> cdCanvas* canvas = cdCreateCanvasf(CD_IMAGERGB, "%dx%d %p %p %p", width, height, >>> image->data[0], image->data[1], image->data[2]);cdCanvasLineStyle(canvas, CD_DASHED); >>> cdCanvasLine(canvas, 10, 10, 50, 50); >>> cdKillCanvas(canvas); >>> *imFileImageSave*(file_name, "PNG", image);*imImageDestroy*(image); >>> >>> Best, >>> Scuri >>> >>> >>> On Mon, Jul 21, 2014 at 3:31 AM, Milind Gupta <mil...@gm...> >>> wrote: >>> >>>> Hi, >>>> I am combining some images on a bigger images. How can I draw >>>> lines also on that combined image? >>>> >>>> Thanks, >>>> Milind >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Want fast and easy access to all the code in your enterprise? Index and >>>> search up to 200,000 lines of code with a free copy of Black Duck >>>> Code Sight - the same software that powers the world's largest code >>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>> http://p.sf.net/sfu/bds >>>> _______________________________________________ >>>> Imtoolkit-users mailing list >>>> Imt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> Imtoolkit-users mailing list >>> Imt...@li... >>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>> >>> >> > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |
From: Milind G. <mil...@gm...> - 2014-07-22 04:21:31
|
Tried this: local crd = im.ImageCreate(2200, 1700, im.RGB, im.BYTE) im.ProcessRenderConstant(crd, {255, 255, 255}) canvas = cd.CreateCanvas(cd.IMAGERGB,tostring(crd:Width()).."x"..tostring(crd:Height()).." 0x"..tostring(crd[0]):match("imImageChannel%((.-)%)").." 0x"..tostring(crd[1]):match("imImageChannel%((.-)%)").." 0x"..tostring(crd[2]):match("imImageChannel%((.-)%)")) canvas:LineStyle(cd.DASHED) canvas:Line(10, 10, 50, 50) cd.KillCanvas(canvas) im.FileImageSave("a.png", "PNG", crd) But did not work just a white image Milind On Mon, Jul 21, 2014 at 5:58 PM, Milind Gupta <mil...@gm...> wrote: > Thanks for sending the steps. I am struggling to find a lua equivalent. Is > it possible to implement it in lua? > > Thanks, > Milind > > > > On Mon, Jul 21, 2014 at 7:23 AM, Antonio Scuri <sc...@te...> > wrote: > >> Hi, >> >> Using the CD library. You can create a CD_IMAGERGB canvas using the >> existing image buffers. >> >> Here is a sample in C: >> >> imImage* image = *imImageCreate*(width, height, IM_RGB, IM_BYTE); >> // Can also call *imImageAddAlpha* if alpha support is wanted >> cdCanvas* canvas = cdCreateCanvasf(CD_IMAGERGB, "%dx%d %p %p %p", width, height, >> image->data[0], image->data[1], image->data[2]);cdCanvasLineStyle(canvas, CD_DASHED); >> cdCanvasLine(canvas, 10, 10, 50, 50); >> cdKillCanvas(canvas); >> *imFileImageSave*(file_name, "PNG", image);*imImageDestroy*(image); >> >> Best, >> Scuri >> >> >> On Mon, Jul 21, 2014 at 3:31 AM, Milind Gupta <mil...@gm...> >> wrote: >> >>> Hi, >>> I am combining some images on a bigger images. How can I draw >>> lines also on that combined image? >>> >>> Thanks, >>> Milind >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> Imtoolkit-users mailing list >>> Imt...@li... >>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Imtoolkit-users mailing list >> Imt...@li... >> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >> >> > |
From: Milind G. <mil...@gm...> - 2014-07-22 00:58:45
|
Thanks for sending the steps. I am struggling to find a lua equivalent. Is it possible to implement it in lua? Thanks, Milind On Mon, Jul 21, 2014 at 7:23 AM, Antonio Scuri <sc...@te...> wrote: > Hi, > > Using the CD library. You can create a CD_IMAGERGB canvas using the > existing image buffers. > > Here is a sample in C: > > imImage* image = *imImageCreate*(width, height, IM_RGB, IM_BYTE); > // Can also call *imImageAddAlpha* if alpha support is wanted > cdCanvas* canvas = cdCreateCanvasf(CD_IMAGERGB, "%dx%d %p %p %p", width, height, > image->data[0], image->data[1], image->data[2]);cdCanvasLineStyle(canvas, CD_DASHED); > cdCanvasLine(canvas, 10, 10, 50, 50); > cdKillCanvas(canvas); > *imFileImageSave*(file_name, "PNG", image);*imImageDestroy*(image); > > Best, > Scuri > > > On Mon, Jul 21, 2014 at 3:31 AM, Milind Gupta <mil...@gm...> > wrote: > >> Hi, >> I am combining some images on a bigger images. How can I draw >> lines also on that combined image? >> >> Thanks, >> Milind >> >> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Imtoolkit-users mailing list >> Imt...@li... >> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >> >> > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |
From: Antonio S. <sc...@te...> - 2014-07-21 14:24:02
|
Hi, Using the CD library. You can create a CD_IMAGERGB canvas using the existing image buffers. Here is a sample in C: imImage* image = *imImageCreate*(width, height, IM_RGB, IM_BYTE); // Can also call *imImageAddAlpha* if alpha support is wanted cdCanvas* canvas = cdCreateCanvasf(CD_IMAGERGB, "%dx%d %p %p %p", width, height, image->data[0], image->data[1], image->data[2]);cdCanvasLineStyle(canvas, CD_DASHED); cdCanvasLine(canvas, 10, 10, 50, 50); cdKillCanvas(canvas); *imFileImageSave*(file_name, "PNG", image);*imImageDestroy*(image); Best, Scuri On Mon, Jul 21, 2014 at 3:31 AM, Milind Gupta <mil...@gm...> wrote: > Hi, > I am combining some images on a bigger images. How can I draw lines > also on that combined image? > > Thanks, > Milind > > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |
From: Milind G. <mil...@gm...> - 2014-07-21 06:32:03
|
Hi, I am combining some images on a bigger images. How can I draw lines also on that combined image? Thanks, Milind |
From: Milind G. <mil...@gm...> - 2014-07-19 15:18:52
|
The last line ProcessResize was causing lua to crash but using ProcessResizeNew fixed it. Thanks, Milind On Sat, Jul 19, 2014 at 6:13 AM, Antonio Scuri <sc...@te...> wrote: > What kind of crash? > > In which line? > > I recommend using: > > newimg = im.ImageCreateBased(image, 500,374, nil, nil) > or > newimg = im.ProcessResizeNew(image,500,374,1) > > Instead of directly using im.RGB. > > Best, > Scuri > > > > On Sat, Jul 19, 2014 at 12:39 AM, Milind Gupta <mil...@gm...> > wrote: > >> Thanks that worked for gif. Now I am having a crash problem when I am >> processing a png file. The program that crashes is: >> >> require("imlua") >> require("imlua_process") >> require("iuplua") >> image = im.FileImageLoadBitmap("fish.png") >> print(image:ColorSpace() == im.MAP) >> print(image:ColorSpace() == im.BINARY) >> newimg = im.ImageCreate(500,374,im.RGB,im.BYTE) >> im.ProcessResize(image,newimg,1) >> >> And the image is attached. The image causes Lua to crash. >> >> >> >> On Fri, Jul 18, 2014 at 5:16 PM, Antonio Scuri <sc...@te...> >> wrote: >> >>> ok. Then you will need to first convert the loaded image to RGB first. >>> >>> if (image:ColorSpace() == im.MAP or image:ColorSpace() == im.BINARY) >>> then >>> new_image = im.ConvertColorSpaceNew(image, im.RGB, false) >>> image:Destroy() >>> image = new_image >>> end >>> >>> Best, >>> Scuri >>> >>> >>> On Fri, Jul 18, 2014 at 9:06 PM, Milind Gupta <mil...@gm...> >>> wrote: >>> >>>> I want to combine to images so that they appear side by side. I was >>>> following the combine4-10x15.lua example but encountered this issue. >>>> >>>> Thanks, >>>> Milind >>>> >>>> >>>> >>>> On Fri, Jul 18, 2014 at 5:01 PM, Antonio Scuri < >>>> sc...@te...> wrote: >>>> >>>>> What do you mean by "merge"? >>>>> >>>>> Scuri >>>>> >>>>> >>>>> >>>>> On Fri, Jul 18, 2014 at 8:59 PM, Milind Gupta <mil...@gm...> >>>>> wrote: >>>>> >>>>>> Actually I want to merge it with a jpg image I loaded with im.ImageCreate(r_w, >>>>>> r_h, im.RGB, im.BYTE) >>>>>> >>>>>> How can I achieve that? >>>>>> >>>>>> Thanks, >>>>>> Milind >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Jul 18, 2014 at 4:54 PM, Antonio Scuri < >>>>>> sc...@te...> wrote: >>>>>> >>>>>>> The image in the GIF file is not an RGB image. So it loaded a >>>>>>> im.MAP image. That's why the resize failed. >>>>>>> >>>>>>> So there are a few ways to make it work. >>>>>>> >>>>>>> -- assume the image is map >>>>>>> r_img = im.ImageCreate(r_w, r_h, im.MAP, im.BYTE) >>>>>>> >>>>>>> -- create a new image based on the old one >>>>>>> r_img = im.ImageCreateBased(image, r_w, r_h, nil, nil) >>>>>>> >>>>>>> -- let the ResizeNew do it all >>>>>>> r_img = im.ProcessResizeNew(image, r_w, r_h, order) >>>>>>> >>>>>>> But it would be better to user the write interpolation order. >>>>>>> im.MAP images can not be linear interpolated. >>>>>>> >>>>>>> order = 1 >>>>>>> if (image:ColorSpace() == im.MAP or image:ColorSpace() == >>>>>>> im.BINARY) then >>>>>>> order = 0 >>>>>>> end >>>>>>> >>>>>>> >>>>>>> Best, >>>>>>> Scuri >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Fri, Jul 18, 2014 at 2:47 PM, Milind Gupta < >>>>>>> mil...@gm...> wrote: >>>>>>> >>>>>>>> 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 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------ >>>>>>>> Want fast and easy access to all the code in your enterprise? Index >>>>>>>> and >>>>>>>> search up to 200,000 lines of code with a free copy of Black Duck >>>>>>>> Code Sight - the same software that powers the world's largest code >>>>>>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>>>>>> http://p.sf.net/sfu/bds >>>>>>>> _______________________________________________ >>>>>>>> Imtoolkit-users mailing list >>>>>>>> Imt...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> Want fast and easy access to all the code in your enterprise? Index >>>>>>> and >>>>>>> search up to 200,000 lines of code with a free copy of Black Duck >>>>>>> Code Sight - the same software that powers the world's largest code >>>>>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>>>>> http://p.sf.net/sfu/bds >>>>>>> _______________________________________________ >>>>>>> Imtoolkit-users mailing list >>>>>>> Imt...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Want fast and easy access to all the code in your enterprise? Index >>>>>> and >>>>>> search up to 200,000 lines of code with a free copy of Black Duck >>>>>> Code Sight - the same software that powers the world's largest code >>>>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>>>> http://p.sf.net/sfu/bds >>>>>> _______________________________________________ >>>>>> Imtoolkit-users mailing list >>>>>> Imt...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>>>> >>>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Want fast and easy access to all the code in your enterprise? Index and >>>>> search up to 200,000 lines of code with a free copy of Black Duck >>>>> Code Sight - the same software that powers the world's largest code >>>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>>> http://p.sf.net/sfu/bds >>>>> _______________________________________________ >>>>> Imtoolkit-users mailing list >>>>> Imt...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>>> >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Want fast and easy access to all the code in your enterprise? Index and >>>> search up to 200,000 lines of code with a free copy of Black Duck >>>> Code Sight - the same software that powers the world's largest code >>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>> http://p.sf.net/sfu/bds >>>> _______________________________________________ >>>> Imtoolkit-users mailing list >>>> Imt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> Imtoolkit-users mailing list >>> Imt...@li... >>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Imtoolkit-users mailing list >> Imt...@li... >> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >> >> > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |
From: Antonio S. <sc...@te...> - 2014-07-19 13:13:50
|
What kind of crash? In which line? I recommend using: newimg = im.ImageCreateBased(image, 500,374, nil, nil) or newimg = im.ProcessResizeNew(image,500,374,1) Instead of directly using im.RGB. Best, Scuri On Sat, Jul 19, 2014 at 12:39 AM, Milind Gupta <mil...@gm...> wrote: > Thanks that worked for gif. Now I am having a crash problem when I am > processing a png file. The program that crashes is: > > require("imlua") > require("imlua_process") > require("iuplua") > image = im.FileImageLoadBitmap("fish.png") > print(image:ColorSpace() == im.MAP) > print(image:ColorSpace() == im.BINARY) > newimg = im.ImageCreate(500,374,im.RGB,im.BYTE) > im.ProcessResize(image,newimg,1) > > And the image is attached. The image causes Lua to crash. > > > > On Fri, Jul 18, 2014 at 5:16 PM, Antonio Scuri <sc...@te...> > wrote: > >> ok. Then you will need to first convert the loaded image to RGB first. >> >> if (image:ColorSpace() == im.MAP or image:ColorSpace() == im.BINARY) then >> new_image = im.ConvertColorSpaceNew(image, im.RGB, false) >> image:Destroy() >> image = new_image >> end >> >> Best, >> Scuri >> >> >> On Fri, Jul 18, 2014 at 9:06 PM, Milind Gupta <mil...@gm...> >> wrote: >> >>> I want to combine to images so that they appear side by side. I was >>> following the combine4-10x15.lua example but encountered this issue. >>> >>> Thanks, >>> Milind >>> >>> >>> >>> On Fri, Jul 18, 2014 at 5:01 PM, Antonio Scuri <sc...@te... >>> > wrote: >>> >>>> What do you mean by "merge"? >>>> >>>> Scuri >>>> >>>> >>>> >>>> On Fri, Jul 18, 2014 at 8:59 PM, Milind Gupta <mil...@gm...> >>>> wrote: >>>> >>>>> Actually I want to merge it with a jpg image I loaded with im.ImageCreate(r_w, >>>>> r_h, im.RGB, im.BYTE) >>>>> >>>>> How can I achieve that? >>>>> >>>>> Thanks, >>>>> Milind >>>>> >>>>> >>>>> >>>>> On Fri, Jul 18, 2014 at 4:54 PM, Antonio Scuri < >>>>> sc...@te...> wrote: >>>>> >>>>>> The image in the GIF file is not an RGB image. So it loaded a >>>>>> im.MAP image. That's why the resize failed. >>>>>> >>>>>> So there are a few ways to make it work. >>>>>> >>>>>> -- assume the image is map >>>>>> r_img = im.ImageCreate(r_w, r_h, im.MAP, im.BYTE) >>>>>> >>>>>> -- create a new image based on the old one >>>>>> r_img = im.ImageCreateBased(image, r_w, r_h, nil, nil) >>>>>> >>>>>> -- let the ResizeNew do it all >>>>>> r_img = im.ProcessResizeNew(image, r_w, r_h, order) >>>>>> >>>>>> But it would be better to user the write interpolation order. >>>>>> im.MAP images can not be linear interpolated. >>>>>> >>>>>> order = 1 >>>>>> if (image:ColorSpace() == im.MAP or image:ColorSpace() == im.BINARY) >>>>>> then >>>>>> order = 0 >>>>>> end >>>>>> >>>>>> >>>>>> Best, >>>>>> Scuri >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Jul 18, 2014 at 2:47 PM, Milind Gupta <mil...@gm... >>>>>> > wrote: >>>>>> >>>>>>> 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 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> Want fast and easy access to all the code in your enterprise? Index >>>>>>> and >>>>>>> search up to 200,000 lines of code with a free copy of Black Duck >>>>>>> Code Sight - the same software that powers the world's largest code >>>>>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>>>>> http://p.sf.net/sfu/bds >>>>>>> _______________________________________________ >>>>>>> Imtoolkit-users mailing list >>>>>>> Imt...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Want fast and easy access to all the code in your enterprise? Index >>>>>> and >>>>>> search up to 200,000 lines of code with a free copy of Black Duck >>>>>> Code Sight - the same software that powers the world's largest code >>>>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>>>> http://p.sf.net/sfu/bds >>>>>> _______________________________________________ >>>>>> Imtoolkit-users mailing list >>>>>> Imt...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>>>> >>>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Want fast and easy access to all the code in your enterprise? Index and >>>>> search up to 200,000 lines of code with a free copy of Black Duck >>>>> Code Sight - the same software that powers the world's largest code >>>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>>> http://p.sf.net/sfu/bds >>>>> _______________________________________________ >>>>> Imtoolkit-users mailing list >>>>> Imt...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>>> >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Want fast and easy access to all the code in your enterprise? Index and >>>> search up to 200,000 lines of code with a free copy of Black Duck >>>> Code Sight - the same software that powers the world's largest code >>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>> http://p.sf.net/sfu/bds >>>> _______________________________________________ >>>> Imtoolkit-users mailing list >>>> Imt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> Imtoolkit-users mailing list >>> Imt...@li... >>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Imtoolkit-users mailing list >> Imt...@li... >> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >> >> > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |
From: Antonio S. <sc...@te...> - 2014-07-19 00:17:09
|
ok. Then you will need to first convert the loaded image to RGB first. if (image:ColorSpace() == im.MAP or image:ColorSpace() == im.BINARY) then new_image = im.ConvertColorSpaceNew(image, im.RGB, false) image:Destroy() image = new_image end Best, Scuri On Fri, Jul 18, 2014 at 9:06 PM, Milind Gupta <mil...@gm...> wrote: > I want to combine to images so that they appear side by side. I was > following the combine4-10x15.lua example but encountered this issue. > > Thanks, > Milind > > > > On Fri, Jul 18, 2014 at 5:01 PM, Antonio Scuri <sc...@te...> > wrote: > >> What do you mean by "merge"? >> >> Scuri >> >> >> >> On Fri, Jul 18, 2014 at 8:59 PM, Milind Gupta <mil...@gm...> >> wrote: >> >>> Actually I want to merge it with a jpg image I loaded with im.ImageCreate(r_w, >>> r_h, im.RGB, im.BYTE) >>> >>> How can I achieve that? >>> >>> Thanks, >>> Milind >>> >>> >>> >>> On Fri, Jul 18, 2014 at 4:54 PM, Antonio Scuri <sc...@te... >>> > wrote: >>> >>>> The image in the GIF file is not an RGB image. So it loaded a im.MAP >>>> image. That's why the resize failed. >>>> >>>> So there are a few ways to make it work. >>>> >>>> -- assume the image is map >>>> r_img = im.ImageCreate(r_w, r_h, im.MAP, im.BYTE) >>>> >>>> -- create a new image based on the old one >>>> r_img = im.ImageCreateBased(image, r_w, r_h, nil, nil) >>>> >>>> -- let the ResizeNew do it all >>>> r_img = im.ProcessResizeNew(image, r_w, r_h, order) >>>> >>>> But it would be better to user the write interpolation order. im.MAP >>>> images can not be linear interpolated. >>>> >>>> order = 1 >>>> if (image:ColorSpace() == im.MAP or image:ColorSpace() == im.BINARY) >>>> then >>>> order = 0 >>>> end >>>> >>>> >>>> Best, >>>> Scuri >>>> >>>> >>>> >>>> On Fri, Jul 18, 2014 at 2:47 PM, Milind Gupta <mil...@gm...> >>>> wrote: >>>> >>>>> 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 >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Want fast and easy access to all the code in your enterprise? Index and >>>>> search up to 200,000 lines of code with a free copy of Black Duck >>>>> Code Sight - the same software that powers the world's largest code >>>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>>> http://p.sf.net/sfu/bds >>>>> _______________________________________________ >>>>> Imtoolkit-users mailing list >>>>> Imt...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>>> >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Want fast and easy access to all the code in your enterprise? Index and >>>> search up to 200,000 lines of code with a free copy of Black Duck >>>> Code Sight - the same software that powers the world's largest code >>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>> http://p.sf.net/sfu/bds >>>> _______________________________________________ >>>> Imtoolkit-users mailing list >>>> Imt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> Imtoolkit-users mailing list >>> Imt...@li... >>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Imtoolkit-users mailing list >> Imt...@li... >> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >> >> > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |
From: Antonio S. <sc...@te...> - 2014-07-19 00:02:03
|
What do you mean by "merge"? Scuri On Fri, Jul 18, 2014 at 8:59 PM, Milind Gupta <mil...@gm...> wrote: > Actually I want to merge it with a jpg image I loaded with im.ImageCreate(r_w, > r_h, im.RGB, im.BYTE) > > How can I achieve that? > > Thanks, > Milind > > > > On Fri, Jul 18, 2014 at 4:54 PM, Antonio Scuri <sc...@te...> > wrote: > >> The image in the GIF file is not an RGB image. So it loaded a im.MAP >> image. That's why the resize failed. >> >> So there are a few ways to make it work. >> >> -- assume the image is map >> r_img = im.ImageCreate(r_w, r_h, im.MAP, im.BYTE) >> >> -- create a new image based on the old one >> r_img = im.ImageCreateBased(image, r_w, r_h, nil, nil) >> >> -- let the ResizeNew do it all >> r_img = im.ProcessResizeNew(image, r_w, r_h, order) >> >> But it would be better to user the write interpolation order. im.MAP >> images can not be linear interpolated. >> >> order = 1 >> if (image:ColorSpace() == im.MAP or image:ColorSpace() == im.BINARY) then >> order = 0 >> end >> >> >> Best, >> Scuri >> >> >> >> On Fri, Jul 18, 2014 at 2:47 PM, Milind Gupta <mil...@gm...> >> wrote: >> >>> 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 >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> Imtoolkit-users mailing list >>> Imt...@li... >>> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Imtoolkit-users mailing list >> Imt...@li... >> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >> >> > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |
From: Milind G. <mil...@gm...> - 2014-07-19 00:00:03
|
Actually I want to merge it with a jpg image I loaded with im.ImageCreate(r_w, r_h, im.RGB, im.BYTE) How can I achieve that? Thanks, Milind On Fri, Jul 18, 2014 at 4:54 PM, Antonio Scuri <sc...@te...> wrote: > The image in the GIF file is not an RGB image. So it loaded a im.MAP > image. That's why the resize failed. > > So there are a few ways to make it work. > > -- assume the image is map > r_img = im.ImageCreate(r_w, r_h, im.MAP, im.BYTE) > > -- create a new image based on the old one > r_img = im.ImageCreateBased(image, r_w, r_h, nil, nil) > > -- let the ResizeNew do it all > r_img = im.ProcessResizeNew(image, r_w, r_h, order) > > But it would be better to user the write interpolation order. im.MAP > images can not be linear interpolated. > > order = 1 > if (image:ColorSpace() == im.MAP or image:ColorSpace() == im.BINARY) then > order = 0 > end > > > Best, > Scuri > > > > On Fri, Jul 18, 2014 at 2:47 PM, Milind Gupta <mil...@gm...> > wrote: > >> 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 >> >> >> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Imtoolkit-users mailing list >> Imt...@li... >> https://lists.sourceforge.net/lists/listinfo/imtoolkit-users >> >> > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |
From: Antonio S. <sc...@te...> - 2014-07-18 23:55:10
|
The image in the GIF file is not an RGB image. So it loaded a im.MAP image. That's why the resize failed. So there are a few ways to make it work. -- assume the image is map r_img = im.ImageCreate(r_w, r_h, im.MAP, im.BYTE) -- create a new image based on the old one r_img = im.ImageCreateBased(image, r_w, r_h, nil, nil) -- let the ResizeNew do it all r_img = im.ProcessResizeNew(image, r_w, r_h, order) But it would be better to user the write interpolation order. im.MAP images can not be linear interpolated. order = 1 if (image:ColorSpace() == im.MAP or image:ColorSpace() == im.BINARY) then order = 0 end Best, Scuri On Fri, Jul 18, 2014 at 2:47 PM, Milind Gupta <mil...@gm...> wrote: > 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 > > > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Imtoolkit-users mailing list > Imt...@li... > https://lists.sourceforge.net/lists/listinfo/imtoolkit-users > > |
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 |
From: Antonio S. <ant...@gm...> - 2013-11-28 15:31:46
|
Hi, Your Project is configured to build 32 bits applications. You need the 32 bits version of IM, but you are using the 64 bits. Best, Scuri From: JOSEF OLAH [mailto:an...@ti...] Sent: quinta-feira, 28 de novembro de 2013 12:40 To: IM discussion list. Subject: Re: [Imtoolkit-users] Cannot link IM with Visual Studio 2012 Hello, so I tried m-3.8.2_Win64_vc11_lib.zip following webpage guide. I send build logs from VS12 in two levels of detail for easier reading. Thank you Josef Olah -------- Původní zpráva ------- Od: Antonio Scuri <ant...@gm...> Komu: "'IM discussion list.'" <imt...@li...> Předmět: Re: [Imtoolkit-users] Cannot link IM with Visual Studio 2012 Datum: 27.11.2013 12:48 So in this case you can use 32 or 64 bits pre-compiled libraries. For Visual Studio 2012, you should use the im-3.8.2_Win32_vc11_lib.zip or im-3.8.2_Win64_vc11_lib.zip for static libraries. And im-3.8.2_Win32_dll11_lib.zip or im-3.8.2_Win64_dll11_lib.zip for dynamic libraries. Then assuming that you downloaded one the packages above, and configured the project settings according to http://www.tecgraf.puc-riobr/iup/en/ide_guide/msvc8.html but using only the libraries you actually need for your project. What is the result? I mean, send the Visual Studio build log attached so maybe I can tell you what’s wrong in the configuration. Best, Scuri From: JOSEF OLAH [mailto:an...@ti...] Sent: quarta-feira, 27 de novembro de 2013 05:41 To: IM discussion list. Subject: Re: [Imtoolkit-users] Cannot link IM with Visual Studio 2012 Hello, My OS is is Windows 8.1 Pro 64bit and I was trying to link IM also on Windows 7 64bit but with the same results. Thank you Josef Olah -------- Původní zpráva ------- Od: Antonio Scuri <ant...@gm... <mailto:antonio.scuri@gmailcom> > Komu: "'IM discussion list.'" <imt...@li...> Předmět: Re: [Imtoolkit-users] Cannot link IM with Visual Studio 2012 Datum: 26.11.2013 17:05 Hi Josef, Certainly is something wrong in your Project settings. What is the operating system you are using? Is a 64 bits OS? Best, Scuri From: JOSEF OLAH [mailto:an...@ti...] Sent: terça-feira, 26 de novembro de 2013 10:55 To: imt...@li... Subject: [Imtoolkit-users] Cannot link IM with Visual Studio 2012 Hello, I’m trying to use IM toolkit in my diploma thesis, but I encountered a problem, when I wanted to link IM with MS VS 2012. I’m using MS Visual Studio Professional 2012 Version 11.0.61030.00 Update 4. Programming language is purely C I tried to use almost all IM 3.8.1 and 3.8.2 Windows (both 32bit and 64bit) packages including cygwin versions, but best what I was able to achieve was error message saying: XY.c is not valid Windows application. But more often I was experiencing many linking errors like LNK 2001, LNK 2019, LNK 2005 and so on. Of course I used guide from official webpage (http://www.tecgraf.puc-riobr/iup/en/ide_guide/msvc8html <http://wwwtecgraf.puc-rio.br/iup/en/ide_guide/msvc8.html> ) but to no purpose. Code errors are excluded because I was trying to compile samples from IM webpages and some very primitive pieces of code. All this leads me to think that it must be linking error but I’m unable to find solution. Thank you in advance and sorry for my English. Best regards, Josef Olah ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351 <http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk> &iu=/4140/ostg.clktrk _______________________________________________ Imtoolkit-users mailing list Imt...@li... https://lists.sourceforge.net/lists/listinfo/imtoolkit-users <https://listssourceforge.net/lists/listinfo/imtoolkit-users> ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Imtoolkit-users mailing list Imt...@li... https://lists.sourceforge.net/lists/listinfo/imtoolkit-users |
From: Antonio S. <ant...@gm...> - 2013-11-27 11:44:31
|
So in this case you can use 32 or 64 bits pre-compiled libraries. For Visual Studio 2012, you should use the im-3.8.2_Win32_vc11_lib.zip or im-3.8.2_Win64_vc11_lib.zip for static libraries. And im-3.8.2_Win32_dll11_lib.zip or im-3.8.2_Win64_dll11_lib.zip for dynamic libraries. Then assuming that you downloaded one the packages above, and configured the project settings according to http://www.tecgraf.puc-riobr/iup/en/ide_guide/msvc8.html but using only the libraries you actually need for your project. What is the result? I mean, send the Visual Studio build log attached so maybe I can tell you what’s wrong in the configuration. Best, Scuri From: JOSEF OLAH [mailto:an...@ti...] Sent: quarta-feira, 27 de novembro de 2013 05:41 To: IM discussion list. Subject: Re: [Imtoolkit-users] Cannot link IM with Visual Studio 2012 Hello, My OS is is Windows 8.1 Pro 64bit and I was trying to link IM also on Windows 7 64bit but with the same results. Thank you Josef Olah -------- Původní zpráva ------- Od: Antonio Scuri <ant...@gm...> Komu: "'IM discussion list.'" <imt...@li...> Předmět: Re: [Imtoolkit-users] Cannot link IM with Visual Studio 2012 Datum: 26.11.2013 17:05 Hi Josef, Certainly is something wrong in your Project settings. What is the operating system you are using? Is a 64 bits OS? Best, Scuri From: JOSEF OLAH [mailto:an...@ti...] Sent: terça-feira, 26 de novembro de 2013 10:55 To: imt...@li... Subject: [Imtoolkit-users] Cannot link IM with Visual Studio 2012 Hello, I’m trying to use IM toolkit in my diploma thesis, but I encountered a problem, when I wanted to link IM with MS VS 2012. I’m using MS Visual Studio Professional 2012 Version 11.0.61030.00 Update 4. Programming language is purely C I tried to use almost all IM 3.8.1 and 3.8.2 Windows (both 32bit and 64bit) packages including cygwin versions, but best what I was able to achieve was error message saying: XY.c is not valid Windows application. But more often I was experiencing many linking errors like LNK 2001, LNK 2019, LNK 2005 and so on. Of course I used guide from official webpage (http://www.tecgraf.puc-riobr/iup/en/ide_guide/msvc8.html <http://wwwtecgraf.puc-rio.br/iup/en/ide_guide/msvc8.html> ) but to no purpose. Code errors are excluded because I was trying to compile samples from IM webpages and some very primitive pieces of code. All this leads me to think that it must be linking error but I’m unable to find solution. Thank you in advance and sorry for my English. Best regards, Josef Olah ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351 <http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk> &iu=/4140/ostg.clktrk _______________________________________________ Imtoolkit-users mailing list Imt...@li... https://lists.sourceforge.net/lists/listinfo/imtoolkit-users |
From: JOSEF O. <an...@ti...> - 2013-11-27 07:41:28
|
Toto je HTML mail, pouzijte novejsi verzi klienta. |
From: Antonio S. <ant...@gm...> - 2013-11-26 15:58:35
|
Hi Josef, Certainly is something wrong in your Project settings. What is the operating system you are using? Is a 64 bits OS? Best, Scuri From: JOSEF OLAH [mailto:an...@ti...] Sent: terça-feira, 26 de novembro de 2013 10:55 To: imt...@li... Subject: [Imtoolkit-users] Cannot link IM with Visual Studio 2012 Hello, I’m trying to use IM toolkit in my diploma thesis, but I encountered a problem, when I wanted to link IM with MS VS 2012. I’m using MS Visual Studio Professional 2012 Version 11.0.61030.00 Update 4. Programming language is purely C. I tried to use almost all IM 3.8.1 and 3.8.2 Windows (both 32bit and 64bit) packages including cygwin versions, but best what I was able to achieve was error message saying: XY.c is not valid Windows application. But more often I was experiencing many linking errors like LNK 2001, LNK 2019, LNK 2005 and so on. Of course I used guide from official webpage (http://www.tecgraf.puc-riobr/iup/en/ide_guide/msvc8.html <http://wwwtecgraf.puc-rio.br/iup/en/ide_guide/msvc8.html> ) but to no purpose. Code errors are excluded because I was trying to compile samples from IM webpages and some very primitive pieces of code. All this leads me to think that it must be linking error but I’m unable to find solution. Thank you in advance and sorry for my English. Best regards, Josef Olah |
From: JOSEF O. <an...@ti...> - 2013-11-26 14:12:32
|
Toto je HTML mail, pouzijte novejsi verzi klienta. |
From: Antonio S. <sc...@te...> - 2013-11-22 01:49:32
|
Hi All, The 3.8.2 version of the IM toolkit has been released. This is just a bug fix release. You can find the complete list of changes and files for download at: <http://www.tecgraf.puc-rio.br/im/> http://www.tecgraf.puc-rio.br/im/ Best Regards, Antonio Scuri |
From: Antonio S. <ant...@gm...> - 2012-05-19 00:46:03
|
Hi All, The 3.8 version of the IM toolkit has been released. We would like to highlight the following features: - support for signed short data type IM_SHORT. - better control of min,max in imProcessToneGamut and imConvertDataType - better support for EXIF metadata in JPEG format. You can find the complete list of changes and files for download at: http://www.tecgraf.puc-rio.br/im/ Best Regards, Antonio Scuri |
From: Antonio S. <sc...@te...> - 2012-01-04 22:01:38
|
Hi All, The 3.7 version of the IM toolkit has been released. We would like to highlight the following features: - support for Lua 5.2 - removed Lua bytecode usage in pre-compiled binaries. Now IM pre-compiled binaries are compatible with LuaJIT. - support for OpenMP in the im_process library. Almost all image processing functions now have support for multi-thread using OpenMP. - third party libraries updated to newest versions zlib 1.2.5, libpng 1.5.7, libjpeg 8c and libtiff 4.0. You can find the complete list of changes and files for download at: http://www.tecgraf.puc-rio.br/im/ IM is a toolkit for Digital Imaging. IM is based on 4 concepts: Image Representation, Storage, Processing and Capture. Best Regards, Antonio Scuri |
From: Antonio S. <sc...@te...> - 2010-11-14 02:07:11
|
Hi All, The 3.6.3 version of the IM toolkit has been released. This is just a bug fix. You can find the list of changes and files for download at: http://www.tecgraf.puc-rio.br/im/ Best Regards, Antonio Scuri |
From: Antonio S. <sc...@te...> - 2010-08-13 14:20:52
|
Just commited to CVS. Thanks, scuri From: Nicolas Noble [mailto:ni...@no...] Sent: quinta-feira, 12 de agosto de 2010 16:07 To: imt...@li... Subject: [Imtoolkit-users] Supporting Alpha in TGA files. Hello, I recently was surprised to discover that IM doesn't support writing TGA files that include an Alpha channel. I wrote a very simple patch for it, and it seems to be working fine, so I figured I'd share it. Cheers, -- Nicolas Noble --- <http://git.grumpycoder.net/cgi-bin/gitweb.cgi?p=lua-modules-iup;a=blob;f=im /src/im_format_tga.cpp;h=7c24a28a8d5f1ea1a500cba12b1534af0607006e> im/src/im_format_tga.cpp +++ <http://git.grumpycoder.net/cgi-bin/gitweb.cgi?p=lua-modules-iup;a=blob;f=im /src/im_format_tga.cpp;h=f15b25f0a91d61c4c32a370e712f0532a884375e;hb=0a44ec3 515eb9f7d2bed08cad79dff4d7524d818> im/src/im_format_tga.cpp @@ <http://git.grumpycoder.net/cgi-bin/gitweb.cgi?p=lua-modules-iup;a=blob;f=im /src/im_format_tga.cpp;h=7c24a28a8d5f1ea1a500cba12b1534af0607006e#l475> -475,7 <http://git.grumpycoder.net/cgi-bin/gitweb.cgi?p=lua-modules-iup;a=blob;f=im /src/im_format_tga.cpp;h=f15b25f0a91d61c4c32a370e712f0532a884375e;hb=0a44ec3 515eb9f7d2bed08cad79dff4d7524d818#l475> +475,13 @@ int imFileFormatTGA::WriteImageInfo() this->image_type = 1; break; case IM_RGB: - this->bpp = 24; + if (imColorModeHasAlpha(this->user_color_mode)) + { + this->bpp = 32; + this->file_color_mode |= IM_ALPHA; + } + else + this->bpp = 24; this->file_color_mode |= IM_PACKED; if (imStrEqual(this->compression, "RLE")) this->image_type = 10; |