CSKingMartin / gulp-jimp-resize

Maniuplate images' size with few dependencies. Uses JIMP wrapped with gulp.
MIT License
4 stars 2 forks source link

Transparacy is lost. #5

Open koreem opened 7 years ago

koreem commented 7 years ago

When you resize an image with a transparent background that transparency is lost after resizing.

koreem commented 7 years ago

I found the problem, you set Jimp.MIME_JPEG. A jpeg is never transparent. Maybe an improvement can be that a user can specify a type (png or jpeg).

koreem commented 7 years ago

Mmm I see that this feature is already implemented, but when I install this plugin from npm I get a version without different mimetypes..

vitto-moz commented 6 years ago

still, have a black background - how can I solve it?