mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] gnuplot blurry low-res preview


Chronological Thread 
  • From: Sam Liddicott <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] gnuplot blurry low-res preview
  • Date: Tue, 4 Sep 2012 20:58:06 +0100

Thanks Philippe - much appreciated

Sam

On Tue, Sep 4, 2012 at 6:14 PM, <address@hidden> wrote:
Dear Sam,

The problem comes from the use of ImageMagick's "convert" command that was introduced in gs_utilities.cpp in svn rev 4522. I guess suppressing the blurr is a matter of giving better options to convert (like perhaps -density in addition to -geometry), but haven't investigated that yet.
You can revert to a crisp output by the following patch:

###################
Index: src/Plugins/Ghostscript/gs_utilities.cpp
===================================================================
--- src/Plugins/Ghostscript/gs_utilities.cpp    (révision 5232)
+++ src/Plugins/Ghostscript/gs_utilities.cpp    (copie de travail)
@@ -102,14 +102,14 @@

void
gs_to_png (url image, url png, int w, int h) {
-  if (use_converts (image)) {
+/*  if (use_converts (image)) {
    string cmd= "convert ";
    cmd << "-geometry " << as_string (w) << "x" << as_string (h) << "! ";     cmd << sys_concretize (image) << " ";
    cmd << sys_concretize (png);
    system (cmd);
  }
-  else {
+  else {*/
    string cmd= gs_prefix ();
    cmd << "-dQUIET -dNOPAUSE -dBATCH -dSAFER ";
    cmd << "-sDEVICE=png16m -dGraphicsAlphaBits=4 -dEPSCrop ";
@@ -123,7 +123,7 @@
    cmd << "-sOutputFile=" << sys_concretize (png) << " ";
    cmd << sys_concretize (image);
    system (cmd);
-  }
+//  }
}

void
###################

Best,
Philippe





Archive powered by MHonArc 2.6.19.

Top of page