poppler-utils/pdfimages list function names the wrong color in output table

Bug #1916341 reported by Bill Yikes on 2021-02-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
poppler (Ubuntu)
Undecided
Unassigned

Bug Description

When running:

$ pdfimages -list grayscale-document.pdf

the output is:

```
   page num type width height color comp bpc enc interp object ID x-ppi y-ppi size ratio
   --------------------------------------------------------------------------------------------
      1 0 image 2556 3288 rgb 3 8 jpeg no 7 0 301 300 200K 0.8%
      2 1 image 2556 3288 rgb 3 8 jpeg no 12 0 301 300 275K 1.5%
      3 2 image 2556 3288 rgb 3 8 jpeg no 17 0 301 300 395K 0.8%
      4 3 image 2556 3288 rgb 3 8 jpeg no 22 0 301 300 583K 2.8%
      5 4 image 2556 3288 rgb 3 8 jpeg no 27 0 301 300 317K 1.3%
...
```

"rgb" is incorrect, which is evident after running: 'pdfimages -all -f 1 -l 1 grayscale-document.pdf foo && identify -format "%[type]" foo-000.jpg', which correctly outputs "Grayscale".

Strangely, when "pdfimages -list" is fed a bilevel document, it states that every page has color "gray".

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers