Re: Transparent Background

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Mar 28 2012 - 10:17:41 MDT

Yes ... ImageMagick did chane something. Try

convert -flatten -trim +repage -density 150 -background white genisis.ps
genisis.png

Good Luck

On 3/28/12 10:08 AM, Carl Schreck wrote:
> I recently had to upgrade imageMagick to the latest version, and I've
> been having some strange results converting NCL-made eps files to png.
> See the attached file. It looks almost ok, but the background is
> transparent instead of white. It doesn't show up in this example, but if
> I had done shaded contours, that shading would be white. Anything
> outside of the plot would still be transparent though.
>
> This could probably be addressed on either the NCL side or the
> imageMagick side, but I'm stumped on both sides. Any suggestions?
>
> I am using imageMagick 6.7.6 and NCL 6.0.0. I do the conversion as
> "convert -trim +repage -density 150 genesis.eps genesis.png"
>
> My .hluresfile has these lines:
> ! White background/black foreground
> *wkForegroundColor : (/0.,0.,0./)
> *wkBackgroundColor : (/1.,1.,1./)
>
> Thanks!
> Carl
>
> --
> Carl J. Schreck III, PhD
> Postdoctoral Research Associate
> Cooperative Institute for Climate and Satellites (CICS-NC)
> North Carolina State University and NOAA's National Climatic Data Center
> 151 Patton Avenue
> Asheville, NC 28801
> Tel: 828-257-3140
> carl@cicsnc.org <mailto:carl@cicsnc.org>
> http://monitor.cicsnc.org/mjo/
> http://www.atmos.albany.edu/student/carl/
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 28 10:17:53 2012

This archive was generated by hypermail 2.1.8 : Mon Apr 09 2012 - 13:43:03 MDT