Skip to content
Snippets Groups Projects
Commit a5d8beef authored by Per Hedbor's avatar Per Hedbor
Browse files

Fixes

Rev: lib/modules/_Image_PSD.pmod:1.2
Rev: lib/modules/_Image_XPM.pmod:1.8
parent db40ab31
Branches
Tags
No related merge requests found
...@@ -173,7 +173,7 @@ mapping _decode( string|mapping what, mapping|void opts ) ...@@ -173,7 +173,7 @@ mapping _decode( string|mapping what, mapping|void opts )
break; break;
case "mult": case "mul ":
object oi = IMG_SLICE(l,h); object oi = IMG_SLICE(l,h);
oi *= h->image; oi *= h->image;
PASTE_ALPHA(oi,h->alpha); PASTE_ALPHA(oi,h->alpha);
......
...@@ -114,7 +114,7 @@ string encode( object what, mapping|void options ) ...@@ -114,7 +114,7 @@ string encode( object what, mapping|void options )
TD("Encode CT"); TD("Encode CT");
if(!options->colortable) if(!options->colortable)
{ {
options->colortable = Image.colortable( what, 8089 ); options->colortable = Image.Colortable( what, 8089 );
options->colortable->rigid( 25, 25, 25 ); options->colortable->rigid( 25, 25, 25 );
options->colortable->floyd_steinberg(); options->colortable->floyd_steinberg();
} }
...@@ -137,7 +137,7 @@ string encode( object what, mapping|void options ) ...@@ -137,7 +137,7 @@ string encode( object what, mapping|void options )
TD("Encode alpha"); TD("Encode alpha");
if(options->alpha) if(options->alpha)
{ {
object ac = Image.colortable( ({ Image.color.white, Image.color.black }) ); object ac = Image.Colortable( ({ Image.Color.white, Image.Color.black }) );
array q = ac->index( options->alpha )/what->xsize(); array q = ac->index( options->alpha )/what->xsize();
string alpha_color = " "; string alpha_color = " ";
string minus_ett = " "; string minus_ett = " ";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment