Window decorations missing randomly from displayed images

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
chandra
Posts: 5
Joined: 2012-05-02T21:05:01-07:00
Authentication code: 13

Window decorations missing randomly from displayed images

Post by chandra »

I am using Kubuntu 12.04 with imagemagick 8:6.6.9.7-5ubuntu3.1 on an amd64 machine.

I generate PDFs processed by (xe|lua)latex and convert the generated PDF into PNG using convert. When I display the images, on occasion, the window borders are missing.

In one case, I just changed a single line in my source .tex file to alter the length of a line from 4 to 5 cm. Of the resulting images, the one with 5 cm displays with window decorations; the one with 4 cm does not.

The images are Image and Image

If that does not show here are the URLs:

http://www.mediafire.com/i/?o7ena14d262ctl4
http://www.mediafire.com/?gdfdthc4grx6vzh

Can anyone shed light on this anomalous behaviour and advise:

(a) how to avoid it; and
(b) whether the images themselves ar OK regardless of how they appear.

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

Re: Window decorations missing randomly from displayed image

Post by fmw42 »

This post, I believe, should be moved to the Bugs forum, not the Wizard's bug forum, which is something else from the general question asked here.

Nevertheless, lease post your exact command line and the input pdf image as well as the output images, so that we know exactly what you were doing and can try to replicate the problem.

Is this an intermittent problem that occurs on the same input PDF or does vary from PDF to PDF?
chandra
Posts: 5
Joined: 2012-05-02T21:05:01-07:00
Authentication code: 13

Re: Window decorations missing randomly from displayed image

Post by chandra »

The exact command lines are

Code: Select all

lualatex cross-product-4.tex
convert cross-product-4.pdf cross-product-4.png
and

Code: Select all

lualatex cross-product-5.tex
convert cross-product-5.pdf cross-product-5.png
The difference between the .tex files is simply that one line length is changed from 4 cm to 5 cm in the code TikZ/PGF code below:

Code: Select all

\draw [->, color=DarkGreen] (0, 0) -- (90:4 cm) node [pos=0.85, left] {$\mathbf{w}$};
to

Code: Select all

\draw [->, color=DarkGreen] (0, 0) -- (90:5 cm) node [pos=0.85, left] {$\mathbf{w}$};
The source .tex files might not be as useful as the PDFs in tracking this problem down and I will post them if necessary.

The resulting PDFs are different as are the PNGs.

The problem occurs intermittently with PDFs converted to PNGs and I stumbled upon the length change as a factor while trying to figure out what was going on.

Please move this query to bugs if it is more appropriate and my apologies. It is many years since I posted to this group. Would I be kept informed of teh new link in the new forum?

Thanks.
chandra
Posts: 5
Joined: 2012-05-02T21:05:01-07:00
Authentication code: 13

Re: Window decorations missing randomly from displayed image

Post by chandra »

The two PDFs are available at http://www.mediafire.com/?w109pmart6zwz ... liec778cby.

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

Re: Window decorations missing randomly from displayed image

Post by fmw42 »

chandra wrote:The two PDFs are available at http://www.mediafire.com/?w109pmart6zwz ... liec778cby.

Thanks.
I downloaded both of your PDF files. Neither has any Windows decoration. They both convert to png looking just like the PDF.

Please check your downloads.
chandra
Posts: 5
Joined: 2012-05-02T21:05:01-07:00
Authentication code: 13

Re: Window decorations missing randomly from displayed image

Post by chandra »

I am sorry for being unclear.

Once I convert the PDF to PNG using ImageMagick's convert function and then display the the PNG using ImageMagick's display function, one of the images appears without window decorations like title bar etc., while the other appears normally with title bar etc. on my system.

I have never had the IM display function ever losing its window decorations. I then lose the ability to move the window etc. It is this issue that I am referring to.

Why should two images that were produced by substantially the same toolchain be shown so differently by IM display?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Window decorations missing randomly from displayed image

Post by fmw42 »

They display exactly the same on my IM 6.7.6.9beta Q16 Mac OSX Snow Leopard. Both have the x11 window title.
chandra
Posts: 5
Joined: 2012-05-02T21:05:01-07:00
Authentication code: 13

Re: Window decorations missing randomly from displayed image

Post by chandra »

Thank you for that confirmation.

It appears that something on my machine needs to be fixed or changed.

I have already re-installed IM and am wondering what other packages need re-installation assuming that something got changed but is not being detected by the package managers.
Post Reply