matlab - How to decrease the size of an image by decreasing the pixels -
i trying decrease size of image reducing pixel values present @ width, height , colorchannel. tried make 0 (means black) value of file size increased.
can suggest how can decrease size wihout using imresize.
you can decrease size of image decrasing quality parameter (is equal 75 in example below)
sharp('input.jpg') .resize(300) .quality(75) .tofile('result.jpg', function(err, info) { if(err) console.error(err); console.log(info); });
Comments
Post a Comment