Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#25 closed defect (fixed)

ECW and Mr Sid not printing from DWF Viewer

Reported by: waltweltonlair Owned by: waltweltonlair
Priority: high Milestone: 1.2
Component: Server Version: 1.2.0
Severity: major Keywords:
Cc: External ID: 923211

Description

  1. Create a map with a vector layer and raster layer (either ECW or SID).
  2. Open the map in AJAX viewer and print it. The result is showing vectors and raster as expected.
  3. Open the map in DWF Viewer and print it. The result is showing vectors only.

Note that Tiff prints fine from DWF Viewer.

Change History (3)

comment:1 by waltweltonlair, 17 years ago

External ID: 923211
Status: newassigned

comment:2 by waltweltonlair, 17 years ago

Resolution: fixed
Status: assignedclosed

comment:3 by waltweltonlair, 17 years ago

Discussion of the problem:

When creating the printed view the DPI is set to that of the printer, which is typically much higher than the screen. The requested resolution is therefore increased. During normal screen viewing my DPI was 96 and the requested raster size was about 384x527 pixels. When printing the DPI was 600 and the requested raster size was about 6814x4759 pixels. The size of the array needed to allocate this raster (32bpp x 6814 x 4759 = 129711304 bytes) exceeds the maximum allowed value (16777216), and therefore the raster is not drawn.

The fix was simply to ensure that the requested size of the raster doesn't exceed the maximum allowed value.

Note: See TracTickets for help on using tickets.