hi,

if there are no comments i would like to commit the following attachment,
see bug http://bugzilla.lyx.org/show_bug.cgi?id=4749

pavel
diff --git a/lib/scripts/convertDefault.py b/lib/scripts/convertDefault.py
index 1806b2e..54e4f21 100644
--- a/lib/scripts/convertDefault.py
+++ b/lib/scripts/convertDefault.py
@@ -29,6 +29,11 @@ if sys.argv[1][:4] == 'pdf:':
     if not 'unrecognized' in output.lower():
         opts = defopt + ' ' + opts
 
+# for ppm target formats, we need to flatten image, as ppm has no support
+# for alpha channel, see bug 4749
+if sys.argv[2][:4] == 'ppm:':
+    opts = opts + ' -flatten'
+
 if os.system(r'convert %s "%s" "%s"' % (opts, sys.argv[1], sys.argv[2])) != 0:
     print >> sys.stderr, sys.argv[0], 'ERROR'
     print >> sys.stderr, 'Execution of "convert" failed.'

Reply via email to