Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

148
Views
Aggressive image compression? (Image webpack loader)

My browser's image choices from srcset (which are correct size wise from what I can see) have highlighted that image-webpack-loader might be doing some pretty aggressive compression. I just don't really have the experience to know if this is excessive (although my eyes can see the pixelation, so...)

The example was a jpg image 900x393 and 159KB, which was being compressed to 10.8KB. Does that seem really small?

My webpack loader:

{
    loader: "image-webpack-loader",               
        options: { 
            mozjpeg: {
                progressive: true,
                quality: 65,
            },
            optipng: {
                enabled: false,
            },
            pngquant: {
                quality: [0.65, 0.9],
                speed: 4,
            },
            webp: {
                quality: 75
            },
        },
    },

I don't think it was my srcset attribute, as it's picking the 900px width image at about the right time.

Any help appreciated

**Edit: So I think it's compressing it too much in the places that are slightly out of focus. Weirdly removing the entire options object results in a much better image @ 19k, but using

            mozjpeg: {
                quality: 100,
            },

inside the options object, or removing the mozjpeg entry still compresses the image down to 10.8k

Pretty confused to be honest. Is there a way to avoid compressing specific images?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!