Skip to content
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

Fails on image URL with query string #13

Open
henryruhs opened this issue Nov 21, 2018 · 1 comment
Open

Fails on image URL with query string #13

henryruhs opened this issue Nov 21, 2018 · 1 comment

Comments

@henryruhs
Copy link

henryruhs commented Nov 21, 2018

Fails on image URL with query string and reports: Image format not supported.

Workaround might look like:

$urlArray = parse_url($result->thumb);
Pixeler\Pixeler::image($urlArray['scheme'] . '://' . $urlArray['host'] . $urlArray['path']);

or

$url= strtok($result->thumb, '?');
Pixeler\Pixeler::image($url);
@henryruhs
Copy link
Author

henryruhs commented Nov 21, 2018

Additionally, please throw an exception if URL is not readable via HTTP or something else while processing the image is going wrong. At this point I cannot use try catch blocks with Pixeler.

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

No branches or pull requests

1 participant