Invisible insert

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
LLyaudet
Posts: 4
Joined: 2016-10-04T08:53:13-07:00
Authentication code: 1151

Invisible insert

Post by LLyaudet » 2016-10-04T09:02:36-07:00

Hi,

We use daily Image Magick to insert bmp image in pdf file.
Most of the time it works fine but sometimes the inserted image is invisible in the pdf result.
Steps to reproduce :
- use the following command :
convert -density 144 Teliway_tournee_3_2336026.pdf SIG_91371134021020520001_20160930085609.bmp -geometry 240x136+860+270 -composite -compress Zip resultat.pdf

with the two files I will try to attach to this message.

Best regards,
Laurent Lyaudet

LLyaudet
Posts: 4
Joined: 2016-10-04T08:53:13-07:00
Authentication code: 1151

Re: Invisible insert

Post by LLyaudet » 2016-10-04T09:04:50-07:00

It seems I cannot add the pdf file and the bmp file to the topic.
You can mail me at : llyaudet_TA_teliae.fr and I'll send the files to anybody willing to reproduce this bug.

Best regards,
Laurent Lyaudet

User avatar
fmw42
Posts: 25274
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Invisible insert

Post by fmw42 » 2016-10-04T09:09:04-07:00

You can post your images to some place such as dropbox.com and put the URLs here. This forum does not allow direct uploads.

LLyaudet
Posts: 4
Joined: 2016-10-04T08:53:13-07:00
Authentication code: 1151

Re: Invisible insert

Post by LLyaudet » 2016-10-04T09:38:25-07:00

Hi,

Thanks for the help.

Here is a dropbox link to access the files needed to reproduce the bug :
https://www.dropbox.com/sh/fu7p0q1gmg93 ... xALTa?dl=0

Note that dropbox display the bmp without showing its name.
The name of the bmp file is SIG_91371134021020520001_20160930085609.bmp

Best regards,
Laurent Lyaudet

User avatar
fmw42
Posts: 25274
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Invisible insert

Post by fmw42 » 2016-10-04T10:49:34-07:00

Your input pdf has two pages. With your command, you can only add the bmp to one page at a time. Try just using the first page of the pdf.

Code: Select all

convert -density 144 Teliway_tournee_3_2336026.pdf[0] SIG_91371134021020520001_20160930085609.bmp -geometry 240x136+860+270 -composite -compress Zip resultat.pdf

User avatar
fmw42
Posts: 25274
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Invisible insert

Post by fmw42 » 2016-10-04T13:32:41-07:00

If you want to add the bmp to the first page and still want to preserve the second page, then

Code: Select all

convert Teliway_tournee_3_2336026.pdf[0] -density 144  SIG_91371134021020520001_20160930085609.bmp \
-geometry 240x136+860+270 -composite Teliway_tournee_3_2336026.pdf[1] -compress Zip resultat.pdf
But note, I do not think PDF supports zip compress. When I review the results, the compression is unknown.

LLyaudet
Posts: 4
Joined: 2016-10-04T08:53:13-07:00
Authentication code: 1151

Re: Invisible insert

Post by LLyaudet » 2016-10-05T01:00:30-07:00

Hi,

Thank you very much.
I will use your solution.

Best regards,
Laurent Lyaudet

Post Reply