Frontend image resizing support
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 267
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
Hello
Since performance is quite hefty when people resize huge images, i have found some nice bicubic/bilinear filters for resizing images in the frontend via canvas.
http://jsfiddle.net/9g9Nv/96/
http://jsfiddle.net/amthrb4u/
However i can only upload the image via a hidden input as base64 string (haven't found a better way without using XHR). Also i can convert the base64 to binary on the server. But is there a way to pass this binary data to imager ?
``` js
var base64Data = req.body.resized_image;
images = [new Buffer(base64Data, 'base64').toString('binary')]; // doenst work with imager
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the two linked canvas examples with imager's existing image-input path; the issue provides no file or test names, so locate where the module accepts image data and how the Node Buffer is handled. Done means frontend-resized binary data has a supported path through imager, with behavior checked against the existing image handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- backend, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100