Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.58k stars 797 forks source link

Newsletter featured image display correctly in test emails, but distorted when published #34517

Open mgozdis opened 9 months ago

mgozdis commented 9 months ago

Impacted plugin

Jetpack

Quick summary

When sending a test email prior to publishing a post, the email received displays the featured image correctly. When publishing, the email received display the featured image distorted. This appears related to the test email using auto height and width values while the published email sets specific values. 3ExPyo.png

User report: 7416408-zd-a8c

Steps to reproduce

  1. Install Alonso theme on AT site
  2. Create a new post with a featured image set, saving as draft
  3. Click Publish and choose "Send test email" under Newsletter options - check that test email was received and displays featured image fine (ensure you are a subscriber of site first)
  4. Publish the post and check email to see featured image displays distorted

A clear and concise description of what you expected to happen.

The featured image should display the same and use the same CSS styling regardless of sending a test email or "published" email. It should display in the correct size, proportions, and aspect ratio.

What actually happened

Different CSS is applied depending on whether it's a test email or not. The test email uses this inline CSS: style="border:none;margin-bottom:0;max-height:inherit;max-width:100%;width:auto;height:auto

The published email uses this inline CSS: style="border:none;margin-bottom:0;max-height:inherit;width:100%;height:163.89%;max-width:1080px

Impact

Some (< 50%)

Available workarounds?

No and the platform is unusable

Platform (Simple and/or Atomic)

Atomic

Logs or notes

It is unknown if this is theme/platform specific and only tested on AT sites with Alonso theme.

github-actions[bot] commented 9 months ago

Support References

This comment is automatically generated. Please do not edit it.

pauljacobson commented 8 months ago

We have another report of this issue in 7393417-zen

jp-imagines commented 6 months ago

Another report in 7539224-zd-a8c. Atomic site using a third-party theme (Gridiculous Pro), so I doubt this is theme related.

github-actions[bot] commented 2 weeks ago

This issue has been marked as stale. This happened because:

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

jeherve commented 2 weeks ago

I experienced the same issue with the email triggered for this post on my personal site.

image
Robertght commented 6 days ago

I'm assuming square images(and possibly portrait) are the pattern here. I tested with a 1920x1920 image and that was stretched too:

hE27QH.png

I had another case the other day in here as well: #8680778-zen and a follow up to this in #8685932-zen