Skip to content

Implement #65038: IMAGETYPE_WEBP constant missing #2157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Oct 7, 2016

We add WebP support for getimagesize(), getimagesizefromstring)(),
image_type_to_extension() and image_type_to_mime_type(). For now we
care only about the simple lossy WebP format (VP8) and ignore the
lossless (VP8L) and extended (VP8X) formats. We use image/webp as MIME
type as it appears to be pretty common, even though it is not yet
registered with IANA.

Relevant specifications:

We add WebP support for getimagesize(), getimagesizefromstring)(),
image_type_to_extension() and image_type_to_mime_type(). For now we
care only about the simple lossy WebP format (VP8) and ignore the
lossless (VP8L) and extended (VP8X) formats. We use image/webp as MIME
type as it appears to be pretty common, even though it is not yet
registered with IANA.

Relevant specifications:
 * <https://developers.google.com/speed/webp/docs/riff_container>
 * <https://tools.ietf.org/html/rfc6386>
@KalleZ
Copy link
Member

KalleZ commented Oct 7, 2016

Should be fine to commit to master, @dshafik might have some comments for 7.1, but its fairly small and self contained so tbh it should be just fine

@dshafik
Copy link
Contributor

dshafik commented Oct 7, 2016

I'm fine with this in 7.1

@cmb69
Copy link
Member Author

cmb69 commented Oct 7, 2016

Thanks! I'll merge ASAP.

@cmb69 cmb69 changed the base branch from master to PHP-7.1 October 7, 2016 21:44
@cmb69 cmb69 changed the base branch from PHP-7.1 to master October 7, 2016 21:45
@cmb69
Copy link
Member Author

cmb69 commented Oct 7, 2016

Applied as 14d4ee9.

@cmb69 cmb69 closed this Oct 7, 2016
@cmb69 cmb69 deleted the imagetype-webp branch October 11, 2016 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants