Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelvilleneuve/simple-image-uploader
👌 Simple Node.JS npm package to handle image upload, resize and custom naming.
https://github.com/michaelvilleneuve/simple-image-uploader
image-processing node-js npm-package upload-images
Last synced: about 2 months ago
JSON representation
👌 Simple Node.JS npm package to handle image upload, resize and custom naming.
- Host: GitHub
- URL: https://github.com/michaelvilleneuve/simple-image-uploader
- Owner: Michaelvilleneuve
- Created: 2017-06-23T15:04:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-23T15:12:12.000Z (over 7 years ago)
- Last Synced: 2024-11-12T21:44:26.597Z (2 months ago)
- Topics: image-processing, node-js, npm-package, upload-images
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Image Uploader
=====Just a simple base64 image upload library for Node.JS.
It features upload, custom path and image resize.Install
----
`$ npm install --save simple-image-uploader`Usage
----It's all about `Image.upload()`.
The method returns a promise with the path of the uploaded image, so you can easily store it afterward.Note : destination folder must exist
```javascript
import Image from 'simple-image-uploader';let width = 1600,
height = 1900;const path = 'myAwesomeImage.jpg';
Image.upload(base64String, width, height, path)
.then((image) => console.log(image)); // will return 'myAwesomeImage.jpg';
```Run tests
-----
`$ npm test`