Package: latex2html
Version: 2023-debian1-1
Severity: normal
X-Debbugs-Cc: hamish.webm...@gmail.com

Dear Maintainer,

Hi, the pstoimg program that comes with latex2html has changed behavior
and now defaults to SVG format instead of PNG. That would be ok but SVG
format is not supported! In addition PNG and GIF support fails making the
program completely unusable, but I'll file that as another bug.


Here is an example using a PostScript file taken from the texlive-latex-extra 
package:

PSFILE=/usr/share/texlive/texmf-dist/tex/latex/ha-prosper/Styles/TCS/TCSgradlogo.ps

# if you don't specifcy a format the new version now defaults to SVG apparently
$ pstoimg -o test.png $PSFILE
pstoimg V2023
pstoimg: Processing .../Styles/TCS/TCSgradlogo.ps
pstoimg: Error: unknown image type "svg".


# if we explicity tell it to make a PNG or GIF
$ pstoimg -type png -o test.png $PSFILE
### pnmcolormap/pnmquant fail, but that's another bug.


# SVG doesn't work even if you try-
$ pstoimg -type svg -o test.svg $PSFILE
pstoimg V2023
pstoimg: Processing 
/usr/share/texlive/texmf-dist/tex/latex/ha-prosper/Styles/TCS/TCSgradlogo.ps
pstoimg: Error: unknown image type "svg".


It seems that SVG support never got past aspirational feature enhancement
stage in the man page and being set as the program default?
And perhaps it is a better strategy that new features not start out as the
default, but as optional?


- workaround: ImageMagick's `convert` creates very similar output to earlier
versions of pstoimg (both are using Ghostscript) but according to the pstoimg
man page that isn't as efficient. `pstoedit` might be another option if you
want to convert to SVG.


The SVG default is easily edited out on lines 286 and 732 of /usr/bin/pstoimg
for what it's worth to end users out there.


thanks,
Hamish


-- System Information:
Debian Release: 12.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-23-amd64 (SMP w/24 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages latex2html depends on:
ii  ghostscript-x              10.0.0~dfsg-11+deb12u4
ii  netpbm                     2:11.01.00-2
ii  perl                       5.36.0-7+deb12u1
ii  perl-doc                   5.36.0-7+deb12u1
ii  poppler-utils              22.12.0-2+b1
ii  tex-common                 6.18
ii  texlive-binaries           2022.20220321.62855-5.1+deb12u1
ii  texlive-fonts-recommended  2022.20230122-3
ii  texlive-latex-extra        2022.20230122-4
ii  texlive-latex-recommended  2022.20230122-3

Versions of packages latex2html recommends:
ii  dvipng  1.15-1.1+b1

latex2html suggests no packages.

-- no debconf information

Reply via email to