Add some of my local changes as patch, as they affect probably every SUSE system. OBS-URL: https://build.opensuse.org/request/show/400889 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Apache-Gallery?expand=0&rev=1
31 lines
1006 B
Diff
31 lines
1006 B
Diff
diff -ur Apache-Gallery-1.0.2/lib/Apache/Gallery.pm Apache-Gallery-1.0.2_fix/lib/Apache/Gallery.pm
|
|
--- Apache-Gallery-1.0.2/lib/Apache/Gallery.pm 2011-06-08 20:47:46.000000000 +0200
|
|
+++ Apache-Gallery-1.0.2_fix/lib/Apache/Gallery.pm 2016-06-09 10:57:32.362158257 +0200
|
|
@@ -135,6 +135,8 @@
|
|
|
|
$filename =~ s/\/(\d+)x(\d+)\-//;
|
|
|
|
+ $filename =~ s/-(ppm|tif?|gif).jpg$/.$1/i;
|
|
+
|
|
my ($width, $height, $type) = imgsize($filename);
|
|
|
|
my $imageinfo = get_imageinfo($r, $filename, $type, $width, $height);
|
|
@@ -187,7 +189,7 @@
|
|
}
|
|
my $img_pattern = $r->dir_config('GalleryImgFile');
|
|
unless ($img_pattern) {
|
|
- $img_pattern = '\.(jpe?g|png|tiff?|ppm)$'
|
|
+ $img_pattern = '\.(jpe?g|png|tiff?|gif|ppm)$'
|
|
}
|
|
|
|
# Let Apache serve files we don't know how to handle anyway
|
|
@@ -1821,7 +1823,7 @@
|
|
Pattern matching the files you want Apache::Gallery to view in the
|
|
index as thumbnails.
|
|
|
|
-The default is '\.(jpe?g|png|tiff?|ppm)$'
|
|
+The default is '\.(jpe?g|png|tiff?|gif|ppm)$'
|
|
|
|
=item B<GalleryDocFile>
|
|
|