Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 imageindex (1.1-6) unstable; urgency=medium
 .
   * d/clean: added. (Closes: #1045231)
Author: Alex Myczko <tar@debian.org>
Bug-Debian: https://bugs.debian.org/1045231

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2024-07-04

--- imageindex-1.1.orig/imageindex
+++ imageindex-1.1/imageindex
@@ -256,7 +256,7 @@ $framefile = 'frame.html';
 $slidefile =  'slides.html';
 $slide_dir = 'slides';
 $stylefile = 'style.css';
-$montagefile = 'montage.jpg';
+$montagefile = 'montage.png';
 $emoticonprefix = 'ii_';
 $emoticonsmile = $emoticonprefix . 'smile.png';
 $emoticonwink  = $emoticonprefix . 'wink.png';
@@ -3489,7 +3489,7 @@ sub create_montage {
 
 	    print "Creating $destdir/$thumbnail_dir/$montagefile\n";
 
-	    system("montage -quality $thumb_quality -bordercolor white -transparent white -border $montage_whitespace -geometry $geom -tile $tile @modfiles \"$destdir/$thumbnail_dir/$montagefile\"");
+	    system("montage -background transparent -quality $thumb_quality -bordercolor white -transparent white -border $montage_whitespace -geometry $geom -tile $tile @modfiles \"$destdir/$thumbnail_dir/$montagefile\"");
 	    if (($? >> 8) != 0) {
 		printf(STDERR "Error in creating montage file\n");
 		return(-1);
