Choose Which Image Formats LessFlux Should Process
LessFlux allows you to control which image formats are included in the optimization process. This helps you avoid unnecessary processing and focus only on the formats that matter for your website.
In most cases, keeping all formats enabled is the best choice. However, understanding what each format does will help you make better decisions if you need to customize this.
Where to find this setting
You can choose image formats from the plugin settings under the image processing section.
- Go to LessFlux settings
- Find the “Image formats” option
- Select the formats you want to include
Available image formats
LessFlux supports the most common web image formats:
- JPEG
- PNG
- GIF
- WebP
- AVIF
- SVG
Each format behaves slightly differently during optimization.
How LessFlux handles each format
JPEG
JPEG images are the most common format for photos and large visuals.
- high compression potential
- best results with lossy compression
PNG
PNG is often used for graphics and images that require transparency.
- can be optimized or converted
- may benefit from conversion to WebP
GIF
GIF files are usually used for simple animations.
- can be optimized, but size reduction is limited
WebP
WebP is a modern image format designed for the web.
- already efficient
- LessFlux can recompress it further if needed
AVIF
AVIF is a newer format with high compression efficiency.
- not converted from other formats
- can be recompressed if already used
SVG
SVG files are vector-based and behave differently from raster images.
- not compressed in the same way as images
- included mainly for consistency in processing rules
Recommended setup
For most websites, you should keep all formats enabled.
- JPEG, PNG, GIF: required for standard image optimization
- WebP: useful for recompression
- AVIF: safe to include for future use
- SVG: optional, but does not impact performance significantly
Disabling formats usually only makes sense if you have a very specific setup.
When to disable certain formats
You may want to exclude some formats in these cases:
- you use SVG files that should not be modified
- you want to avoid processing already optimized WebP images
- you are troubleshooting specific file types
Otherwise, disabling formats can lead to missed optimization opportunities.
Common mistakes
- disabling JPEG or PNG, which prevents most images from being optimized
- assuming format selection controls conversion behavior
- excluding formats without understanding their usage on the site
Keep in mind that format selection only controls which files are processed, not how they are converted.
Best practices
- keep all formats enabled unless you have a clear reason not to
- focus optimization efforts on JPEG and PNG files
- use conversion settings separately for format changes
Choosing the right formats ensures LessFlux works across your entire media library without leaving gaps in optimization.