Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Thanks for the report. We’re aware of the issue, and we’re working on a fix. I will post again here as soon as I have some news!

    Hi,

    Just adding my voice… I would really like to have post by email just take the images at their original size. And.. if they are embedded in the email for them to stay there. So the post looks just like the email.

    Thanks for the great work so far!

    Rob

    Hi guys, you can solve this issue by inserting the following in your functions.php:

    add_filter( 'post_thumbnail_html', 'remove_width_attribute', 10 );
    add_filter( 'the_content', 'remove_width_attribute', 10 );
    
    function remove_width_attribute( $html ) {
       $html = preg_replace( '/(width|height)="\d*"\s/', "", $html );
       return $html;
    }

    As described here: http://css-tricks.com/snippets/wordpress/remove-width-and-height-attributes-from-inserted-images/

    HTH
    Sam

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Jetpack Post by Email picture size is always 1024×1024’ is closed to new replies.