Re: Free-/Open-Source-licensed JPG, JPG-XL, PNG, TIFF, PDF, PostScript files for print filter and OCR CI testing

Michael Sweet <[email protected]> Mon, 17 Feb 2025 11:40:48 -0500
Newsgroups dev.linux.lists.printing-architecture
Message-ID <[email protected]>
Till,

The CUPS and PAPPL sources already have many of these test files provided under the Apache 2.0 license.

WRT the (legacy) PWG Raster sample files, these are companions to PWG 5102.4-2012 and are provided under the same terms as the standard itself:

Copyright © 2011-2012 The Printer Working Group. All rights reserved.

This document may be copied and furnished to others, and derivative works that comment
on, or otherwise explain it or assist in its implementation may be prepared, copied,
published and distributed, in whole or in part, without restriction of any kind, provided that
the above copyright notice, this paragraph and the title of the Document as referenced
below are included on all such copies and derivative works. However, this document itself
may not be modified in any way, such as by removing the copyright notice or references
to the IEEE-ISTO and the Printer Working Group, a program of the IEEE-ISTO.

There used to be a script in the ippsample project's "scripts" directory for creating a set of test files at a specific resolution, but since the self-certification tools no longer depend on these files (ipptool can generate PWG raster test content) I stopped maintaining it.

The libcups project includes the ipptransform tool, which can generate PDF, PWG Raster, Apple Raster, and PCL content at different resolutions from PNG, JPEG, PDF, and text input, and I can certainly revive that sample file script.  I'm also happy to contribute sample images towards building up a repository of test files/templates that can be used for this testing.

For the purposes of testing:

- Media sizes: US Letter, US Legal, US Tabloid, US #10 envelope, 4x6 ("4R") photo, ISO A6, ISO A4, ISO A3, ISO DL envelope, Japanese Hagaki (postcard), JIS B5, Japanese Kakugata 7 envelope, Chinese 16k, and Chinese #3 envelope with a mix of portrait/landscape content as appropriate
- Content: Text, photos, graphics (graphs, drawings, etc.), barcodes (1D and 2D), color and gray scale charts; multi-page content for duplex/N-up testing
- Resolutions: 180, 203, 300, 360, 360x180, 600, 720, 1200, and 1440
- Color spaces: sGray, sRGB, AdobeRGB, Display P3 (RGB), Device (K, RGB, CMYK) with attached ICC profile (when applicable)
- Bit depths: 1-bit black, 8-bit for all, 16-bit for AdobeRGB, Display P3, and device color spaces
- Labeling: Copyright and license text and URL/QRCode on each page/image
- Fonts (PDF): Simple and composite fonts (for Unicode text), text content in the various languages we support.

> On Feb 17, 2025, at 9:05 AM, Till Kamppeter <[email protected]> wrote:
> 
> Hi,
> 
> recently, we added several testing facilities to OpenPrinting, but some of them, especially those to test software to handle data which gets printed or which got scanned, need sample files which can be shipped as a part of the source packages of the component which includes its tests.
> 
> For this we need files of the formats JPG, JPG-XL, PNG, TIFF, PDF, PostScript, and perhaps even Apple/PWG/CUPS Raster which are published under free licenses so that we can include them. Ideally the files also come with different properties, like grayscale, color, 8-, 16-bit, different resolutions, page sizes, number of pages, ...
> 
> We appreciate a lot if somebody could suggest us suitable sources.
> 
> Note that the PWG source
> 
> https://ftp.pwg.org/pub/pwg/ipp/examples/
> 
> is not suitable, unfortunately, as there is no license. The README files only mention the copyright holder but no license for them (my suggestionis that PWG publishes sample files under free license).
> 
> Thanks in advance for any suggestion.
> 
>   Till
> 
> 

________________________
Michael Sweet