Skip to content

Image: add support for webp#73

Closed
enumag wants to merge 1 commit into
nette:masterfrom
enumag:webp
Closed

Image: add support for webp#73
enumag wants to merge 1 commit into
nette:masterfrom
enumag:webp

Conversation

@enumag

@enumag enumag commented Aug 3, 2015

Copy link
Copy Markdown
Contributor

Not sure how to write tests - there aren't any tests specific for the other types either.

Also should I check for php version?

Comment thread src/Utils/Image.php

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar constant for webp does not exist (yet).

@dg

dg commented Aug 3, 2015

Copy link
Copy Markdown
Member

Does getimagesizefromstring support WEBP?

@enumag

enumag commented Aug 3, 2015

Copy link
Copy Markdown
Contributor Author

Oh boy of course it does not. :-(

@enumag

enumag commented Aug 3, 2015

Copy link
Copy Markdown
Contributor Author

There is no way to detect webp images in fromString and fromFile (aside from checking file extension in fromFile) so I removed webp from both. But I still think Nette\Utils\Image should be able to generate webp images.

@dg

dg commented Aug 3, 2015

Copy link
Copy Markdown
Member

It is possible via $image->webp('file.webp'); Full support is currently IMHO not possible.

@enumag

enumag commented Aug 3, 2015

Copy link
Copy Markdown
Contributor Author

Ok, closing for now. Thank you.

@enumag enumag closed this Aug 3, 2015
@enumag

enumag commented Oct 8, 2016

Copy link
Copy Markdown
Contributor Author

Webp support has been added for PHP 7.1RC4. It should be possible to implement this now.

@enumag enumag reopened this Oct 8, 2016
@dg dg closed this in 98717f3 Dec 19, 2016
dg added a commit that referenced this pull request Dec 19, 2016
dg added a commit that referenced this pull request Dec 19, 2016
dg added a commit that referenced this pull request Dec 19, 2016
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.

2 participants