From ecd8dd903911e749c61942da39c2ab21b3e82c66 Mon Sep 17 00:00:00 2001
From: James Calfee <james@jcalfee.info>
Date: Fri, 3 Feb 2017 09:30:45 -0600
Subject: [PATCH] Adjust image proxy large url size to use 1680x8400 (rotated
 and bound). #1098

---
 app/utils/SlateEditor/Image.js | 2 +-
 shared/HtmlReady.js            | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/utils/SlateEditor/Image.js b/app/utils/SlateEditor/Image.js
index 2c297d5c9..32f634420 100644
--- a/app/utils/SlateEditor/Image.js
+++ b/app/utils/SlateEditor/Image.js
@@ -81,7 +81,7 @@ class Image extends React.Component {
         const isFocused = state.selection.hasEdgeIn(node)
         const className = isFocused ? 'active' : null
 
-        const prefix = $STM_Config.img_proxy_prefix ? ($STM_Config.img_proxy_prefix + '0x0/') : ''
+        const prefix = $STM_Config.img_proxy_prefix ? ($STM_Config.img_proxy_prefix + '1680x8400/') : ''
 
         const alt = node.data.get('alt')
         const src = node.data.get('src')
diff --git a/shared/HtmlReady.js b/shared/HtmlReady.js
index 3e9be5eb3..32457a8e5 100644
--- a/shared/HtmlReady.js
+++ b/shared/HtmlReady.js
@@ -162,14 +162,14 @@ function img(state, child) {
     }
 }
 
-// For all img elements with non-local URLs, prepend the proxy URL (e.g. `https://img0.steemit.com/0x0/`)
+// For all img elements with non-local URLs, prepend the proxy URL (e.g. `https://img0.steemit.com/1680x8400/`)
 function proxifyImages(doc) {
     if (!$STM_Config.img_proxy_prefix) return
     if (!doc) return;
     [...doc.getElementsByTagName('img')].forEach(node => {
         const url = node.getAttribute('src')
         if(! linksRe.local.test(url))
-            node.setAttribute('src', $STM_Config.img_proxy_prefix + '0x0/' + url)
+            node.setAttribute('src', $STM_Config.img_proxy_prefix + '1680x8400/' + url)
     })
 }
 
-- 
GitLab