[evolution/webkit: 74/105] Correctly resize images when printing



commit b3ac88d22f8dcc7d2305954626b6a559efd812f0
Author: Dan VrÃtil <dvratil redhat com>
Date:   Fri Dec 2 14:14:02 2011 +0100

    Correctly resize images when printing

 mail/em-format-html.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index f9ee5be..6b1f849 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -634,7 +634,7 @@ efh_write_image (EMFormat *emf,
 		
 		/* The image is already base64-encrypted so we can directly 
 		   paste it to the output */
-		buffer = g_strdup_printf ("<img src=\"data:%s;base64,%s\" />",
+		buffer = g_strdup_printf ("<img src=\"data:%s;base64,%s\" style=\"max-width: 100%%;\" />",
 			puri->mime_type, content);
 		
 		camel_stream_write_string (stream, buffer, cancellable, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]