pdfimages in poppler-utils ignores "-j" to extract jpegs (*.jpg)

Bug #320006 reported by Oliver Joos
2
Affects Status Importance Assigned to Milestone
Poppler
Fix Released
Medium
poppler (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: poppler-utils

The command pdfimages in poppler-utils 10.0.3-0ubuntu1 (9.04 Jaunty) still ignores the option "-j" to extract ".jpg". It always extracts ".ppm". The same applies to poppler-utils 0.8.7-1ubuntu0.1 (8.10 Intrepid).

As a workaround you may replace "poppler-utils" with "xpdf-utils":
$ sudo apt-get install xpdf-utils

description: updated
Revision history for this message
Pedro Villavicencio (pedro) wrote :

thanks for the report, that works fine for me, could you tell us a few easy steps in order to reproduce this? or attach an example document? what i get here is:

pdfimages -j poster.pdf image

file image-00*
image-000.jpg: JPEG image data
image-001.jpg: JPEG image data
image-002.jpg: JPEG image data
image-003.jpg: JPEG image data

Changed in poppler:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Oliver Joos (oliver-joos) wrote :

I deal with PDFs that are produced by gscan2pdf 0.9.27 (9.04 Jaunty) which contain one page-filling JPG per page. I attach here a Testscan.pdf of one empty paper. (BTW: I use i386 packages)

With xpdf-utils 3.02-1.4ubuntu1, I get what I expect:
$ pdfimages -j Testscan.pdf xpdf-image
$ file xpdf-image-000.jpg
xpdf-image-000.jpg: JPEG image data, JFIF standard 1.01, comment: " SANE data follows"
$ ls -l xpdf-image-000.jpg
-rw-r--r-- 1 oliver oliver 16634 2009-01-23 09:52 xpdf-image-000.jpg

With poppler-utils 0.10.3-0ubuntu1, I get:
$ pdfimages -j Testscan.pdf poppler-image
$ file poppler-image-000.ppm
poppler-image-000.ppm: Netpbm PPM "rawbits" image data
$ ls -l poppler-image-000.ppm
-rw-r--r-- 1 oliver oliver 6524897 2009-01-23 09:53 poppler-image-000.ppm

Revision history for this message
In , Pedro Villavicencio (pedro) wrote :

this bug has been reported here:

https://bugs.edge.launchpad.net/poppler/+bug/320006

"The command pdfimages in poppler-utils 10.0.3-0ubuntu1 (9.04 Jaunty) still ignores the option "-j" to extract ".jpg". It always extracts ".ppm". The same applies to poppler-utils 0.8.7-1ubuntu0.1 (8.10 Intrepid)."

"I deal with PDFs that are produced by gscan2pdf 0.9.27 (9.04 Jaunty) which contain one page-filling JPG per page. I attach here a Testscan.pdf of one empty paper. (BTW: I use i386 packages)

With xpdf-utils 3.02-1.4ubuntu1, I get what I expect:
$ pdfimages -j Testscan.pdf xpdf-image
$ file xpdf-image-000.jpg
xpdf-image-000.jpg: JPEG image data, JFIF standard 1.01, comment: " SANE data follows"
$ ls -l xpdf-image-000.jpg
-rw-r--r-- 1 oliver oliver 16634 2009-01-23 09:52 xpdf-image-000.jpg

With poppler-utils 0.10.3-0ubuntu1, I get:
$ pdfimages -j Testscan.pdf poppler-image
$ file poppler-image-000.ppm
poppler-image-000.ppm: Netpbm PPM "rawbits" image data
$ ls -l poppler-image-000.ppm
-rw-r--r-- 1 oliver oliver 6524897 2009-01-23 09:53 poppler-image-000.ppm"

Pdf file:

http://launchpadlibrarian.net/21557296/Testscan.pdf

Thanks you,

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Will be fixed in next poppler release.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

right it generates a ppm image here as well with jaunty, will forward upstream, thanks in advance.

Changed in poppler:
status: Incomplete → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

I've sent this upstream at: http://bugs.freedesktop.org/show_bug.cgi?id=19789 ; thanks for reporting.

Changed in poppler:
importance: Undecided → Unknown
status: New → Unknown
status: Confirmed → Triaged
Changed in poppler:
status: Unknown → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

this has been fixed upstream now, thanks for reporting.

Changed in poppler:
status: Triaged → Fix Committed
Changed in poppler:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the new version is in jaunty now

Changed in poppler:
status: Fix Committed → Fix Released
Changed in poppler:
importance: Unknown → Medium
Changed in poppler:
importance: Medium → Unknown
Changed in poppler:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.