David Kastrup | 2 Aug 2004 02:25
Picon
Picon

CVS-1.213; dvipng -no-image-on-warn does not work


For the following type of error message

[101<diffspeed.1dvipng warning: Unable to convert ./diffspeed.1 to PNG, image will be left blank
><diffspeed.2dvipng warning: Unable to convert ./diffspeed.2 to PNG, image will be left blank
><diffspeed.3dvipng warning: Unable to convert ./diffspeed.3 to PNG, image will be left blank
>]

dvipng -no-image-on-warn will still produce image files.  Bad.  I want
to fall back on GhostScript in that case.

Emacs  : GNU Emacs 21.3.50.6 (i686-pc-linux-gnu, GTK+ Version 2.4.4)
 of 2004-07-29 on lola.goethe.zz
Package: CVS-1.213

current state:
==============

Output from running `gs -h':
GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
 -dNOPAUSE           no pause after page   | -q       `quiet', fewer messages
 -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch resolution
 -sDEVICE=<devname>  select device         | -dBATCH  exit after last file
 -sOutputFile=<file> select output file: - for stdout, |command for pipe,
                                         embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PDF
Default output device: display
(Continue reading)

Jan-Åke Larsson | 2 Aug 2004 15:37
Picon
Picon
Favicon

Re: CVS-1.213; dvipng -no-image-on-warn does not work

David Kastrup wrote:
> dvipng warning: Unable to convert ./diffspeed.1 to PNG, image will be left blank
> 
> dvipng -no-image-on-warn will still produce image files.  Bad.  I want
> to fall back on GhostScript in that case.

Agreed. Fix under way. BTW, is release-time control of
no-image-warnings enough (I presume that PostScript headers are OK to
ignore), or do you want fine-grain control at runtime?

/JÅ

--

-- 
The box said "Windows 95, Windows NT 4.0, or better", so I installed Linux. 

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Preview-latex-bugs mailing list
Preview-latex-bugs <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/preview-latex-bugs

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
(Continue reading)

David Kastrup | 2 Aug 2004 15:47
Picon
Picon

Re: CVS-1.213; dvipng -no-image-on-warn does not work

Jan-Åke Larsson <jalar <at> mai.liu.se> writes:

> David Kastrup wrote:

> > dvipng warning: Unable to convert ./diffspeed.1 to PNG, image will
> > be left blank dvipng -no-image-on-warn will still produce image
> > files.  Bad.  I want to fall back on GhostScript in that case.
> 
> Agreed. Fix under way. BTW, is release-time control of
> no-image-warnings enough (I presume that PostScript headers are OK to
> ignore), or do you want fine-grain control at runtime?

release-time control?  Uh what?  No idea what we are talking about
here.

I don't know whether dvipng can already call GhostScript on its own
for stuff like image inclusion or whatever.  If it can, I'd like an
option where it won't do so but leave the business of dealing with the
GhostScript executable to preview-latex (which is pretty good at
that).  It is ok if dvipng does things it completely understands (like
color specials) by itself without warning.

--

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
(Continue reading)

Jan-Åke Larsson | 2 Aug 2004 15:49
Picon
Picon
Favicon

dvipng and gif (dvigif)

Recently, gif-image writing has been made available in libgd (a patent
has expired). I can now easily add gif-writing possibilities to
dvipng. Basically a one-liner. Anyone interested?

/JÅ

--

-- 
I hope to die before I have to use Microsoft Word.
   Donald E. Knuth

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
Jan-Åke Larsson | 2 Aug 2004 16:00
Picon
Picon
Favicon

Re: CVS-1.213; dvipng -no-image-on-warn does not work

David Kastrup wrote:
> Jan-Åke Larsson <jalar <at> mai.liu.se> writes:
> > Agreed. Fix under way. BTW, is release-time control of
> > no-image-warnings enough (I presume that PostScript headers are OK to
> > ignore), or do you want fine-grain control at runtime?
> 
> release-time control?  Uh what?  No idea what we are talking about
> here.

Is it enough that we decide here, on the list, what messages/warnings
will make dvipng not output an image or do we need a more complicated
runtime choice for the _user_?

If discussion here is ok I'll leave it as --no-image-on-warn and
document it (finally).

> I don't know whether dvipng can already call GhostScript on its own
> for stuff like image inclusion or whatever. 

It can and does. What you got was a failure of that call.

> If it can, I'd like an
> option where it won't do so but leave the business of dealing with the
> GhostScript executable to preview-latex (which is pretty good at
> that).  It is ok if dvipng does things it completely understands (like
> color specials) by itself without warning.

Sure. --no-gs-calls ?
/JÅ

(Continue reading)

Jan-Åke Larsson | 2 Aug 2004 16:02
Picon
Picon
Favicon

Re: CVS-1.213; dvipng -no-image-on-warn does not work

Jan-Åke Larsson wrote:
> David Kastrup wrote:
> > dvipng warning: Unable to convert ./diffspeed.1 to PNG, image will be left blank
> > 
> > dvipng -no-image-on-warn will still produce image files.  Bad.  I want
> > to fall back on GhostScript in that case.
> 
> Agreed. Fix under way. 

Fixed.
/JÅ

--

-- 
*** Fatal Error: Found [MS-Windows] -> Repartitioning Disk for LiNUX...

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Preview-latex-bugs mailing list
Preview-latex-bugs <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/preview-latex-bugs

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
(Continue reading)

David Kastrup | 2 Aug 2004 16:03
Picon
Picon

Re: dvipng and gif (dvigif)

Jan-Åke Larsson <jalar <at> mai.liu.se> writes:

> Recently, gif-image writing has been made available in libgd (a
> patent has expired). I can now easily add gif-writing possibilities
> to dvipng. Basically a one-liner. Anyone interested?

Wrong list to ask this, I guess.  dvipng in preview-latex currently
has png hardwired as target format.  It would be easy enough to change
that (just replace a few instances of 'png with
preview-dvipng-image-type, and then customizing that as well as
preview-dvipng-command should do the trick), but I doubt that there
will be many people making use of it: png is quite available for
Emacs, and compact.

You'll probably find more dvipng users interested in the web
publishing area.

It will be more than a one-liner, though: you need to have an autoconf
test for it, and enable the option only when GIF writing is available.

Personally, I'd say you should do it: the more converters dvipng can
replace without thinking, the more mindshare and testers it will get.
Even though the name does not lead people to think more formats are
available.  But maybe it is just an acronym for Da Very Impressive
Pixel Noise Generator.

--

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

-------------------------------------------------------
(Continue reading)

Jan-Åke Larsson | 2 Aug 2004 16:18
Picon
Picon
Favicon

Re: dvipng and gif (dvigif)

David Kastrup wrote:
> Jan-Åke Larsson <jalar <at> mai.liu.se> writes:
> 
> > Recently, gif-image writing has been made available in libgd (a
> > patent has expired). I can now easily add gif-writing possibilities
> > to dvipng. Basically a one-liner. Anyone interested?
> 
> Wrong list to ask this, I guess.  

Mmm. Maybe it is time for a dvipng-devel list.

> It will be more than a one-liner, though: you need to have an autoconf
> test for it, and enable the option only when GIF writing is available.

Yep. I am also thinking about letting the output depend on what name
the executable is called under. But probably -gif and -png options are
approriate.

> maybe it is just an acronym for Da Very Impressive Pixel Noise
> Generator.

<wide grin>
/JÅ

--

-- 
Win95: What do you want to crash today?

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
(Continue reading)

David Kastrup | 3 Aug 2004 12:37
Picon
Picon

dvipng version in config.h?


I just noticed that the version info in config.h will not get updated
unless you rerun autoconf.  It is not even sufficient to rerun
configure after updating CVS.

Could this cause a Problem?

I don't know, really.

--

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
Jan-Åke Larsson | 3 Aug 2004 13:17
Picon
Picon
Favicon

Re: dvipng version in config.h?

David Kastrup wrote:
> I just noticed that the version info in config.h will not get updated
> unless you rerun autoconf.  It is not even sufficient to rerun
> configure after updating CVS.

The chain is like this: the developer puts versioning info in
configure.ac which gets put in configure by running 'autoconf'. This
info will be put in config.h by a call to ./configure. 

> Could this cause a Problem?

One just needs to make sure that the configure script is up to date at
release. 
/JÅ

--

-- 
Some people, when confronted with a problem, think "I know, I'll use
regular expressions." Now they have two problems.

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com

Gmane