commit 2bb6019712406a707ef7676deb7fe52f63250955
Author: Dan Gildea <dgildea>
Date:   Wed Sep 4 11:10:59 2024 -0400

    remove svg from config for pstoimg
    
    https://bugs.debian.org/1078535
    
    pstoimg is no longer used by latex2html unless one uses
     latex2html -nouse_pdftex -nouse_dvipng -image_type png
    or
     latex2html -nouse_pdftex -nouse_dvipng -image_type gif
    perhaps it should be retired in favor of dvipng.
    For end users, I think imagemagick convert is more powerful.

--- a/Changes
+++ b/Changes
@@ -112,6 +112,9 @@
 # A more detailed log history can be found within the particular files, near
 # the top.
 #
+#		- remove svg from config for pstoimg
+#		  https://bugs.debian.org/1078535
+#
 #--------- v2024
 #
 #		- "make clean" removes manual.pdf
--- a/config/config.pl
+++ b/config/config.pl
@@ -1616,20 +1616,25 @@
 }
 
 
-$newcfg{'IMAGE_TYPES'} = '';
+$newcfg{'IMAGE_TYPES'} = '';	# types for latex2html, subset of svg, png, gif
+$newcfg{'PSTOIMG_TYPES'} = '';	# types for pstoimg, subset of png, gif
 
 if($newcfg{'have_pstoimg'}) {
   my @imgtypes = ();
+  my @pstoimgtypes = ();
   if($opt{'SVG'}) {
     push(@imgtypes,'svg');
   }
   if($opt{'PNG'}) {
     push(@imgtypes,'png');
+    push(@pstoimgtypes,'png');
   }
   if($opt{'GIF'}) {
     push(@imgtypes,'gif');
+    push(@pstoimgtypes,'gif');
   }
   $newcfg{'IMAGE_TYPES'} = join(' ',@imgtypes);
+  $newcfg{'PSTOIMG_TYPES'} = join(' ',@pstoimgtypes);
 }
 
 # --------------------------------------------------------------------------
--- a/pstoimg.pin
+++ b/pstoimg.pin
@@ -310,7 +310,7 @@
 #fi
 #-
 # Supported format(s)
-my @IMAGE_TYPES = qw(@IMAGE_TYPES@);
+my @PSTOIMG_TYPES = qw(@PSTOIMG_TYPES@);
 #-
 # Netpbm
 my $PNMCROP = '@PNMCROP@';
@@ -336,7 +336,7 @@
 my $PBMMAKE = '@PBMMAKE@';
 #fi
 #-
-#if @IMAGE_TYPES@ =~ /gif/i
+#if @PSTOIMG_TYPES@ =~ /gif/i
 # GIF support
 my $PPMTOGIF = '@PPMTOGIF@';
 #if @GIFTRANS@
@@ -347,7 +347,7 @@
 #fi
 #fi
 #-
-#if @IMAGE_TYPES@ =~ /png/i
+#if @PSTOIMG_TYPES@ =~ /png/i
 # PNG support
 my $PNMTOPNG = '@PNMTOPNG@';
 #fi
@@ -805,7 +805,7 @@
 
 Instruct pstoimg to render the bitmap in I<type> format. Depending on 
 the local installation, pstoimg is capable of generating either GIF or
-PNG bitmaps. This site features the following types: @IMAGE_TYPES@
+PNG bitmaps. This site features the following types: @PSTOIMG_TYPES@
 
 If omitted, the first type in this list is taken.
 
@@ -813,18 +813,18 @@
 
 if($opt{type}) {
   $opt{type} = lc($opt{type});
-  die <<"EOF" unless grep($_ eq $opt{type},@IMAGE_TYPES);
+  die <<"EOF" unless grep($_ eq $opt{type},@PSTOIMG_TYPES);
 $prompt: Error: This version of pstoimg does not support
     "$opt{type}" image format.
 EOF
   }
 else {
-  ($opt{type}) = @IMAGE_TYPES; # default image type
+  ($opt{type}) = @PSTOIMG_TYPES; # default image type
   }
 # Support -gif and -png for a transition period
 if($opt{gif}) {
   print qq{$prompt: Warning: The -gif switch is deprecated. Use "-type gif" instead.\n};
-  if(grep($_ eq 'gif',@IMAGE_TYPES)) {
+  if(grep($_ eq 'gif',@PSTOIMG_TYPES)) {
     $opt{type} = 'gif';
     }
   else {
@@ -835,7 +835,7 @@
   }
 if($opt{png}) {
   print qq{$prompt: Warning: The -png switch is deprecated. Use "-type png" instead.\n};
-  if(grep($_ eq 'png',@IMAGE_TYPES)) {
+  if(grep($_ eq 'png',@PSTOIMG_TYPES)) {
     $opt{type} = 'png';
     }
   else {
@@ -1497,7 +1497,7 @@
 #fi # can justify
 
   my $pnmtoimg;
-#if @IMAGE_TYPES@ =~ /gif/i
+#if @PSTOIMG_TYPES@ =~ /gif/i
   if($opt{type} eq 'gif') {
     $pnmtoimg = $PPMTOGIF;
 #if @gif_interlace@ eq 'netpbm'
@@ -1512,7 +1512,7 @@
 #fi
   }
 #fi - gif
-#if @IMAGE_TYPES@ =~ /png/i
+#if @PSTOIMG_TYPES@ =~ /png/i
   if($opt{type} eq 'png') {
     $pnmtoimg = $PNMTOPNG;
     if($INTERLACE) {
@@ -1592,7 +1592,7 @@
 }
 
 sub print_version {
-  my $formats = join(',',@IMAGE_TYPES);
+  my $formats = join(',',@PSTOIMG_TYPES);
   print <<"EOM";
 $prompt
 part of LaTeX2HTML Release V$RELEASE.
