WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
Jetpack Post by Email picture size is always 1024x1024 (4 posts)

  1. wohey
    Member
    Posted 1 year ago #

    Hi,
    When I use Post by Email with one attached image, the size of the image in the post is always 1024x1024. Where can we chabge this?
    Thanks and Greetings

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    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!

  3. r0bm1lls
    Member
    Posted 8 months ago #

    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

  4. samteeeee
    Member
    Posted 5 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.