Skip to content

phpstudyone/s3-image-exif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

s3-image-exif

This plugin depends on the exiftool tool. Before using this plugin, please download and install exiftool. For more exiftool information, please refer to exiftool

  const {downloadS3Image,exif,getCaptureDate,unlink} = require('./s3-image-exif');
  const downloadPath = `${you want to downlod to path}`;
  const imageS3 = await downloadS3Image(`${your S3 bucket}`, `${your image key}`, downloadPath);
  console.log(imageS3);
  const execExif = await exif(downloadPath);
  console.log(execExif);
  const captureDate = getCaptureDate(execExif.exifInfo);
  console.log(execExif, captureDate);
  unlink(downloadPath);

About

获取 S3 上图片 EXIF 信息

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published