import ExifReader, {Tags} from "npm:exifreader";
function checkExif(source: string) {
ExifReader.load(source, { expanded: true })
.then((tags: Tags) => {
const exif = tags["exif"];
if (exif) {
console.log({ exif });
} else {
console.log("exif が見つからない");
}
})
.catch((e) => {
console.log(source);
console.log(e);
});
}
checkExif("/path/to/image.JPG");
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
10