--- gthumb-2.6.5/src/catalog-web-exporter.c	2005-04-22 19:20:55.000000000 +0200
+++ gthumb-2.6.5-cb/src/catalog-web-exporter.c	2005-04-23 23:17:01.186994040 +0200
@@ -125,10 +125,13 @@
 		comment_data_free (cdata);
 
 	idata->src_filename = g_strdup (filename);
-	idata->dest_filename = g_strconcat ("img", 
-					    zero_padded (img_counter++), 
-					    ".jpeg", 
-					    NULL);
+	idata->dest_filename = g_strconcat (
+		zero_padded (img_counter++),
+		"-",
+		file_name_from_path (filename),
+		(file_extension_is(filename, "jpg") || file_extension_is(filename, "jpeg") ? "" : ".jpeg"), 
+		NULL);
+
 	idata->file_size = 0;
 
 	idata->image = NULL;
