Package: imagemagick-6.q16
Version: 8:6.9.11.60+dfsg-1.6+deb12u2
For some (not all) PDF files, the bug occurs when by running `convert` on it 
and compressing it with JPEG2000:
$ ls -la input_file.pdf | cut -d' ' -f5
78192505
$ convert input_file.pdf -compress JPEG2000 -quality 50 output_file.pdf
convert: ../../magick/string.c:1186: GetStringInfoDatum: Assertion 
`string_info->signature == MagickCoreSignature' failed.
Abgebrochen
$ ls -la output_file.pdf | cut -d' ' -f5
1949696
$ pdfinfo output_file.pdf
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table
If I switch the local to en_US.utf8, the error message becomes “convert: 
../../magick/string.c:1186: GetStringInfoDatum: Assertion 
`string_info->signature == MagickCoreSignature' failed.”  The output file is 
broken and can be viewed with neither evince nor okular.
Unfortunately, I cannot disclose the input file itself, but it was created, if 
my memory serves me right, with `convert out1.pnm … out11.pnm -compress Zip 
-quality 100 input_file.pdf` from 11 PNM files (one file for each page), and 
here is its metadata:
$ pdfinfo input_file.pdf
Custom Metadata: no
Metadata Stream: no
Tagged:          no
UserProperties:  no
Suspects:        no
Form:            none
JavaScript:      no
Pages:           11
Encrypted:       no
Page size:       2480 x 3507 pts
Page rot:        0
File size:       78192505 bytes
Optimized:       no
PDF version:     1.7

Reply via email to