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:
Comments
Post a Comment