I am hoping someone here can give me a hint about this error. I am not really sure this is latex problem, but part of the software that I am using to process the latex document.
The setup is very simple. one eps file of a plot created from Mathematica software and then exported to eps.
One tex file that includes this graphics file. I want to make HTML of this using htlatex.
The eps file is valid, in the sense that I can open it using many apps and view it. gsview, etc..
I can run latex fine on it, and looking at the file .ps file, the image is there. pdflatex also work. Image is in the final pdf file.
htlatex foo.tex gives this error, in dvipng processing
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
System call: dvipng -T tight -x 1400 -D 72 -bg Transparent -pp 1:1 foo.idv
This is dvipng 1.14 Copyright 2002-2010 Jan-Ake Larsson
dvipng warning: DVI magnification of 1000 over-ridden by user (1400)
GPL Ghostscript 9.06: Unrecoverable error, exit code 1
--- Warning --- System return: 36096
So, I am not sure why this error happens on this one .eps file generated by Mathematica.
Other eps files work with no problem with htlatex. I mean other eps files generated by other apps. Only the images exported by Mathematica to eps seem to give htlatex a problem.
Is it possible the type of eps file generated by Mathematica is not supported by dvipng?
Is this a problem with dvipng or with Mathematica not generating eps files with the right format? But then why I can open the eps file just fine with other applications?
I have put the above tex file and the .eps file in this folder at my site if someone would like to give it a try http://12000.org/tmp/v6/
When I open the eps file using text editor, it looks a little strange, as it seems to have some non-ascii chars in it,in the first line. But this is how it was generated. Here is a screen shot of top of the eps file.
The question is: What is the cause of this error from dvipng?