GT2/GT2-iOS/node_modules/image-size/lib/detector.js

14 lines
261 B
JavaScript

'use strict';
var typeHandlers = require('./types');
module.exports = function (buffer, filepath) {
var type, result;
for (type in typeHandlers) {
result = typeHandlers[type].detect(buffer, filepath);
if (result) {
return type;
}
}
};