sharp supports several features that can optimize the filesize of output images. These can give significant improvements, but can be very expensive operations so should not be the default. The options are palette for png, and a number of options for jpeg that are enabled with the mozjpeg option.
sharp supports several features that can optimize the filesize of output images. These can give significant improvements, but can be very expensive operations so should not be the default. The options are palette for png, and a number of options for jpeg that are enabled with the mozjpeg option.