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

Custom icons: allow image URLs in 'icon' fields #78

Open
wrdclark opened this issue Jan 26, 2017 · 2 comments
Open

Custom icons: allow image URLs in 'icon' fields #78

wrdclark opened this issue Jan 26, 2017 · 2 comments

Comments

@wrdclark
Copy link

A couple of ideas for this.

Simple version: compare the entered text against a regexp for images (some ideas at StackOverflow)).

Complicated version: retrieve the header, check for Content-type: image or other suitable values.

@posita
Copy link
Collaborator

posita commented Jun 10, 2020

Is the purpose of this to be able to use hosted images instead of first having to download and install them locally? (I'm just trying to understand the request.)

@wrdclark
Copy link
Author

(I am using crobi.github.io/rpg-cards as reference, as I haven’t looked at this in years...)
As I understand it, the Icon field is limited to just searching game-icons.net. If it was possible to use URLs as input, one could use any icon resource, either online (barring any hotlinking issues) or locally saved (via file:// urls).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants