[Rivet-svn] r2775 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri Nov 26 21:23:19 GMT 2010


Author: buckley
Date: Fri Nov 26 21:23:19 2010
New Revision: 2775

Log:
Higher-resolution PNGs

Modified:
   trunk/bin/make-plots

Modified: trunk/bin/make-plots
==============================================================================
--- trunk/bin/make-plots	Fri Nov 26 21:02:42 2010	(r2774)
+++ trunk/bin/make-plots	Fri Nov 26 21:23:19 2010	(r2775)
@@ -1693,7 +1693,7 @@
             dvcmd.append("-f")
             logging.debug(" ".join(dvcmd))
             dvproc = subprocess.Popen(dvcmd, stdout=subprocess.PIPE, cwd=tempdir)
-            pngcmd = ["convert", "-density", "250", "-flatten", "-", "%s.png" % filename]
+            pngcmd = ["convert", "-density", "300", "-flatten", "-", "%s.png" % filename]
             logging.debug(" ".join(pngcmd))
             pngproc = subprocess.Popen(pngcmd, stdin=dvproc.stdout, stdout=subprocess.PIPE, cwd=tempdir)
             pngproc.wait()
@@ -1707,7 +1707,7 @@
             if testconvert.wait() != 0:
                 convertavailable = False
             if convertavailable:
-                pngcmd = ["convert", "-density", "100", "-flatten", "%s.ps" % filename, "%s.png" % filename]
+                pngcmd = ["convert", "-density", "120", "-flatten", "%s.ps" % filename, "%s.png" % filename]
                 logging.debug(" ".join(pngcmd))
                 pngproc = subprocess.Popen(pngcmd, stdout=subprocess.PIPE, cwd=tempdir)
                 pngproc.wait()
@@ -1725,7 +1725,7 @@
             f.write(cnvproc.communicate()[0])
             f.close()
             logging.debug(os.listdir(tempdir))
-            pngcmd = ["convert", "-density", "100", "-flatten", "%s.pdf" % filename, "%s.png" % filename]
+            pngcmd = ["convert", "-density", "120", "-flatten", "%s.pdf" % filename, "%s.png" % filename]
             logging.debug(" ".join(pngcmd))
             pngproc = subprocess.Popen(pngcmd, stdout=subprocess.PIPE, cwd=tempdir)
             pngproc.wait()
@@ -1737,7 +1737,7 @@
             f = open(os.path.join(tempdir, "%s.eps" % filename), "w")
             f.write(cnvproc.communicate()[0])
             f.close()
-            pngcmd = ["convert", "-density", "100", "-flatten", "%s.eps" % filename, "%s.png" % filename]
+            pngcmd = ["convert", "-density", "120", "-flatten", "%s.eps" % filename, "%s.png" % filename]
             logging.debug(" ".join(pngcmd))
             pngproc = subprocess.Popen(pngcmd, stdout=subprocess.PIPE, cwd=tempdir)
             pngproc.wait()


More information about the Rivet-svn mailing list