chore: add jimp dependency, icon padding script, and update configuration

This commit is contained in:
2026-05-31 14:04:37 +02:00
parent 30f81045ac
commit 7cd17307ba
1126 changed files with 166400 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
var simplify = require('../lib/simplify');
module.exports = {
'test castDateValues': function(test) {
var values = {
'DateTimeOriginal': '1970:01:01 00:00:00',
'CreateDate': '1970-01-01T00:00:00-05:00',
'ModifyDate': '1970-01-01T00:00:00-05:00'
};
var setValues = {};
function getTagValue(tag) {
return values[tag.name];
}
function setTagValue(tag, value) {
setValues[tag.name] = value;
}
simplify.castDateValues(getTagValue, setTagValue);
test.strictEqual(Object.keys(setValues).length, 3);
test.strictEqual(setValues.DateTimeOriginal, 0);
test.strictEqual(setValues.CreateDate, 5 * 3600);
test.strictEqual(setValues.ModifyDate, 5 * 3600);
test.done();
}
}