From 75ec784e5d33162a675bb2721f4bafae0a0b7227 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 30 Jun 2011 11:02:42 -0400 Subject: Bug 653247 - Don't show TIFF documents inline image/tiff is omitted because it's a multi-page image format, but gdk-pixbuf unconditionally renders the first page only, and doesn't even indicate through meta-data whether multiple pages are present (see bug 335959). Therefore, make no attempt to render TIFF images inline and defer to an application that can handle multi-page TIFF files properly like Evince or Gimp. Once the referenced bug is fixed we can reevaluate this policy. --- mail/em-format-html.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'mail/em-format-html.c') diff --git a/mail/em-format-html.c b/mail/em-format-html.c index 0e8d8d3df7..b7b6e4d784 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -2353,12 +2353,21 @@ efh_image (EMFormat *emf, stream, "", puri->cid); } +/* Notes: + * + * image/tiff is omitted because it's a multi-page image format, but + * gdk-pixbuf unconditionally renders the first page only, and doesn't + * even indicate through meta-data whether multiple pages are present + * (see bug 335959). Therefore, make no attempt to render TIFF images + * inline and defer to an application that can handle multi-page TIFF + * files properly like Evince or Gimp. Once the referenced bug is + * fixed we can reevaluate this policy. + */ static EMFormatHandler type_builtin_table[] = { { (gchar *) "image/gif", efh_image }, { (gchar *) "image/jpeg", efh_image }, { (gchar *) "image/png", efh_image }, { (gchar *) "image/x-png", efh_image }, - { (gchar *) "image/tiff", efh_image }, { (gchar *) "image/x-bmp", efh_image }, { (gchar *) "image/bmp", efh_image }, { (gchar *) "image/svg", efh_image }, -- cgit v1.2.3