WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months ago

Last modified 4 days ago

#24718 closed feature request (maybelater)

.webp imageformat support for upload and media gallery

Reported by: fierevere Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.6
Component: Media Keywords:
Focuses: Cc:

Description

PHP 5.5 introduced imagecreatefromwebp() in GD extension, when linked with libvpx.
Google actively press this image format into wide use,
would be nice if WordPress will support it with image uploader filter and Edit Media.

Change History (13)

comment:1 wycks9 months ago

  • Severity changed from normal to minor

There is a plugin that accomplishes this: http://wordpress.org/plugins/wp-webp/

Since webp doesn't work natively in FireFox or IE I doubt this will gain any ground in the near future.

comment:2 fierevere9 months ago

webp works in FireFox 22 and maybe in earlier versions that include libvpx
that plugin is far from native support for releasing upload filters for .webp and enabling image editing in media gallery, this plugin is just a browser support for decoding .webp images with javascript, as i understood

I doubt this will gain any ground in the near future.

ofc you may doubt, but Google offering pagespeed service with proxying and CDN on their side, they convert images to .webp

comment:3 wycks9 months ago

Webp is still being evaluated by Firefox (native)and if it's eventually added it probably won't be before ff24, you can follow the progress here: https://bugzilla.mozilla.org/show_bug.cgi?id=856375

I stand corrected though on the timeline, now that FaceBook has entered the ring and posted in the above mozilla thread it might get adopted sooner, since they really want to use it.

Version 1, edited 9 months ago by wycks (previous) (next) (diff)

comment:4 follow-up: fierevere9 months ago

I can watch it working without any problem on my FF22 @ Linux,
and it works for very long time for Chrome/Chromium,
and since PHP 5.5 has support for .webp in GD why dont implement it in wordpress?
just mime filter and support for media edit, wouldnt be much hard work.

ofc, can look at slow hosters and statistics http://wordpress.org/about/stats/
where PHP 5.5 is not visibly present at all, but why dont be 1 step ahead?

Last edited 9 months ago by fierevere (previous) (diff)

comment:5 in reply to: ↑ 4 ; follow-up: fierevere9 months ago

PS: Its not a forum, i dont need help, i posted a wishlist and i wont discuss it with someone who is not a developer status and acting like rude troll with resetting priorities and trying to tell that "something is not needed in wordpress"

If someone can make a commit into trunk, it will be nice, i dont think it will be you wycks, so please leave this ticket discussion for someone who actually can make this commit.

comment:6 markoheijnen9 months ago

I think for now this is plugin material. PHP 5.5 is just out so not a lot of people will benefit from this. It also can lead to misassumptions when people upload an .webp image and expect the ability to edit it or/and have a decent fallback. So I do think better support for this format is key to implement this in WordPress.

WordPress can't deliver this support since loading javascript to have better support for .webp isn't a solution for core. Also something what the FaceBook engineer mentioned in the FireFox ticket was serving .jpg instead of .webp when the browser doesn't support it. This also wouldn't work well when you cache pages. So this seems server configuration.

I do want to point out that I don't think wycks is rude here. I think the priority is minor since the adoption isn't good enough for now and it can take a while to get there. And this discussion is needed. Even with people that can't commit.

comment:7 in reply to: ↑ 5 nacin9 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

Replying to fierevere:

If someone can make a commit into trunk, it will be nice, i dont think it will be you wycks, so please leave this ticket discussion for someone who actually can make this commit.

Actually, I don't think it will be anyone.

comment:8 nacin9 months ago

There's no need to be rude to other contributors. wycks' contribution here was legitimate and helpful, and even if it weren't, I don't think he needs to be belittled.

comment:9 wycks9 months ago

I was just pointing out the challenges with webp, not sure why I came across as rude. The main push for webp are upstream providers who save bandwidth and much less so the user base, though there is certainly a push to change this.

FaceBook is having issues with webp support since photos downloaded onto desktop/devices cannot be opened by the majority of it's users(not natively supported by Microsoft).

Also mod_pagespeed (and mod nginx) support serving of webp to browsers that support it with fallback (.jpg) to browsers that don't (https://developers.google.com/speed/pagespeed/module/filter-image-optimize#webp)

comment:10 fierevere9 months ago

as you wish, nacin, it wasnt an urgent request anyway, just disappointed that i cannot upload any .webp into gallery and edit it natively while PHP support available.

comment:11 JustinSainton9 months ago

As mentioned, there is a plugin that already does this.

http://wordpress.org/plugins/wp-webp

comment:12 markoheijnen9 months ago

That plugin doesn't let you edit .webp files

@fierevere: You can make that happen without changing core. Look into WP_Image_Editor and extend the GD version.

comment:13 SergeyBiryukov4 days ago

#27789 was marked as a duplicate.

Note: See TracTickets for help on using tickets.