Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/area44/node-image-meta-fetcher
Fetch metadata for images in a directory
https://github.com/area44/node-image-meta-fetcher
dimensions json nodejs plaiceholder sharp
Last synced: 14 days ago
JSON representation
Fetch metadata for images in a directory
- Host: GitHub
- URL: https://github.com/area44/node-image-meta-fetcher
- Owner: AREA44
- License: mit
- Created: 2023-05-13T17:35:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T18:37:59.000Z (22 days ago)
- Last Synced: 2024-10-29T20:38:56.915Z (22 days ago)
- Topics: dimensions, json, nodejs, plaiceholder, sharp
- Language: JavaScript
- Homepage:
- Size: 841 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```sh
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:
```sh
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](./LICENSE).