* [Printing-architecture] Useful utility: cups-filter-check
@ 2013-12-16 17:10 Tim Waugh
2013-12-16 17:17 ` Till Kamppeter
2013-12-27 19:55 ` Alex Korobkin
0 siblings, 2 replies; 8+ messages in thread
From: Tim Waugh @ 2013-12-16 17:10 UTC (permalink / raw)
To: printing-architecture@lists.linux-foundation.org
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
Hi,
Last week I put together a small program to simply display the filter
pipelines that would be used for each configured input format and each
likely output format (CUPS raster, PostScript, PDF).
This is useful for sanity-checking changes to CUPS filter costs, to
check whether changes to pipelines are intentional or accidental.
It's based on testmime.c and is very simple. See what you think:
https://gitorious.org/cups-filter-check
Tim.
*/
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 482 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Printing-architecture] Useful utility: cups-filter-check
2013-12-16 17:10 [Printing-architecture] Useful utility: cups-filter-check Tim Waugh
@ 2013-12-16 17:17 ` Till Kamppeter
2013-12-16 17:19 ` Michael Sweet
2013-12-16 17:26 ` Tim Waugh
2013-12-27 19:55 ` Alex Korobkin
1 sibling, 2 replies; 8+ messages in thread
From: Till Kamppeter @ 2013-12-16 17:17 UTC (permalink / raw)
To: Tim Waugh, printing-architecture@lists.linux-foundation.org
Should we perhaps make this part of cups-filters?
Till
On 12/16/2013 06:10 PM, Tim Waugh wrote:
> Hi,
>
> Last week I put together a small program to simply display the filter
> pipelines that would be used for each configured input format and each
> likely output format (CUPS raster, PostScript, PDF).
>
> This is useful for sanity-checking changes to CUPS filter costs, to
> check whether changes to pipelines are intentional or accidental.
>
> It's based on testmime.c and is very simple. See what you think:
> https://gitorious.org/cups-filter-check
>
> Tim.
> */
>
>
>
> _______________________________________________
> Printing-architecture mailing list
> Printing-architecture@lists.linux-foundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Printing-architecture] Useful utility: cups-filter-check
2013-12-16 17:17 ` Till Kamppeter
@ 2013-12-16 17:19 ` Michael Sweet
2013-12-16 17:26 ` Tim Waugh
1 sibling, 0 replies; 8+ messages in thread
From: Michael Sweet @ 2013-12-16 17:19 UTC (permalink / raw)
To: Till Kamppeter; +Cc: printing-architecture@lists.linux-foundation.org
Till,
I was thinking I could just add an option to the cupsfilter program (--dry-run or something) that displayed the list of filters that would get used.
On Dec 16, 2013, at 12:17 PM, Till Kamppeter <till.kamppeter@gmail.com> wrote:
> Should we perhaps make this part of cups-filters?
>
> Till
>
> On 12/16/2013 06:10 PM, Tim Waugh wrote:
>> Hi,
>>
>> Last week I put together a small program to simply display the filter
>> pipelines that would be used for each configured input format and each
>> likely output format (CUPS raster, PostScript, PDF).
>>
>> This is useful for sanity-checking changes to CUPS filter costs, to
>> check whether changes to pipelines are intentional or accidental.
>>
>> It's based on testmime.c and is very simple. See what you think:
>> https://gitorious.org/cups-filter-check
>>
>> Tim.
>> */
>>
>>
>>
>> _______________________________________________
>> Printing-architecture mailing list
>> Printing-architecture@lists.linux-foundation.org
>> https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture
>>
>
> _______________________________________________
> Printing-architecture mailing list
> Printing-architecture@lists.linux-foundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture
_______________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Printing-architecture] Useful utility: cups-filter-check
2013-12-16 17:17 ` Till Kamppeter
2013-12-16 17:19 ` Michael Sweet
@ 2013-12-16 17:26 ` Tim Waugh
2013-12-16 17:54 ` Michael Sweet
1 sibling, 1 reply; 8+ messages in thread
From: Tim Waugh @ 2013-12-16 17:26 UTC (permalink / raw)
To: Till Kamppeter; +Cc: printing-architecture@lists.linux-foundation.org
[-- Attachment #1: Type: text/plain, Size: 803 bytes --]
On Mon, 2013-12-16 at 18:17 +0100, Till Kamppeter wrote:
> Should we perhaps make this part of cups-filters?
Yes, sure -- or Michael Sweet's suggestion of enhancing cupsfilter would
also be fine. It's quite nice to be able to loop over all of the
configured MIME types though. I guess it can be done in a shell script
(reading *.types)... it just might not be very pretty:
grep '^[^[:space:]#]' /usr/share/cups/mime/mime.types | (while read t;
do set $t; echo $1; done) | sort
Incidentally, while playing around with it I noticed the only route from
application/vnd.adobe-reader-postscript -> application/vnd.cups-pdf is
via image/tiff. Is that intentional? I expect any printer capable of
handling PDF can also handle PostScript, and that path works fine at
less cost.
Tim.
*/
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 482 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Printing-architecture] Useful utility: cups-filter-check
2013-12-16 17:26 ` Tim Waugh
@ 2013-12-16 17:54 ` Michael Sweet
2013-12-27 15:29 ` Till Kamppeter
0 siblings, 1 reply; 8+ messages in thread
From: Michael Sweet @ 2013-12-16 17:54 UTC (permalink / raw)
To: Tim Waugh
Cc: printing-architecture@lists.linux-foundation.org, Till Kamppeter
Tim,
On Dec 16, 2013, at 12:26 PM, Tim Waugh <twaugh@redhat.com> wrote:
> ...
> Incidentally, while playing around with it I noticed the only route from
> application/vnd.adobe-reader-postscript -> application/vnd.cups-pdf is
> via image/tiff. Is that intentional? I expect any printer capable of
> handling PDF can also handle PostScript, and that path works fine at
> less cost.
I'm guessing the reason for this is Adobe's stupid enforcement of PDF form content protection - some forms can't be processed by Ghostscript or Adobe's own PS distiller to generate PDF because of restrictions that are placed in the PostScript code. But it is A-OK to RIP the content for printing/export to an image... :/
But yes, if the printer reports support for PostScript then application/vnd.adobe-reader-postscript should go to application/vnd.cups-postscript without a side-trip through TIFF and PDF...
_______________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Printing-architecture] Useful utility: cups-filter-check
2013-12-16 17:54 ` Michael Sweet
@ 2013-12-27 15:29 ` Till Kamppeter
0 siblings, 0 replies; 8+ messages in thread
From: Till Kamppeter @ 2013-12-27 15:29 UTC (permalink / raw)
To: Michael Sweet, Tim Waugh; +Cc: printing-architecture@lists.linux-foundation.org
On 12/16/2013 06:54 PM, Michael Sweet wrote:
> Tim,
>
> On Dec 16, 2013, at 12:26 PM, Tim Waugh <twaugh@redhat.com> wrote:
>> ...
>> Incidentally, while playing around with it I noticed the only route from
>> application/vnd.adobe-reader-postscript -> application/vnd.cups-pdf is
>> via image/tiff. Is that intentional? I expect any printer capable of
>> handling PDF can also handle PostScript, and that path works fine at
>> less cost.
>
> I'm guessing the reason for this is Adobe's stupid enforcement of PDF form content protection - some forms can't be processed by Ghostscript or Adobe's own PS distiller to generate PDF because of restrictions that are placed in the PostScript code. But it is A-OK to RIP the content for printing/export to an image... :/
>
For going this way I suggest to go
PostScript --gstoraster-> CUPS Raster --rastertopdf-> PDF ...
as first, imagetopdf/imagetoraster supports only single-page TIFF and
HPLIPs pstotiff filter only produces monochrome low-res TIFF for faxing.
rastertopdf needs to get created anyway for making CUPS a complete IPP
Everywhere implementation, as IPP Everywhere printers need to take PWG
Raster as input format. See
http://www.cups.org/str.php?L4266
> But yes, if the printer reports support for PostScript then application/vnd.adobe-reader-postscript should go to application/vnd.cups-postscript without a side-trip through TIFF and PDF...
Yes, this I already cover in cups-filters,
application/vnd.adobe-reader-postscript is converted into
application/vnd.cups-postscript through pstops, without PDF detour.
Till
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Printing-architecture] Useful utility: cups-filter-check
2013-12-16 17:10 [Printing-architecture] Useful utility: cups-filter-check Tim Waugh
2013-12-16 17:17 ` Till Kamppeter
@ 2013-12-27 19:55 ` Alex Korobkin
2014-01-02 2:34 ` Michael Sweet
1 sibling, 1 reply; 8+ messages in thread
From: Alex Korobkin @ 2013-12-27 19:55 UTC (permalink / raw)
To: Tim Waugh; +Cc: printing-architecture@lists.linux-foundation.org
[-- Attachment #1: Type: text/plain, Size: 803 bytes --]
I'd love to have this in the cups-filters package. Great idea.
2013/12/16 Tim Waugh <twaugh@redhat.com>
> Hi,
>
> Last week I put together a small program to simply display the filter
> pipelines that would be used for each configured input format and each
> likely output format (CUPS raster, PostScript, PDF).
>
> This is useful for sanity-checking changes to CUPS filter costs, to
> check whether changes to pipelines are intentional or accidental.
>
> It's based on testmime.c and is very simple. See what you think:
> https://gitorious.org/cups-filter-check
>
> Tim.
> */
>
>
> _______________________________________________
> Printing-architecture mailing list
> Printing-architecture@lists.linux-foundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture
>
>
[-- Attachment #2: Type: text/html, Size: 1420 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Printing-architecture] Useful utility: cups-filter-check
2013-12-27 19:55 ` Alex Korobkin
@ 2014-01-02 2:34 ` Michael Sweet
0 siblings, 0 replies; 8+ messages in thread
From: Michael Sweet @ 2014-01-02 2:34 UTC (permalink / raw)
To: Alex Korobkin; +Cc: printing-architecture@lists.linux-foundation.org
[-- Attachment #1: Type: text/plain, Size: 1344 bytes --]
All,
I filed CUPS STR #4325 to track adding this to the cupsfilter command:
https://www.cups.org/str.php?L4325
On Dec 27, 2013, at 2:55 PM, Alex Korobkin <korobkin+op@gmail.com> wrote:
> I'd love to have this in the cups-filters package. Great idea.
>
>
> 2013/12/16 Tim Waugh <twaugh@redhat.com>
> Hi,
>
> Last week I put together a small program to simply display the filter
> pipelines that would be used for each configured input format and each
> likely output format (CUPS raster, PostScript, PDF).
>
> This is useful for sanity-checking changes to CUPS filter costs, to
> check whether changes to pipelines are intentional or accidental.
>
> It's based on testmime.c and is very simple. See what you think:
> https://gitorious.org/cups-filter-check
>
> Tim.
> */
>
>
> _______________________________________________
> Printing-architecture mailing list
> Printing-architecture@lists.linux-foundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture
>
>
> _______________________________________________
> Printing-architecture mailing list
> Printing-architecture@lists.linux-foundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture
_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
[-- Attachment #2: Type: text/html, Size: 3254 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-01-02 2:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-16 17:10 [Printing-architecture] Useful utility: cups-filter-check Tim Waugh
2013-12-16 17:17 ` Till Kamppeter
2013-12-16 17:19 ` Michael Sweet
2013-12-16 17:26 ` Tim Waugh
2013-12-16 17:54 ` Michael Sweet
2013-12-27 15:29 ` Till Kamppeter
2013-12-27 19:55 ` Alex Korobkin
2014-01-02 2:34 ` Michael Sweet
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.