[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ghetto Image Converter for HGR modes
On Sunday, June 16, 2013 2:21:41 AM UTC-5, osgeld wrote:
> > Okay, the lua script is giving me some interesting errors here:
>
> >
>
> >
>
> >
>
> > Saving the PPM as ASCII gives me this error:
>
> >
>
> >
>
> >
>
> > convert.lua:66: attempt to concatenate field '?' (a nil value)
>
> >
>
> > stack traceback:
>
> >
>
> > convert.lua:66: in main chunk
>
> >
>
> > [C]: ?
>
> >
>
> >
>
> >
>
> > Saving it in RAW gives me this error:
>
> >
>
> >
>
> >
>
> > convert.lua:23: attempt to perform arithmetic on field '?' (a string value)
>
> >
>
> > stack traceback:
>
> >
>
> > convert.lua:23: in main chunk
>
> >
>
> > [C]: in ?
>
> >
>
> >
>
> >
>
> > I'm fairly certain this will require an ASCII PPM file as it seems to analyse text, but doing it either way doesn't work.
>
> >
>
> >
>
> >
>
> > I've also tried this script using both Lua 5.1 and 5.2 x64
>
> >
>
> >
>
> >
>
> > My setup
>
> >
>
> > OS: Windows 8 Pro with Media Center x64
>
> >
>
> > Lua: 5.1 x64 and 5.2 x64
>
> >
>
> > GIMP: 2.8.2
>
>
>
> Yes its ASCII, did you dither using the palette in the gimp? If the color does not meet an exact RGB value it will barf
Also, I checked things out and ruled out GIMP as well, a solely Black and white palette (which use the same RGB values for Black and White in your script) isn't working at all, either.