Re: eps files

From: Fred Clare <fred_at_nyahnyahspammersnyahnyah>
Date: Tue, 3 Apr 2007 22:41:21 -0600

On Apr 3, 2007, at 8:03 PM, Mateus da Silva Teixeira wrote:

Mateus,

> Fred Clare escreveu:
>>
>> On Apr 3, 2007, at 7:39 PM, Mateus da Silva Teixeira wrote:
>>
>>> Dear NCL users,
>>>
>>> The Mini Graphics Manual says that EPS workstation contains a
>>> bounding box.
>>> However, when I generate an EPS file and try to convert it to
>>> PNG, this tool gives an error message:
>>>
>>> $ eps2png -png -output teste.png boxplotGrupos.eps
>>> No bounding box in boxplotGrupos.eps
>>> -g must be followed by <width>x<height>
>>> Problem creating teste.png for boxplotGrupos.eps
>>>
>>> And any PNG file is created.
>>> Is the Graphics Manual wrong? Or am I doing something wrong?
>>
>> You should be getting a bounding box. Are you using
>> gsn_open_wks with a first argument of "eps?"
>
> Yes, I'm using 'eps' as the first argument of gsn_open_wks!

I just ran an example that uses "eps" and indeed the output
PostScript contained a bounding box. Could you please send
me your output file? Also, what version of NCL are you using?
If your source is fairly simple, it might be helpful for me to have
that too.

Fred Clare

>> Currently the recommended way to do this is to create a
>> regular .ps file, then use "ps2epsi" to generate the eps
>> file, and then use "convert" on that.
>
> Ok! I also use 'convert' to directly convert the EPS file to PNG.
> But I wanted to know why eps2png gives this error, since the manual
> says that there is a bounding box!
>
>>
>> We have an *experimental* png driver that may work for you
>> (it uses the X11 rasterizer). To give it a try, use "png" as the
>> first argument to gsn_open_wks. This driver is not currently
>> supported, so use are your own risk.
>
> It would be good having such a driver in the future.
> I used 'png' as argument for gsn_open_wks now, but the result is bad.
> The quality of the graphic is poor!
>
> Thanks
> Mateus
>
>
>>
>> Fred Clare
>>
>>
>>>
>>> Thanks
>>> Mateus
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk_at_ucar.edu
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 03 2007 - 22:41:21 MDT

This archive was generated by hypermail 2.2.0 : Wed Apr 11 2007 - 08:36:47 MDT