Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image display too limited, cannot display A4 page in 1200 dpi #16

Closed
tillkamppeter opened this issue Jul 16, 2021 · 4 comments
Closed
Assignees
Labels
enhancement New feature or request priority-low
Milestone

Comments

@tillkamppeter
Copy link

I am using rasterview 1.7.1 from the Snap and if I create a CUPS Raster file with 1200 dpi and A4 page size no page image appears and a pop-up message telling that the pixel dimensions exceed a limit. The header data in the pull-out part on the right is correct, but one cannot advance to the second page of the document. Probably there is a fixed-size buffer to hold the raster data which is too small for said page size and resolution and so the page does not get fully read, meaning that the next page's header is not accessible.

@michaelrsweet
Copy link
Owner

@tillkamppeter Right now there is a 256MB limit, but for 1200 DPI you'd need at least 600MB. But AFAIK no printer asks for 1200DPI raster data.

@michaelrsweet michaelrsweet self-assigned this Jul 17, 2021
@michaelrsweet michaelrsweet added enhancement New feature or request priority-low labels Jul 17, 2021
@michaelrsweet michaelrsweet added this to the Stable milestone Jul 17, 2021
@tillkamppeter
Copy link
Author

What about Epson inkjets (5760x1440 dpi) with a Gutenprint Printer Application which will come sooner or later?

@michaelrsweet
Copy link
Owner

@tillkamppeter Honestly, pumping full resolution data that is just going to be dithered is a waste of resources, and there are some hard memory and file format limits on client devices that will prevent them from ever utilizing them, i.e., Apple Raster doesn't support different X and Y resolutions, and iOS won't allocate huge amounts of memory to rasterize a job. I'm hoping the eventual Gutenprint printer application will simply report raster resolutions of 300/360 and 600/720 dpi, and then upsample the incoming raster data for the internal driver resolution based on print quality and other settings.

Presumably if we had a license-compatible PDF renderer (i.e. not Ghostscript or MuPDF) then the Gutenprint printer application could use it to render PDFs at the exact resolution needed, but given their architecture there would still be a LOT of buffering happening that could prove problematic.

Anyways, I will increase the limits to allow for up to 1440dpi CMYK on A3/Tabloid (which puts us in the 2GB range), but I'm not going to go beyond that.

@michaelrsweet
Copy link
Owner

[master b63b93c] Increase maximum bitmap size to 2GB (Issue #16)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-low
Projects
None yet
Development

No branches or pull requests

2 participants