imagemagick and google page speed
Posted: 2017-01-19T02:18:25-07:00
hi,
suddnely the google page speed tool give me a warings about the compression of my resize images :
"Compressing http: ...ganim.jpg could save 8.4KiB (22% reduction)."
im using imagemagick node with the following options:
{srcPath: file,
format: self._setFormat(),
width: self.options.width,
height: self.options.height + prefix,
strip: true,
interlace: "none",
colorspace: "sRGB",
dither: "none",
quality: 0.75
customArgs: [
'-define', 'jpeg:fancy-upsampling=off',
'-filter', 'Triangle',
'-define', 'filter:support=2',
'-dither', 'None',
'-gravity', 'center',
'-unsharp', '0.25x0.25+8+0.065',
'-interlace', 'none',
'-colorspace', 'sRGB',
'-crop', self.options.width + 'x' + self.options.height + '+0+0',
'+repage'
]
}
Does anyone know how to fix it?
suddnely the google page speed tool give me a warings about the compression of my resize images :
"Compressing http: ...ganim.jpg could save 8.4KiB (22% reduction)."
im using imagemagick node with the following options:
{srcPath: file,
format: self._setFormat(),
width: self.options.width,
height: self.options.height + prefix,
strip: true,
interlace: "none",
colorspace: "sRGB",
dither: "none",
quality: 0.75
customArgs: [
'-define', 'jpeg:fancy-upsampling=off',
'-filter', 'Triangle',
'-define', 'filter:support=2',
'-dither', 'None',
'-gravity', 'center',
'-unsharp', '0.25x0.25+8+0.065',
'-interlace', 'none',
'-colorspace', 'sRGB',
'-crop', self.options.width + 'x' + self.options.height + '+0+0',
'+repage'
]
}
Does anyone know how to fix it?