2010-03-18 6.6.0-8 Cristy <quetzlzacatenango@image...>
* The animate program no longer loops twice when -loop 1 is specified.
+ * The caption format would sometimes hang when the text was not UTF-8.
2010-03-17 6.6.0-7 Cristy <quetzlzacatenango@image...>
* Detect CMYKProcessColor AI tag.
if ((image->colormap == (PixelPacket *) NULL) && (samples_per_pixel == 1))
{
if (colors == 0)
- colors=MagickMin(1UL << image->depth,MaxColormapSize);
+ colors=1UL << image->depth;
if (AcquireImageColormap(image,colors) == MagickFalse)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
if (redmap != (int *) NULL)
0.5)/(window_width-1))+0.5));
}
index&=mask;
- if ((scale != (Quantum *) NULL) && (index <= (int) max_value))
- index=(int) scale[index];
index=(int) ConstrainColormapIndex(image,(unsigned long) index);
indexes[x]=(IndexPacket) index;
pixel.red=1UL*image->colormap[index].red;
assert(image->signature == MagickSignature);
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
- image->colors=MagickMin(colors,MaxColormapSize);
+ image->colors=colors;
length=(size_t) colors;
if (image->colormap == (PixelPacket *) NULL)
image->colormap=(PixelPacket *) AcquireQuantumMemory(length,