• Resolved 3dfap

    (@3dfap)


    Hi. It seems Postie (or maybe it’s WordPress?) drops WebP images. I’ve added “webp” to postie-funcitons.php like this, didn’t help:
    $image_endings = array(“jpg”, “png”, “gif”, “jpeg”, “pjpeg”, “webp”);

    Additionally I added it in this line of wp-includes/class-snoopy.php:
    var $accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/webp, */*”;

    As well as:

    ‘webp’ => ‘image/webp’,
    in class-phpmailer.php in /wp-includes.
    `
    But when I email a post with a webp as I would a jpg, no image tag in the post and no file in wp-content/uploads. Help would be appreciated, thanks.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    This format is just starting to get traction. If you sent a sample email with a webp image to postie-test@devzing.com l’ll get it added. You will also have to convince WP to accept the format which you have already done.

    Thread Starter 3dfap

    (@3dfap)

    Wayne, I sent the test email a few days back with a webp attached, happen to catch it?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Yes I saw it. Spring Break with the family, off-line for a few days.

    I’ll make sure it is supported in 1.5 (should be released in the next week or so).

    Plugin Author Wayne Allen

    (@wayneallen-1)

    I did 2 things to make it work. I added the “wp-webp” plugin to my blog and made sure the web server was sending the correct mime type. No code or configuration changes to Postie required.

    Thread Starter 3dfap

    (@3dfap)

    Thanks for that! I added webp to wherever the other image formats were mentioned in the functions.php (wp_get_mime_types and $mime_to_ext), now it works. Great. Just need to figure out how to get it to resize these automatically (but I realize that’s no longer a Postie-related issue, so I’ll keep fiddling or ask the folks on IRC maybe).

    Thanks for the great plugin, thanks the help here, hope you had some good downtime. I appreciate it.

    Regarding wp-webp, not an option, I have an image-heavy site and the decoder freezes up browsers. So, since this is just an experimental site of mine, I’m thinking why not see if I can manage to nudge people onto Chrome or Opera by starting to post WebPs while neither using the javascript decoder nor doing a mod rewrite to serve non-supporting browsers jpegs. On top of the size benefits of WebP, denying 2/3rds of my audience my content would probably save some resources… Take care.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WebP image attaching/embedding support?’ is closed to new replies.