
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
ember-cli-imagemin
Advanced tools
Ember CLI addon to minify images with imagemin.
ember install ember-cli-imagemin
By default, this addon will run during production builds, compressing the following image types:
svgo
)optipng
)jpegtran
, progressive: true
)gifsicle
, interlaced: true
)These settings can be changed using the options below.
Type: Boolean
Default: app.env === 'production'
Enable minification of images. Defaults to true
in production environment, otherwise false
.
const app = new EmberApp({
imagemin: {
enabled: true,
}
})
Alternatively, you may simply set the imagemin
key to a Boolean
value as a shortcut to enable/disable with the default plugins.
const app = new EmberApp({
imagemin: true,
})
Type: Array
Default:
plugins: [
require('imagemin-gifsicle')({ interlaced: true }),
require('imagemin-jpegtran')({ progressive: true }),
require('imagemin-optipng')(),
require('imagemin-svgo')(),
]
Imagemin plugins, and configuration options, used to compress images. Each imagemin plugin needs to be installed into your project via npm
. Specifying plugins will replace the default list. If you wish to extend, the list don't forget to include all plugins you wish to use.
optipng
with pngquant
const app = new EmberApp({
imagemin: {
plugins: [
require('imagemin-gifsicle')({ interlaced: true }),
require('imagemin-jpegtran')({ progressive: true }),
require('imagemin-pngquant')(),
require('imagemin-svgo')(),
],
},
})
var app = new EmberApp({
plugins: [
require('imagemin-optipng')(),
require('imagemin-svgo')(),
]
});
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Minify images with imagemin.
The npm package ember-cli-imagemin receives a total of 221 weekly downloads. As such, ember-cli-imagemin popularity was classified as not popular.
We found that ember-cli-imagemin 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.