Ghost/core/server
Kevin Ansfield 84724537be 🐛 Fixed feature images in emails appearing very wide in Outlook
closes https://github.com/TryGhost/Team/issues/675

Outlook will display images at their native resolution if no `width` attribute is supplied. Content images were fixed a while ago but feature images would still render very wide and cause horizontal scroll and text size/alignment issues.

- modify `post.feature_image` and add a `post.feature_image_width` property before passing it through to the email template
  - for Unsplash images we assume all images are larger than 600px so we change the URL to reference a 1200px image and set the image width to 600 (to keep images on retina displays crisp)
  - for other images we probe the image to fetch the original dimensions and give set an image width of 600 if needed, if it's a locally-hosted image we update the URL to point at a max 1200px version
- updated email template to output a `width` attribute on the feature image `<img>` tag if it's set
2021-05-14 11:57:37 +01:00
..
adapters Moved i18n to shared 2021-05-04 13:03:38 +01:00
api Fixed typos 2021-05-12 17:06:10 +04:00
data Added support for gating content by member labels and products (#12946) 2021-05-10 19:32:11 +01:00
lib Moved getLocalSize() from mobiledoc to image-size lib 2021-05-14 11:57:37 +01:00
models Added support for gating content by member labels and products (#12946) 2021-05-10 19:32:11 +01:00
public New logo in Admin (#12768) 2021-03-18 17:27:27 +00:00
services 🐛 Fixed feature images in emails appearing very wide in Outlook 2021-05-14 11:57:37 +01:00
views Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
web Added notes to oauth code for future improvements 2021-05-14 12:10:27 +02:00
analytics-events.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
ghost-server.js Refactored urlUtils out of ghost-server 2021-05-05 14:24:59 +01:00
notify.js Refactored notify to send started + ready 2021-02-19 20:42:10 +00:00
overrides.js Moved sqlite3 override rules to db connection lib 2021-02-05 11:51:56 +00:00
update-check.js Moved i18n to shared 2021-05-04 13:03:38 +01:00