Subject: mailing-list for TeXmacs Users
List archive
From : address@hidden- To: address@hidden
- Subject: Re: [TeXmacs] gnuplot blurry low-res preview
- Date: Tue, 04 Sep 2012 19:14:40 +0200
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
- [TeXmacs] gnuplot blurry low-res preview, Sam Liddicott, 09/04/2012
- Re: [TeXmacs] gnuplot blurry low-res preview, Chris Austin, 09/04/2012
- Message not available
- Re: [TeXmacs] gnuplot blurry low-res preview, texmacs . 5 . pjoyez, 09/04/2012
- Re: [TeXmacs] gnuplot blurry low-res preview, Sam Liddicott, 09/04/2012
- Re: [TeXmacs] gnuplot blurry low-res preview, Sam Liddicott, 09/05/2012
- Re: [TeXmacs] gnuplot blurry low-res preview, texmacs . 5 . pjoyez, 09/04/2012
- Message not available
- Re: [TeXmacs] gnuplot blurry low-res preview, Chris Austin, 09/04/2012
Archive powered by MHonArc 2.6.19.