+ # 'image/vnd.wap.wmbp' => array( 'imagecreatefromwbmp', 'palette', 'imagewbmp' ), # Not compatible with every browser (or so I'm told)
+ 'image/vnd.wap.wmbp' => array( 'imagecreatefromwbmp', 'palette', 'imagepng' ), # More browser compatible. WBMP is monochrome, so let's try to get away with a 256 color thumbnail
+ # 'image/xbm' => array( 'imagecreatefromxbm', 'palette', 'imagexbm' ), # Not compatible with every browser (well, NS & MSIE work, dunno about others)
+ 'image/xbm' => array( 'imagecreatefromxbm', 'palette', 'imagepng' ), # More browser compatible. XPM is monochrome (black & white), so let's try to get away with a 256 color thumbnail
+ );
+ /**
+ * Meaning of the "color types":
+ * palette - the thumbnail image should be a 256 color image
+ * truecolor - the thumbnail image should be a truecolor image
+ * bits - the thumbnail image should be a truecolor image only if the source image
+ * has more than 256 colors (otherwise, it will be a 256 color image)
+ *
+ * Please be aware that downsampled versions of 256 color images typically contain much
+ * more than 256 colors (because of interpolation)! So here would be a place to trade
+ * thumbnail quality against thumbnail file size. Plus the vague compatability issue...
+ */
+ }
+
+ /**
* Really render a thumbnail
* Call this only for images for which canRender() returns true.
*
@@ -1024,13 +1071,7 @@
# First find out what kind of file this is, and select the correct