kraken-io / gulp-kraken Goto Github PK
View Code? Open in Web Editor NEWGulp plugin to optimize all your images with the powerful Kraken.io API
License: MIT License
Gulp plugin to optimize all your images with the powerful Kraken.io API
License: MIT License
The lossless optimization option cannot be used because the code always returns true.
Currently there is no way to specify resize. Can we get options added? I'd do it myself but I don't really know how, as much as I'll try 😄
Ideally if we can pass a size and and prefix so I can optimize and create responsive image options, then that would be perfect:
kraken({
key: 'XXXX',
secret: 'YYYY',
lossy: true,
wait: true,
resize: {
width: 100,
height: 75,
strategy: 'fit',
prefix:'mobile-'
}
})
Hi! :)
lossy: options.lossy || true - always true :)
it's all right:
lossy: options.lossy === undefined ? false : options.lossy
To my mind it is bad approach to optimize the source files. It crashes many of my svg in source also.
It looks like lines ~53-56 are duplicates of the previous lines ~48-51. I'm not sure whether there is a reason for this.
I realize there is a concurrency option, but the task does not properly skip and move on to other images in the queue. Each time I run gulp kraken
task I have created following the documentation, it only processes the first 16 images and does not track or follow up with details after those even though there are well-beyond 16 images that need processing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.