Intervention / imagecache

Caching extension for the Intervention Image Class

Home Page:https://image.intervention.io/v2/usage/cache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Initialization fails with URL with non-ASCII characters (v2.3.3)

benschu opened this issue · comments

Creating a ImageManager instance with non ASCII characters leads into a "Image source not readable" exception thrown by AbstractDecoder->init().

Example:

ImageManagerStatic::make('https://upload.wikimedia.org/wikipedia/commons/4/46/Großes_Walsertal_Panorama_2.jpg');

This is caused by the usage of filter_var() in function isUrl(). FILTER_VALIDATE_URL cannot be used with non-ASCII characters like internationalized domain names.

Is there a chance or workaround to get this work?

Thanks!
Benjamin

oops, wrong project :-/