#How to make fetched images optimized for lower internet speed

1 messages · Page 1 of 1 (latest)

next geode
pastel tangle
#

the bacend would have to support smaller images or just have a more compressed version

#

if smaller images are available, just query for them

next geode
pastel tangle
#

you would be compressing after loading though

#

the script you have doesn't have access to the file

#

and it's most likely already compressed to some degree via gzip, which is common in requests

plain condor
#

You could compress it via a script in the backend. I guess with an express API you could handle image requests, compress, cache and return the file dynamically.

#

res.sendFile is useful