From 034942ac5ff27364ced82008fd58d58329330af4 Mon Sep 17 00:00:00 2001
From: Jeff Atwood <jatwood@codinghorror.com>
Date: Fri, 14 Nov 2014 17:33:42 -0800
Subject: [PATCH] let's go with original iPhone dimensions

---
 lib/email/styles.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/email/styles.rb b/lib/email/styles.rb
index 7cce438e7..b3cbeac05 100644
--- a/lib/email/styles.rb
+++ b/lib/email/styles.rb
@@ -37,8 +37,8 @@ module Email
           img['width'] = 20
           img['height'] = 20
         else
-          # having no extra style on email images might work best?
-          if img['width'].to_i > 400 or img['height'].to_i > 400
+          # use dimensions of original iPhone screen for 'too big, let device rescale'
+          if img['width'].to_i > 320 or img['height'].to_i > 480
             img['width'] = 'auto'
             img['height'] = 'auto'
           end