| Summary: | [Improve Report Layout Capabilities] Provide ability to scale big image ot fit a page for PDF | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Kirill A. Balod <Kirill.Balod> | ||||
| Component: | BIRT | Assignee: | Yu Chen <yChen> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Tianli Zhang <tzhang> | ||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | bluesoldier, grspence, gumingbj, hustlg, jerlich, richard.gronback, rlu, wenfeng.fwd, whe, wyan, xxue, yChen, yli, zqian | ||||
| Version: | 2.3.0 | Keywords: | plan | ||||
| Target Milestone: | 2.5.0 M5 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | Non-Auto | ||||||
| Attachments: |
|
||||||
|
Description
Kirill A. Balod
To support this feature, a solution is to add add two properties: maxWidth and maxHeight on image item. (In reply to comment #1) > To support this feature, a solution is to add add two properties: maxWidth and > maxHeight on image item. How about use fit-to-container property to image report item, instead of setting maxWidth/maxHeight? It will be better to have fit-to-container property for data, chart, label, and text report items too. For image currently we already have a "Size" property, which contains three choices: Clip - clip the image with specified image item size Scale to item - scale the image to specified image item size Size to image - use actual image size for image item I think we can just add support for this, and may add another property "keep proportion" for scaling control. *** Bug 241194 has been marked as a duplicate of this bug. *** 1. remove the scale/size from the image item as they can be replaced by other properties. scale: the scale ratio of the image. It is defined by the image-width/image-height. size has three values: * clip: the user can put the image into a fix sized container. * scale to item: the user defines the width/height. * scale to image: the user defines the width/height empty 2. add a new property for the image item: fit-in-container. It means: * calculate the image size. the image size can be defined by the user or use the intrinsic size. * if the user defines fit-in-container and the image size is larger than the container size, scale the image to container with proportion. * use the calculated size to display the image. *** Bug 260776 has been marked as a duplicate of this bug. *** *** Bug 244882 has been marked as a duplicate of this bug. *** assign to model team for adding an new property "fit-to-container". provided property fitToContainer on image item. reassign to engine team. Fixed. Created attachment 124591 [details]
Not just for PDF
The bug was reported to exist on all forms of image outputs.
Specifically, we cannot generate a high resolution image and have it:
Confined to some space exceed neither an upper width nor upper length, while at the same time, maintaining the original aspect ratio.
This applies to PDF, Powerpoint, and MS Word, etceterea.
Thanks.
Verified in 2.5.0 v20090204-0630 build. Fit to container property of enlarged image works in PDF, PPT, MS Word AND Postscript. During the verification, a issue has been found, please refer to bug #263754. Mark this bug as verified. |