Branch: Tag:

1999-04-22

1999-04-22 01:43:33 by Per Hedbor <ph@opera.com>

Fixed CMYK support

Rev: lib/modules/_Image_PSD.pmod:1.4
Rev: src/modules/Image/encodings/psd.c:1.6

91:    ({0,255,0,}),    ({0,0,255,}),    }) + ({ 255,255,255 }) * 24; +  l->image = Image.image( l->width, l->height, 255, 255, 255);    break;    case Indexed:    use_cmap = 1;
198:   mapping _decode( string|mapping what, mapping|void opts )   {    mapping data; - mixed e =catch{ + // mixed e =catch{    if(!opts) opts = ([]);    if(mappingp(what))    data = what;
211:       foreach(reverse(data->layers), object l)    { -  if((l->flags & LAYER_FLAG_VISIBLE) || opts->draw_all_layers) + // if((l->flags & LAYER_FLAG_VISIBLE) || opts->draw_all_layers)    {    Layer h = l->get_opaqued( l->opacity );   
256:    "image":img,    "alpha":alpha,    ]); - }; -  werror(describe_backtrace(e)); + // }; + // werror(describe_backtrace(e));   }