>From 16078b916bbabc83562ef9c63a679bf4298957a8 Mon Sep 17 00:00:00 2001 From: Sam Liddicott Date: Fri, 13 May 2011 09:53:09 +0100 Subject: [PATCH] Disable qt_image_to_eps and gs_to_eps in image_to_eps This patch is required when ghost-script 9 is installed. qt_image_to_eps is broken and results in non-conformant .ps exports unless gs_to_eps is used. gs_to_eps is broken in gs 9 by design. see: http://bugs.ghostscript.com/show_bug.cgi?id=691914 The solution would be to use the eps2write device instead of epswrite device, however that device isn;t implemented yet and qt_image_to_eps should produce decent .eps files like imagemagick's "convert" does. This patch forces fall-back to imagemagick's convert. An alternative would be to move the convert script to the top of image_to_eps so that those without imagemagick would at least get something but as that results in 20x size .pdf files I think that is a bad idea. Signed-off-by: Sam Liddicott --- src/src/System/Files/image_files.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/plugins/asymptote/bin/perl-tm_asy diff --git a/src/plugins/asymptote/bin/perl-tm_asy b/src/plugins/asymptote/bin/perl-tm_asy old mode 100644 new mode 100755 diff --git a/src/src/System/Files/image_files.cpp b/src/src/System/Files/image_files.cpp index 5ff257e..0640469 100644 --- a/src/src/System/Files/image_files.cpp +++ b/src/src/System/Files/image_files.cpp @@ -269,13 +269,13 @@ image_to_eps (url image, url eps, int w_pt, int h_pt, int dpi) { /* if ((suffix (eps) != "eps") && (suffix (eps) != "ps")) { cerr << "TeXmacs] warning: " << concretize (eps) << " has no .eps or .ps suffix\n"; }*/ -#ifdef QTTEXMACS +#ifdef QTTEXMACS_when_it_produces_conformat_eps_files if (qt_supports (image)) { qt_image_to_eps (image, eps, w_pt, h_pt, dpi); return; } #endif -#ifdef USE_GS +#ifdef USE_GS_when_it_preserves_the_bitmap_nature if (gs_supports (image)) { gs_to_eps (image, eps); return; -- 1.7.4.1