Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
the plugin to help UI Engineer Conversion @Nx images for haplotype Pictures,for @2x,@3x to @1x
1.如果是@2x转化为@1x的图片,需要@2x的图片的尺寸必须是偶数。 2.如果是@3x转化为@2x,@1x的图片,需要@3x的图片尺寸是3的倍数。
gulp-mutuo需要安装Graphics Magick(gm)
npm install gulp-mutuo
导入gulp-mutuo依赖:
var mutuo = require("gulp-mutuo");
gulpfile配置文件中增加task,如下:
//处理图片
gulp.task("coverRetina",function(){
return gulp.src("src/slice/*")
.pipe(mutuo());
})
// 默认任务
gulp.task('default',["coverRetina"],function(cb){
gutil.log("[INFO] :")
gutil.log("Done ---- task has been compiled!")
});
isUHD: 默认false,支持3倍图转换为@2x,@1x的图片
//处理图片
gulp.task("coverRetina",function(){
return gulp.src("src/slice/*")
.pipe(mutuo({isUHD:true}));
})
具体实例请参考example文件下demo
2014-12-23: 1.增加3倍图支持 2.优化核心生成图片的模式。 3.省去了不必要的计算模式。
FAQs
the plugin to help UI Engineer Conversion @Nx images for haplotype Pictures,for @2x,@3x to @1x
The npm package gulp-mutuo receives a total of 0 weekly downloads. As such, gulp-mutuo popularity was classified as not popular.
We found that gulp-mutuo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.