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

Function sharpSupportedFormat

scripts/image.js:290–298  ·  view source on GitHub ↗
(path, extension = false)

Source from the content-addressed store, hash-verified

288}
289
290function sharpSupportedFormat(path, extension = false)
291{
292 extension = extension || app.extname(path);
293
294 if(compatible.image.bmp.has(extension) || compatible.image.ico.has(extension)) // Unsupported image format by sharp
295 return false;
296
297 return true;
298}
299
300function loadImage(url, encode = false)
301{

Callers 1

getSizesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected