-
Notifications
You must be signed in to change notification settings - Fork 126
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
Support "print-scaling" option #108
Comments
@dheeraj135, could you add this functionality? The actual implementation you have already done with issue #65, issue #63, and pull request #92. What you need to add now is that this functionality is also triggered appropriately by the print-scaling attribute as Mike has shown in the initial posting.
Please also implement the two auto settings which are simply a selection of one of the three others depending on the “ipp-attribute-fidelity” attribute and the size of the input page compared to the size of the output page. |
@tillkamppeter Sure, I will work on it. |
@tillkamppeter @michaelrsweet, I am not sure how I should compare the size of the document and the page. Suppose the dimension of an image is [100,150] and, that of page is [120,90]. What should be the expected behaviour of |
@dheeraj135, first the input page is considered larger than the output frame, as the height of 150 does not fit into the height of 90. Even if we allow rotating to fit the output page the input page is still larger than the output page. |
CUPS 2.4.6 in FreeBSD. |
I'm having this issue as well with 2.4.7. Even with |
Thank you for reply. I'm sorry to stupid, I want to shrink image and get white space to print whole image and fit paper size in keep aspect ratio. |
I'd like to do the same thing. I'm trying to pring a jpeg and it won't scale properly with |
grep -R crop-to-fit in cups-2.4.7 source code, not found. |
@aluminaceramix note that these options are not implemented in CUPS itself but in cups-filters. For cups-filters 1.x in the "1.x" branch of the cups-filters repository (this repository) and for cups-filters 2.x in the libcupsfilters repository. |
Thank you for all reply. I want whole image printing on single paper with keep aspect ratio. |
The "print-scaling" option is the standard IPP Everywhere option for controlling the scaling of the output; currently defined values are:
auto
: if the “ipp-attribute-fidelity” attribute is true or the document is larger than the requested media, scale the document using the 'fit' method if the margins are non- zero, otherwise scale using the 'fill' method. If the “ipp-attribute-fidelity” attribute is false or unspecified and the document is smaller than the requested media, scale using the 'none' method.auto-fit
: if the “ipp-attribute-fidelity” attribute is true or the document is larger than the requested media, scale the document using the ‘fit’ method. Otherwise, scale using the ‘none’ method.fill
: scale the document to fill the requested media size, preserving the aspect ratio of the document data but potentially cropping portions of the document.fit
: scale the document to fit the printable area of the requested media size, preserving the aspect ratio of the document data without cropping the document.none
: do not scale the document to fit the requested media size. If the document is larger than the requested media, center and clip the resulting output. If the document is smaller than the requested media, center the resulting output.This attribute is defined in PWG 5100.16: IPP Transaction-Based Printing Extensions.
The text was updated successfully, but these errors were encountered: