The fix for this is quite simple: call ImageMagick with an additional parameter.

The parameter only has an effect when at least mageMagick 6.2.6-4 is installed, for older versions it does nothing and keeps the current situation.

The fix is included in my win builds for ten months now, so thousands of users tested it without problems.
Can you please test it on Linux as well?
A test PDF-file is attached in bug 2418:
http://bugzilla.lyx.org/show_bug.cgi?id=2418

As the ImageMagick option was build especially for us, we should use it. And personally this was one of the most annoying bugs since I use PDF-images in all of my documents and then my documents consists of huge A4-sized whitespace monsters that totally destroys the layout.

Note this doesn't change the output result as the problem is only the display 
of PDF-images within LyX.

thanks and regards
Uwe
Index: convertDefault.py
===================================================================
--- convertDefault.py	(revision 16655)
+++ convertDefault.py	(working copy)
@@ -18,7 +18,7 @@
 
 # converts an image from $1 to $2 format
 import os, sys
-if os.system(r'convert -depth 8 "%s" "%s"' % (sys.argv[1], sys.argv[2])) != 0:
+if os.system(r'convert -define pdf:use-cropbox=true -depth 8 "%s" "%s"' % (sys.argv[1], sys.argv[2])) != 0:
     print >> sys.stderr, sys.argv[0], 'ERROR'
     print >> sys.stderr, 'Execution of "convert" failed.'
     sys.exit(1)

Reply via email to