[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ghetto Image Converter for HGR modes



> 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