Gulp: Produce several images from one image for multiple display automatically? -


as title says, there way in gulp? need several images included in multiple picture or img srcset attributes. , asset on-the-site (means, not user uploaded pictures).

i want create 2 other images, 1 tablet, 1 mobile, using gulp-copy, not recommended. i'm assuming mobile display between 320px-500px(width), , 500-1000px(width) tablet.

my strategy optimize image first, make image master, generate 2 other images, always assume source image desktop (display width > 1000px). <-- if there task can pass paramaters assuming other display, better

my other challenge height of image, not have standards (and it's hard make one) each display. if i'm assuming 100px 800px image desktop one, don't know how calculate mobile , tablet.

is there have ever done before? resizing image resolution in gulp?

solved: gulp-responsive-images

there seem several gulp tasks able this.

why don't take @ these:

https://www.npmjs.com/package/gulp-responsive

https://www.npmjs.com/package/gulp-responsive-images


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -