Skip to contentSkip to conversation

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

DISCUSSION Till Kamppeter 3 participants 9 messages Feb 17, 2025 – Feb 19, 2025 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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.

Quoted 12 lines · Till Kamppeter

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

Quoted 9 lines

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

#2 lore raw

Thank you very much for your detailed reply.

Quoted 8 lines · Michael Sweet

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.

Quoted 8 lines

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.

Is this a well-known free software/document license? And if yes, which one?

Quoted 3 lines

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.

Could you please do so?

Quoted 2 lines

I'm also happy to contribute sample images towards building up a repository of test files/templates that can be used for this testing.

Could you also do so, too?

Quoted 10 lines

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.

OK, great.

As JPEX-XL is a format which I am newly adding to the filters, how and where could I obtain free sample images for that format?

Till

#3 lore raw

Till,

Quoted 5 lines · Till Kamppeter
Quoted 2 lines

...
to the IEEE-ISTO and the Printer Working Group, a program of the IEEE-ISTO.

Is this a well-known free software/document license? And if yes, which one?

I don't think it is a well-known "license", however the terms match the Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0) license.

Quoted 4 lines

...

Quoted 1 line

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.

Could you please do so?

OK, I'll set something up as a starting point...

Quoted 2 lines

...
As JPEX-XL is a format which I am newly adding to the filters, how and where could I obtain free sample images for that format?

I suspect you'll need to generate them. I think ImageMagick supports conversion to the format, so that might be a way towards that goal. The libjxl project also includes a cjxl utility that can convert PNG files to JXL, and libjxl also provides a Gimp plugin...

________________________
Michael Sweet

#4 lore raw

Till,

I created an OpenPrinting project to hold the sample files:

https://github.com/OpenPrinting/sample-files

Quoted 19 lines · Michael Sweet

Till,

Quoted 5 lines · Till Kamppeter
Quoted 2 lines

...
to the IEEE-ISTO and the Printer Working Group, a program of the IEEE-ISTO.

Is this a well-known free software/document license? And if yes, which one?

I don't think it is a well-known "license", however the terms match the Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0) license.

Quoted 4 lines

...

Quoted 1 line

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.

Could you please do so?

OK, I'll set something up as a starting point...

Quoted 9 lines
Quoted 2 lines

...
As JPEX-XL is a format which I am newly adding to the filters, how and where could I obtain free sample images for that format?

I suspect you'll need to generate them. I think ImageMagick supports conversion to the format, so that might be a way towards that goal. The libjxl project also includes a cjxl utility that can convert PNG files to JXL, and libjxl also provides a Gimp plugin...

________________________
Michael Sweet

________________________
Michael Sweet

#7 lore raw
In reply to Michael Sweet
Quoted 10 lines · Michael Sweet

Till,

Quoted 5 lines · Till Kamppeter
Quoted 2 lines

...
to the IEEE-ISTO and the Printer Working Group, a program of the IEEE-ISTO.

Is this a well-known free software/document license? And if yes, which one?

I don't think it is a well-known "license", however the terms match the Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0) license.

OK, thanks. Should be good enough for sample content, but I will also ask my colleagues.

Quoted 5 lines
Quoted 2 lines

...
As JPEX-XL is a format which I am newly adding to the filters, how and where could I obtain free sample images for that format?

I suspect you'll need to generate them. I think ImageMagick supports conversion to the format, so that might be a way towards that goal. The libjxl project also includes a cjxl utility that can convert PNG files to JXL, and libjxl also provides a Gimp plugin...

OK, so we will take some high-color-depth PNG or so to turn it into JXL ...

Thank you very much.

Till

#9 lore raw
In reply to a message not in the archive

Thank you very much for your support Till and Micheal.

Quoted 32 lines · On Tue, Feb 18, 2025 at 7:05 AM UDDHAV PHATAK 22BCE10731…

Thank you Till and Micheal

Quoted 28 lines · Till Kamppeter,
Quoted 10 lines · Michael Sweet

Till,

Quoted 5 lines · Till Kamppeter
Quoted 2 lines

...
to the IEEE-ISTO and the Printer Working Group, a program of the IEEE-ISTO.

Is this a well-known free software/document license? And if yes, which one?

I don't think it is a well-known "license", however the terms match the Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0) license.

OK, thanks. Should be good enough for sample content, but I will also ask my colleagues.

Quoted 5 lines
Quoted 2 lines

...
As JPEX-XL is a format which I am newly adding to the filters, how and where could I obtain free sample images for that format?

I suspect you'll need to generate them. I think ImageMagick supports conversion to the format, so that might be a way towards that goal. The libjxl project also includes a cjxl utility that can convert PNG files to JXL, and libjxl also provides a Gimp plugin...

OK, so we will take some high-color-depth PNG or so to turn it into JXL ...

Thank you very much.

Till

#6 lore raw
In reply to Michael Sweet

All,

I have started adding some test documents to the repository, starting with some JPEG and PNG photo test files.

Quoted 33 lines · Michael Sweet

Till,

I created an OpenPrinting project to hold the sample files:

https://github.com/OpenPrinting/sample-files

Quoted 24 lines · Michael Sweet

Till,

Quoted 5 lines · Till Kamppeter
Quoted 2 lines

...
to the IEEE-ISTO and the Printer Working Group, a program of the IEEE-ISTO.

Is this a well-known free software/document license? And if yes, which one?

I don't think it is a well-known "license", however the terms match the Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0) license.

Quoted 4 lines

...

Quoted 1 line

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.

Could you please do so?

OK, I'll set something up as a starting point...

Quoted 2 lines

...
As JPEX-XL is a format which I am newly adding to the filters, how and where could I obtain free sample images for that format?

I suspect you'll need to generate them. I think ImageMagick supports conversion to the format, so that might be a way towards that goal. The libjxl project also includes a cjxl utility that can convert PNG files to JXL, and libjxl also provides a Gimp plugin...

Quoted 9 lines
Quoted 4 lines

________________________
Michael Sweet

________________________
Michael Sweet

________________________
Michael Sweet