You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create the @parcel/optimizer-mozjpeg package. This should include an Optimizer plugin that compresses JPEG images with mozjpeg. Ideally, this should wrap a C++ module to call mozjpeg rather than relying on writing temporary files and calling command line tools. Perhaps such a module already exists, otherwise we should create one. If this proves too difficult, shelling out to a command line tool could be a good starting point.
This plugin should be included in @parcel/config-default for *.{jpg,jpeg} to optimize JPEGs by default in production. (??)
Configuration
Optional configuration should be done through a .mozjpegrc file. We should include good default settings, but it should be possible to override them if needed. See here for available options.
The text was updated successfully, but these errors were encountered:
Create the
@parcel/optimizer-mozjpeg
package. This should include an Optimizer plugin that compresses JPEG images with mozjpeg. Ideally, this should wrap a C++ module to call mozjpeg rather than relying on writing temporary files and calling command line tools. Perhaps such a module already exists, otherwise we should create one. If this proves too difficult, shelling out to a command line tool could be a good starting point.This plugin should be included in
@parcel/config-default
for*.{jpg,jpeg}
to optimize JPEGs by default in production. (??)Configuration
Optional configuration should be done through a
.mozjpegrc
file. We should include good default settings, but it should be possible to override them if needed. See here for available options.The text was updated successfully, but these errors were encountered: