Discussion:
dvipng error HELP
Neal Mayer
2021-05-07 00:16:09 UTC
Permalink
Dear Sirs,

I just downloaded the MiKTeX package for my Windows 10 computer. I have created a .tex file and compiled it with the command line "latex ex.tex". That worked just fine.

I then wanted to convert that to a .png so I used the command "dvipng -bg Transparent -fg white ex.dvi"

I received this error message - "dvipng warning: unimplemented color specification 'white' [1 <raw PostScriptdvipng warning: No image output from inclusion of raw PostScript >]"

I am not sure I am concerned about the PostScript warning; but what has be concerned is the "unimplemented color specification" warning.

I tried "-fg white", "-fg rgb 1.0 1.0 1.0", "-fg cmy 1.0 1.0 1.0", etc. No color specifications work. I have read the documentation including the section on color and found examples given in the documentation; but nothing works.

My guess is there is something missing from the MiKTeX package installation; but I have no idea what or how to fix it.

Can you help? Please.

Thank you very much,
Neal Mayer
Townsville, Queensland, Australia
Jan-Åke Larsson
2021-06-04 11:51:02 UTC
Permalink
Dear Neal,
The color 'white' is not defined unless your dvi loads a color package.
Enclose your verbatim color spec in quotes to make one argument to
dvipng, otherwise it will read the color as 'rgb'. For example
./dvipng -fg 'rgb 1.0 1.0 1.0' test_dvipng.dvi
Best regards
Jan-Åke
Post by Neal Mayer
Dear Sirs,
I just downloaded the MiKTeX package for my Windows 10 computer. I
have created a .tex file and compiled it with the command line “latex
ex.tex”. That worked just fine.
I then wanted to convert that to a .png so I used the command “dvipng
-bg Transparent -fg white ex.dvi"
I received this error message – “dvipng warning: unimplemented color
specification 'white' [1 <raw PostScriptdvipng warning: No image
output from inclusion of raw PostScript >]”
I am not sure I am concerned about the PostScript warning; but what
has be concerned is the “unimplemented color specification” warning.
I tried “-fg white”, “-fg rgb 1.0 1.0 1.0”, “-fg cmy 1.0 1.0 1.0”,
etc. No color specifications work. I have read the documentation
including the section on color and found examples given in the
documentation; but nothing
works.
My guess is there is something missing from the MiKTeX package
installation; but I have no idea what or how to fix it.
Can you help? Please.
Thank you very much,
Neal Mayer
Townsville, Queensland, Australia
Jan-Åke Larsson
2021-06-04 12:00:06 UTC
Permalink
Dear Neal,
I remember now: "Black" and "White" are defined, hard coded in the
program. Use that.
/JÅ
Post by Jan-Åke Larsson
Dear Neal,
The color 'white' is not defined unless your dvi loads a color
package.
Enclose your verbatim color spec in quotes to make one argument to
dvipng, otherwise it will read the color as 'rgb'. For example
./dvipng -fg 'rgb 1.0 1.0 1.0' test_dvipng.dvi
Best regards
Jan-Åke
Post by Neal Mayer
Dear Sirs,
I just downloaded the MiKTeX package for my Windows 10 computer. I
have created a .tex file and compiled it with the command line
“latex ex.tex”. That worked just fine.
I then wanted to convert that to a .png so I used the command
“dvipng -bg Transparent -fg white ex.dvi"
I received this error message – “dvipng warning: unimplemented
color specification 'white' [1 <raw PostScriptdvipng warning: No
image output from inclusion of raw PostScript >]”
I am not sure I am concerned about the PostScript warning; but what
has be concerned is the “unimplemented color specification” warning.
I tried “-fg white”, “-fg rgb 1.0 1.0 1.0”, “-fg cmy 1.0 1.0 1.0”,
etc. No color specifications work. I have read the documentation
including the section on color and found examples given in the
documentation; but nothing
works.
My guess is there is something missing from the MiKTeX package
installation; but I have no idea what or how to fix it.
Can you help? Please.
Thank you very much,
Neal Mayer
Townsville, Queensland, Australia
Loading...