R
R
Roman2017-10-13 18:05:20
Node.js
Roman, 2017-10-13 18:05:20

How to crop images to certain sizes in gulp?

Hello. Can you please tell me how to implement cutting/cropping of images according to a certain size?
For example, there is an original photo 2000 * 2000 from which you need to cut pictures of different sizes in the task: 1200 * 900, 1800 * 1200, 600 * 400, etc. you have to set the dimensions yourself.
Maybe someone with a similar contact or stumbled upon a similar plugin.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Goryachev, 2017-10-13
@Viruz

https://www.npmjs.com/package/gulp-image-resize
crop : true,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question