At 11:01 PM 2/10/2006 -0500, David Harvey wrote:
>
>On Feb 10, 2006, at 10:41 PM, Glenn Randers-Pehrson wrote:
>
>> At 09:59 PM 2/10/2006 -0500, David Harvey wrote:
>>> OK, the attachment didn't work, so here are the files:
>>>
>>> http://blahtex.org/magick/integral.ps
>>> http://blahtex.org/magick/integral.png
>>
>> The conversion seems to be correct.  The bounding box in the original
>> PostScript file is too narrow.  Here is the result of increasing
>> the right side of the bounding box a little (from 137 to 141):
>>
>> http://www.simplesystems.org/users/glennrp/png_bugs/integral1.ps
>> http://www.simplesystems.org/users/glennrp/png_bugs/integral1.png
>>
>> Glenn
>
>Hmmm..... does this mean there's a bug in dvips (which is being used  
>to generate the PS file from TeX's output)?

So it seems.

>
>If so, is there a simple way to fix the bounding box before  
>imagemagick gets called?

You can write a program to read the PostScript as a text file,
locate the Bounding Box line and add a few columns to the right
side of the box.  I just used a text editor but you don't want
to do that if you are going to be repeating the process many
times.  Perl is a nice tool for such jobs if you know Perl.

>Or do I need to fix dvips instead? :-)

Someone does.  Not me...

>
>Unfortunately I know almost nothing about PS files.

Fortunately they are simple text files and the "Bounding Box"
is easiliy located near the top.

Glenn

_______________________________________________
Magick-bugs mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-bugs

Reply via email to