Skip to content

Commit

Permalink
Set install_plots to use ImageMagick directly
Browse files Browse the repository at this point in the history
Call out ImageMagick "convert" directly instead of using ps2any.  It
looks like the ghostscript device driver on CentOS6 is different from
CentOS5 and is producing unexpected results.  Applying the "-flatten"
operator in in convert in install_plots.pl appears to be a useful
temporary fix until we decide if ps2any should have the "-flatten"
flag added as well.
  • Loading branch information
jeanconn committed Sep 17, 2013
1 parent 1aed454 commit 3e096b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install_plots.pl
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
io($ASTROMON_WWW)->mkpath;

foreach my $det (qw(ACIS-S ACIS-I HRC-S HRC-I)) {
run("ps2any -size 475 -rotate 90 " .
"offsets-${det}.ps $ASTROMON_WWW/offsets-${det}.gif");
run("ps2any -size 400 -rotate 90 " .
"offsets-${det}-hist.ps $ASTROMON_WWW/offsets-${det}-hist.gif");
run("convert -quality 95 -density 300x300 -geometry 475 -normalize -sharpen 0 "
. " -rotate 90 -flatten offsets-${det}.ps $ASTROMON_WWW/offsets-${det}.gif");
run("convert -quality 95 -density 300x300 -geometry 400 -normalize -sharpen 0 "
. " -rotate 90 -flatten offsets-${det}-hist.ps $ASTROMON_WWW/offsets-${det}-hist.gif");
}

0 comments on commit 3e096b0

Please sign in to comment.