Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node package for file attachments and image resizing

Tags:

node.js

I am looking for a node package that handles file attachments and image resizing. Something similar to the paperclip and carrierwave gems.

like image 839
Lee Avatar asked Aug 21 '11 23:08

Lee


People also ask

How do I resize an image in node?

NodeJS – Resize() is an inbuilt function that is used to resize the images to the desired size. We can use resize to set the height and width using a 2-pass bilinear algorithm. It can resize an image into any size as declared by the user. We can take input from the user or resize it into fixed Width*Height size.

What is Node sharp?

sharp is a popular Node. js image processing library that supports various image file formats, such as JPEG, PNG, GIF, WebP, AVIF, SVG and TIFF. In this tutorial, you'll use sharp to read an image and extract its metadata, resize, change an image format, and compress an image.


2 Answers

Did you search the Node Modules Wiki Page? I searched for "upload" and found 2 candidates.

https://github.com/felixge/node-formidable

https://github.com/rootslab/formaline

For image resizing, gm or node-imagemagick will probably suffice.

like image 178
Peter Lyons Avatar answered Sep 20 '22 06:09

Peter Lyons


For image upload and resize, you can check papercut,
which is simular to carrierwave.

like image 39
Jimchao Avatar answered Sep 18 '22 06:09

Jimchao