Describe the bug
When printing JPEG or PNG images with PAPPL's built-in image filters the images being color but printing being done in gray (monochrome printer or user request), the images are supposed to be converted when loading with libjpeg or libpng. This is doe correctly for JPEG images bug not for PNG. The patch below fixes this:
Without the patch the function papplJobFilterImage() receives the 3-byte color pixels and only copies the first of the three bytes into the destination image, meaning that only the red components of the original image are used. On most photos one sees only a slight difference, but on drawings for example important parts can miss in the printout.
To Reproduce
Print PNG images with a PAPPL-based Printer Application, preferably a drawing with pure red, grren, and blue graphical elements.
System Information:
As usual, Ubuntu 20.10 with current GIT snapshots of ps-printer-app and PAPPL, also my fixes for my previously reported issues.
Describe the bug When printing JPEG or PNG images with PAPPL's built-in image filters the images being color but printing being done in gray (monochrome printer or user request), the images are supposed to be converted when loading with libjpeg or libpng. This is doe correctly for JPEG images bug not for PNG. The patch below fixes this:
Without the patch the function papplJobFilterImage() receives the 3-byte color pixels and only copies the first of the three bytes into the destination image, meaning that only the red components of the original image are used. On most photos one sees only a slight difference, but on drawings for example important parts can miss in the printout.
To Reproduce Print PNG images with a PAPPL-based Printer Application, preferably a drawing with pure red, grren, and blue graphical elements.
System Information: