Skip to content

Fetch metadata for images in a directory

License

Notifications You must be signed in to change notification settings

AREA44/node-image-meta-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Meta Fetcher

Image Meta Fetcher allows you to fetch metadata for images in a directory. It retrieves information such as the image width, height, and base64 encoded image data.

Getting Started

git clone https://github.com/AREA44/node-image-meta-fetcher
cd node-image-meta-fetcher
bun install

After that, remove example images then copy your images into images folder and run:

bun run examples/ImageMetaFetcher.js

You'll get an images.json in the examples directory. This file will contain an array of objects, where each object represents an image. The objects will have the following properties:

  • src: The path to the image file
  • width: The width of the image in pixels
  • height: The height of the image in pixels
  • base64: The base64 encoded image data

License

Licensed under the MIT License.