Process images the right way with SharpJS | Image cropping, reducing size and more...

Опубликовано: 15 Ноябрь 2020
на канале: Kritika & Pranav | Programmer Couple
4,242
42

Sharp/Sharp.js is one of the best libraries for processing images with javascript.

The typical use case for this high-speed Node.js module is to convert large images in common formats to smaller, web-friendly JPEG, PNG, and WebP images of varying dimensions.

With Sharp js, resizing an image is typically 4x-5x faster than using the quickest ImageMagick and GraphicsMagick settings due to its use of libvips.

As well as image resizing, operations such as rotation, extraction, compositing, and gamma correction are available.

Sharp official docs: https://sharp.pixelplumbing.com/
--
Sign up for our newsletter: https://www.theimmigrantprogrammers.com/
--
Timestamps:
0:00 Intro
0:11 Problem with Processing Heavy Images
2:18 Installation and Prerequisites
3:20 Resize/Cropping the Image
4:03 Saving the Output File
4:50 Retrieving Greyscale / Grayscale
6:40 Image Negative
7:58 Blurring the Image
9:50 Rotate Image / Change Output Format
10:18 Enhance Image Quality
11:30 Flip
12:10 Flip v/s Rotate
14:41 Fun Example - Rotate Image
16:10 Flop
18:15 Storing Image into the Database
21:37 Processing GIFs
22:21 Working with WebP Format
23:48 SharpJS Documentation
25:29 Outro
--
If you’re just as crazy for tech as us, we’d love to keep you around. You can also find us at:
Twitter:   / prog_couple  
Blog/Website: https://www.theimmigrantprogrammers.com
Instagram:   / programmer_couple  
Facebook:   / programmercouple  
LinkedIn:   / prog-couple  

We’ll be waiting to catch up with a fellow techie:)


Смотрите видео Process images the right way with SharpJS | Image cropping, reducing size and more... онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Kritika & Pranav | Programmer Couple 15 Ноябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,242 раз и оно понравилось 42 людям.