MCPcopy
hub / github.com/ollm/OpenComic / imageSizeSha

Function imageSizeSha

scripts/cache.js:144–150  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

142}
143
144function imageSizeSha(image)
145{
146 if(image.sha && !image.type && (!image.forceSize || image.forceSize === 150))
147 return image.sha;
148
149 return sha1(addImageVars(image));
150}
151
152function addImageVars(image)
153{

Callers 2

returnThumbnailsImagesFunction · 0.85
deleteInCacheFunction · 0.85

Calls 2

sha1Function · 0.85
addImageVarsFunction · 0.85

Tested by

no test coverage detected