snibgo wrote: ↑2017-05-02T04:07:51-07:00
By "reproducible" I mean by other people. If no-one can reproduce your problem, they can't fix it.
I suppose I can only share my personal experience and frequency when reproducing this issue.
Here's a formal write up for others to try. It's not much more complex than what I've mentioned in the OP:
Environment
Code: Select all
$ convert --version
Version: ImageMagick 7.0.5-5 Q16 x86_64 2017-04-25 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib
$
$ which gs
/usr/local/bin/gs
$ /usr/local/bin/gs --version
9.21
Example Images Used
https://drive.google.com/file/d/0Bx20O2 ... zhpd2RJbWM
Steps to reproduce
- Put the jpgs into a directory
- cd to the directory
- Run:
Expected Result
convert creates a pdf document named Example.pdf in the same directory. It should contain X pages where each page corresponds to a passed in jpg that was matched by the "*.jpg" argument. The document should be viewable in a pdf reader.
Actual Result
The pdf document is created, but it cannot be opened by the Preview app. Attempting to do so yields an error message: 'The file “Example.pdf” could not be opened. It may be damaged or use a file format that Preview doesn’t recognize.'
It can be opened, however, by the Adobe Reader app but there are several blank pages.
Here's some output from the jhove validation tool I mentioned in my OP:
Code: Select all
$ jhove -m pdf-hul Example.pdf
Jhove (Rel. 1.16.6, 2017-04-27)
Date: 2017-05-02 08:39:43 EDT
RepresentationInformation: Example.pdf
ReportingModule: PDF-hul, Rel. 1.8 (2017-03-14)
LastModified: 2017-05-02 08:39:03 EDT
Size: 3640291
Format: PDF
Version: 1.3
Status: Well-Formed, but not valid
SignatureMatches:
PDF-hul
ErrorMessage: Invalid page tree node
Offset: 1779234
MIMEtype: application/pdf
PDFMetadata:
Objects: 118
FreeObjects: 1
IncrementalUpdates: 0
DocumentCatalog:
PageLayout: SinglePage
PageMode: UseNone
Info:
Title: Example
Producer: /usr/local/Cellar/imagemagick/7.0.5-5/share/doc/ImageMagick-7//index.html
CreationDate: Tue May 02 08:39:03 EDT 2017
ModDate: Tue May 02 08:39:03 EDT 2017
ID: 0xb7539159b1a1e74cfd5e38ebde538b4a9caa08e091b6e318b7b4264f57747113, 0xb7539159b1a1e74cfd5e38ebde538b4a9caa08e091b6e318b7b4264f57747113
Filters:
FilterPipeline: DCTDecode
Images:
Image:
NisoImageMetadata:
CompressionScheme: JPEG
ImageWidth: 736
ImageHeight: 1091
BitsPerSample: 8
BitsPerSampleUnit: integer
Name: Im0
Image:
NisoImageMetadata:
CompressionScheme: JPEG
ImageWidth: 1057
ImageHeight: 1500
BitsPerSample: 8
BitsPerSampleUnit: integer
Name: Im1
Image:
NisoImageMetadata:
CompressionScheme: JPEG
ImageWidth: 1584
ImageHeight: 2129
BitsPerSample: 8
BitsPerSampleUnit: integer
Name: Im2
Image:
NisoImageMetadata:
CompressionScheme: JPEG
ImageWidth: 1000
ImageHeight: 1409
BitsPerSample: 8
BitsPerSampleUnit: integer
Name: Im3
Pages:
Page:
Sequence: 1
Thumb: true
Page:
Sequence: 2
Thumb: true
Page:
Sequence: 3
Thumb: true
Page:
Sequence: 4
Thumb: true
The main points I see from jhove's output is that the Example.pdf is "Well-Formed, but not valid" and the error given is "Invalid page tree node". Maybe there's more but I don't know everything I'm looking for there.
Maybe it's flat out broken, but I'm guessing it's more related to my environment.
I don't have a huge knowledge of the ImageMagick space or even general image processing so for those who do, please request more specific information.