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



commit 8573b4be5d1f877ebfd14886852b04ed9f0363bc
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 7426b5e..1ae6656 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -637,7 +637,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]