You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like the idea of having hashes stored in my database for images so I could send that to the client to show a blurred image first while the full image is being rendered. How does one do this on the server? The TypeScript examples show loading an image using the Image constructor, and later setting its src to a url. This would imply a fetch call. Is there no programmatic way to read an image file's binary data and generate a hash from that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I like the idea of having hashes stored in my database for images so I could send that to the client to show a blurred image first while the full image is being rendered. How does one do this on the server? The TypeScript examples show loading an image using the
Image
constructor, and later setting itssrc
to a url. This would imply a fetch call. Is there no programmatic way to read an image file's binary data and generate a hash from that?Beta Was this translation helpful? Give feedback.
All reactions