J-Guenther / foundryvtt-journal-thumbnail

A Foundry VTT Module that adds Thumbnails to Journal Entries
MIT License
2 stars 0 forks source link

Scale down & cache thumbnail images #4

Open scooper4711 opened 3 years ago

scooper4711 commented 3 years ago

Having enabled this module, I see in the network traffic that all images for all journal entries are downloaded upon initial load of the system.

When images are large, this can lead to a considerable delay in initial load time for the user.

My suggestion is to resize the images on the server and cache the images. This will allow for all journal entries to have thumbnails without adding megabytes to the initial download screen.

J-Guenther commented 3 years ago

You are right about this issue. I'ver never paid attention to that kind of problem. Your suggestion sounds good. I will take a look into it and investigate this further.

scooper4711 commented 3 years ago

I love your module but alas had to disable it because I have some big images - even after converting them to webp.

One challenge you will have with my suggestion is updating the thumbnail if the image is changed.