Hard limits on output raster dimension

Paul Wessel <[email protected]> Mon, 16 Apr 2018 09:54:45 -1000
Newsgroups gmane.comp.printing.ghostscript.devel
Message-ID <[email protected]>
Hi again-

I wonder if there are any 32-bit count limitations on the raster image output that ghostscript can produce? I.e., if I ask ghostscript to rasterize an image plotted in PostScript using the image operator that has dimensions NX * NY = NM pixels where NM > 2^32, is that supported.  I.e., do you use 64-bit variables for counts (int64_t or size_t) in ghostscript?

I ask because I am getting an image that seems to suffer from 32/64 bit issues.  Here is my image call (129600 by 64800 source image):

V N 0 0 T 10800 5400 scale [/Indexed /DeviceRGB 1 <0000FFFF0000>] setcolorspace
<< /ImageType 1 /Decode [0 1] /Width 129600 /Height 64800 /BitsPerComponent 1
   /ImageMatrix [129600 0 0 -64800 0 64800] /DataSource currentfile /ASCII85Decode filter /FlateDecode filter
>> image
G[BaQ!<E0#!.^11YO2Z'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
.....

Cheers, Paul Wessel