Summary: | Provide capability to crop images to their frame to optimize PDF file size | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Max <max> |
Component: | PDF Writer | Assignee: | Default assignee <ghostpdl-bugs> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | ||
Priority: | P4 | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Customer: | Word Size: | --- |
Description
Max
2021-11-30 15:43:28 UTC
This isn't really feasible. There is no way to know, at the time the image is encoutnered, what portion of it will eventually be visible. This problem is compounded by the PDF transparency model, we really can't tell whether the portion of the image lying under another object is obscured or contributes to the rendering of that object. With a great deal of analysis I'm sure this is technically possible, but it would almost certainly require a two pass approach (at least) to identify the Z order of each object, and to determine whether the transparency in force at the time obscrued the underlying image or not. I'm afraid this is far too much work for what I would have to say is a minority feature. |