| 123456789101112131415161718 | console.log("Image Properties Access Test");//To test this, put a test.jpg on your desktopvar imagePath = "user:/Desktop/test.jpg";//Check if the file existsrequirelib("filelib");if (!filelib.fileExists(imagePath)){	sendResp("File not exists!")}else{    //Require the image library    var loaded = requirelib("imagelib");    if (loaded) {        //Library loaded. Call to the functions        var dimension = imagelib.getImageDimension(imagePath);        sendJSONResp(JSON.stringify(dimension));    } else {        console.log("Failed to load lib: imagelib");    }}
 |