[evolution/gnome-3-0] Bug 653247 - Don't show TIFF documents inline
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-0] Bug 653247 - Don't show TIFF documents inline
- Date: Thu, 30 Jun 2011 15:11:19 +0000 (UTC)
commit d4b1b564e33c0166fcf13be580f9be6174658a4a
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Jun 30 11:02:42 2011 -0400
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.
(cherry picked from commit 162266bb99581ba2ddb171995d352e5dabcbd9ca)
mail/em-format-html.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index a5f485e..9e78a4c 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -2271,12 +2271,21 @@ efh_image (EMFormat *emf,
stream, "<img hspace=10 vspace=10 src=\"%s\">", 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 },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]