MCPcopy Index your code
hub / github.com/microsoft/SandDance / getImageType

Function getImageType

docs/app/js/sanddance-app.js:57515–57519  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

57513 }
57514}
57515function getImageType(image) {
57516 var format = getImageTypeOrNull(image);
57517 if (!format) throw new Error("Not an image");
57518 return format;
57519}
57520function getImageData(image) {
57521 switch(getImageType(image)){
57522 case "data":

Callers 2

deleteImageFunction · 0.70
getImageDataFunction · 0.70

Calls 1

getImageTypeOrNullFunction · 0.70

Tested by

no test coverage detected