The source project of this merge request has been removed.
Imports images into Foundry data folder
Addresses #15 (closed)
With a successful fetch for their URLs, the portrait and token images are stored in upload/savagedus-importer
and the image path is relative.
On fail, it tests loading the image for a valid server response. If that succeeds, it inserts the absolute URL for the image, and a warning message about hotlinking is output to the console. If the test fails, it removes the image altogether to avoid 404 or other non-200 server responses.
Also, if Foundry actor has portrait or token images but savaged.us sync data does not, the importer will keep the existing images. (#53)
Edited by Kristian Serrano