pixeler icon indicating copy to clipboard operation
pixeler copied to clipboard

Fails on image URL with query string

Open henryruhs opened this issue 7 years ago • 1 comments

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 avatar Nov 21 '18 21:11 henryruhs

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.

henryruhs avatar Nov 21 '18 23:11 henryruhs