support all images supported by gdkpixbuf (except useless sunras)
authorgc <gc>
Sat, 23 Feb 2008 22:43:45 +0000 (22:43 +0000)
committergc <gc>
Sat, 23 Feb 2008 22:43:45 +0000 (22:43 +0000)
lib/booh/booh-lib.rb

index c370a8f..e5a3966 100644 (file)
@@ -164,6 +164,17 @@ module Booh
     end
 
     def entry2type(entry)
+        #- /usr/lib/gdk-pixbuf/loaders/libpixbufloader-bmp.so
+        #- /usr/lib/gdk-pixbuf/loaders/libpixbufloader-gif.so
+        #- /usr/lib/gdk-pixbuf/loaders/libpixbufloader-ico.so
+        #- /usr/lib/gdk-pixbuf/loaders/libpixbufloader-jpeg.so
+        #- /usr/lib/gdk-pixbuf/loaders/libpixbufloader-png.so
+        #- /usr/lib/gdk-pixbuf/loaders/libpixbufloader-pnm.so
+        #- /usr/lib/gdk-pixbuf/loaders/libpixbufloader-ras.so
+        #- /usr/lib/gdk-pixbuf/loaders/libpixbufloader-tiff.so
+        #- /usr/lib/gdk-pixbuf/loaders/libpixbufloader-xbm.so
+        #- /usr/lib/gdk-pixbuf/loaders/libpixbufloader-xpm.so
+        if entry =~ /\.(bmp|gif|ico|jpg|jpe|png|pnm|tif|xbm|xpm)$/i && entry !~ /['"\[\]]/
         if entry =~ /\.(jpg|jpeg|jpe|gif|bmp|png)$/i && entry !~ /['"\[\]]/
             return 'image'
         elsif !$ignore_videos && entry =~ /\.(mov|avi|mpg|mpeg|mpe|wmv|asx|3gp|mp4)$/i && entry !~ /['"\[\]]/