#1000805 /usr/bin/cjpeg: cjpeg with pgm generates 3 components jpeg file

Package:
libjpeg-turbo-progs
Source:
libjpeg-turbo
Description:
Programs for manipulating JPEG files
Submitter:
Mathieu Malaterre
Date:
2021-12-01 08:15:06 UTC
Severity:
normal
Tags:
#1000805#5
Date:
2021-11-29 08:34:40 UTC
From:
To:
Dear Maintainer,

It seems the behavior of cjpeg has changed for PGM (grayscale) input
file. It would be nice to revert to old behavior where single component
(grayscale) PGM input result in JPEG file with single component.

Steps:

$ convert -size 512x512 -depth 8 xc:black black.pgm
$ cjpeg -outfile black.jpg black.pgm
$ file black.jpg
black.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, baseline, precision 8, 512x512, components 3

#1000805#12
Date:
2021-12-01 08:12:41 UTC
From:
To:
See:

* https://github.com/libjpeg-turbo/libjpeg-turbo/commit/2ce32e0fe53fb402c78c92137998c5119d09aee0.patch