• Resolved zimbo000

    (@zimbo000)


    I am testing a Post Notifications email with Automatic Latest Content and Featured Image as padded, for use as a daily news digest email.

    The image being selected for use on each post in the email is the full size image associated with the post. If this image is, say, 700 px by 467 px, it is then scaled down to fit into the <td> cell element using max-width on the img element, which for my email layout is 620 px.

    My client does not want such large images in the email but something smaller like 200 px.

    1. I can override the ‘max-width: 620 px’ by hard coding 200 px into \lib\Newsletter\Renderer\Blocks\Image.php at line 17 but that is not a good idea long term. I did this just to see if it works because I can’t find a way to alter the max-width via CSS in my child theme – I tried
    .mailpoet_image a img {max-width: 200 px !important;}
    but it didn’t work. Can you suggest something?

    2. Alternatively, the theme generates a 200 px wide image of the original on image upload. How can I select a smaller image rather than the full size one?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @zimbo000,

    Thank you for clearly describing the use case.

    Unfortunately currently MailPoet does not support custom image sizes – it uses a custom newsletter image size or the original image size, as provided by WordPress.
    However, we are aware that this level of control would be useful in certain cases, so we will consider such option for future improvements.

    At this time Automated Latest Content and Posts widgets when processing Posts will select images that best resemble a specific target of 1320px in width for use in MailPoet newsletters, and will be scaled down to fit columns accordingly.
    Image dimensions are selected in such a way to appear more crisp on high density screens (such as Apple’s Retina).

    As for immediate solutions, while you certainly can modify MailPoet Core, unfortunately this would need to be done after each MailPoet update.
    And CSS of your theme does not impact rendered emails in any way.

    Best regards,
    Mailpoet team.

    How do you create a custom newsletter image size in WP?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Reduce Featured Image size’ is closed to new replies.