MAGODUCK

Category: Compression

  • Compress Photos for Uploads at JPEG Quality 85 or 95

    Compress Photos for Uploads at JPEG Quality 85 or 95

    Quick answer

    Try a lower JPEG quality on a copy, then inspect the result at the size people will see. On the same 900 × 600 image in Chromium, JPEG quality 85 used 43.1% fewer bytes than quality 95. Download both below to compare detail.

    Examples checked November 11, 2026.

    Evidence and accountability: read our testing methodology, contributor profile and editorial and corrections policy. The dated examples are specific tests, not a guarantee for every file or device.

    What image compression actually does

    Image compression reduces the number of bytes needed to store or transfer an image. It does not automatically change the image’s pixel dimensions. A 1600×900 photo can remain 1600×900 after compression while the file gets much smaller.

    There are two broad approaches. Lossless compression stores the image in a way that allows the represented pixels to be reconstructed exactly. Lossy compression discards or approximates some information to achieve larger savings. JPEG is normally lossy. PNG is lossless. WebP and AVIF can support lossy and lossless modes depending on the encoder and workflow.

    Compression vs resizing: the distinction that saves the most bytes

    Compression changes how efficiently image data is stored. Resizing changes how many pixels exist. If a 4000-pixel-wide photo is displayed at 1200 pixels, sending all 4000 pixels is often wasteful. In that situation, reducing dimensions can remove far more data than a small quality-slider adjustment.

    That does not mean you should resize every image aggressively. A high-density display may benefit from a larger source than its CSS display width, and responsive delivery can send different image sizes to different devices. The practical lesson is to size the delivered image for the real layout instead of uploading a camera-size original and hoping compression alone will fix it.

    Lossless vs lossy compression

    Two different meanings of “without losing quality”
    Goal What it means Typical approach
    Exact pixel preservation The decoded pixels must match the source. Lossless encoding such as PNG or lossless WebP, where appropriate.
    Visually acceptable output Some information may change, but the image still looks good for its intended use. Controlled JPEG, WebP or AVIF lossy encoding, checked against the source.

    Those goals are not interchangeable. A lossy file can look excellent while still being mathematically different. A lossless file can be much larger than necessary for ordinary web delivery.

    Why 100% quality is usually a poor default

    A quality slider is an encoder control, not a universal percentage of visual fidelity. JPEG quality 80 in one encoder is not guaranteed to equal quality 80 in another encoder, and JPEG 80 is not directly equivalent to WebP 80. At very high lossy settings, file size can rise quickly for relatively small visual gains. That is why a practical workflow starts with a sensible mid-to-high setting and then inspects the actual output.

    Download the JPEG quality comparison

    Both JPEGs use the same decoded 900 × 600 illustration. The quality setting is the only change. Download the illustration used as input and try it in the JPG Compressor and compare actual bytes at the quality you need.

    JPEG quality ladder

    Open both files at 100% zoom and compare detailed textures and edges. Lower settings change different parts of different images.

    The 900 by 600 sample encoded at JPEG quality 85
    The quality-85 file from this comparison.

    Compare file sizes and decoded changes

    Changed pixel counts compare each decoded JPEG with the same pre-encode RGB image. Even a one-level channel change counts. Inspect the downloads to judge visible differences.

    Same input and dimensions, different JPEG quality
    Export File size Changed decoded pixels
    JPEG quality 95 117,121 bytes 488,192
    JPEG quality 85 66,694 bytes 507,846

    What compression artifacts actually look like

    Do not judge compression only from the file-size number. Inspect hard edges, high-frequency texture, gradients, hair or fur, small text, icon boundaries and large areas of smooth color. Depending on the image and codec, damage can appear as blockiness, ringing, smearing, banding, mosquito noise around edges, or general loss of texture.

    Screenshots and small text behave differently from photos

    Photo-oriented lossy compression is often forgiving on natural textures. Compare small text and one-pixel UI lines carefully. Use a lossless format when the decoded pixels must match.

    Resizing can beat another round of compression

    At the same JPEG quality setting, resizing this image from 900 × 600 to 450 × 300 changed the file from 66,694 bytes to 26,576 bytes. Use the Image Resizer if the smaller dimensions are sufficient.

    This is why an oversized source should not be “fixed” only by pushing the quality slider lower. If the page never needs the extra pixels, resizing can remove them before the encoder has to spend bytes describing them.

    Why repeated JPEG saving is a bad habit

    Each JPEG re-encode can introduce additional rounding and visible artifacts. Export a new derivative from the cleanest available original instead of saving over an already compressed copy.

    That is the important part: repeatedly saving a lossy derivative does not keep buying useful size reductions. It can simply add another generation of irreversible change. Keep a master/original when the image matters and export delivery copies from that source.

    PNG compression level can change file size without changing pixels

    PNG can encode identical pixels at different compression settings. More work can produce a smaller PNG, while the pixels after lossless decoding match the encoded input.

    The catch is that the size difference between good PNG settings can be small while encoding effort rises, and different PNG optimizers can use additional techniques. Do not assume “maximum level” always gives a meaningful real-world win.

    JPG vs PNG vs WebP vs AVIF

    There is no universal best format. The choice depends on image content, transparency, target browsers, tooling and whether you need lossless or lossy output.

    Practical format roles for compression workflows
    Format Typical strength Main caution
    JPG / JPEG Widely compatible lossy delivery for photographs. No alpha transparency; repeated lossy saves accumulate change.
    PNG Lossless screenshots, sharp graphics and alpha transparency. Can be very large for complex photographs.
    WebP Lossy or lossless web images, with transparency support. Quality numbers are encoder-specific; compare actual output.
    AVIF Modern lossy/lossless web delivery with strong compression potential and alpha support. Encoding can be slower and legacy compatibility still needs consideration for some audiences.

    Current MDN guidance lists JPEG, PNG, WebP and AVIF among widely used web raster formats and notes that WebP and AVIF can provide stronger compression than legacy formats in many cases. Format choice still needs fallbacks or compatibility decisions appropriate to the audience.

    Decision guide for choosing compression workflows for photographs, screenshots, transparent graphics and responsive websites.
    Pick the workflow first. A quality slider cannot fix the wrong dimensions or an unsuitable format.

    Practical starting settings

    For web photos, try a mid-to-high lossy setting, inspect edges and textures at the intended display size, then check the actual output bytes.

    • Photographs: resize to the delivery dimensions first, then test a mid-to-high JPEG/WebP/AVIF quality and compare against the source.
    • Screenshots and UI: start with PNG or another lossless-capable format when small text and sharp edges matter.
    • Flat graphics: lossless compression can be both clean and compact when colors repeat.
    • Transparency: use a format/mode that can actually store alpha. Standard JPEG cannot.
    • Important masters: keep the original. Treat compressed delivery files as exports, not your only copy.

    How to compress an image without ruining it

    Check a batch ZIP before sharing

    1. Compare the number of completed results in the queue with the files inside the opened ZIP.
    2. Check failed items separately. The archive holds completed outputs.
    3. Open one saved file of each format and verify its dimensions and appearance.

    Try the same two source files with the Batch Image Converter or the Batch Image Compressor. Download the PNG input, JPEG input and the two-file WebP ZIP from the browser test. The two different inputs share a base filename, so the second WebP receives a distinct name.

    1. Decide where the image will be used. A website hero, social post, email attachment and archive master do not need the same dimensions or format.
    2. Set realistic pixel dimensions. Do not send 4000 pixels if the layout never needs them. For responsive sites, plan multiple widths rather than one oversized file.
    3. Choose the format for the content. Photographs, screenshots, flat graphics and transparent assets compress differently.
    4. Export at a sensible quality. Start higher than you expect to need, then reduce gradually.
    5. Inspect the output. Check normal viewing size and 100% view. Look at edges, texture, gradients, hair, text and icons.
    6. Compare bytes, not marketing claims. Keep the smaller file only if its visual quality is acceptable for the job.
    7. Test the real page or device. A technically good file can still be wrong if the layout stretches it, crops it badly, or downloads an unnecessarily large responsive source.
    8. Keep the original. If you need a new size later, export again from the best source rather than repeatedly recompressing an old derivative.

    How do I compress an image to a 50 KB or 100 KB target?

    1. Read the upload requirements. Check accepted file formats, pixel width and height, and the maximum file bytes. A correct KB size alone may not satisfy the form.
    2. Choose a supported still image. If the form requires smaller pixel dimensions, resize first and then compress that copy.
    3. Select a quick target. Open the Image Compressor and choose 50 KB, 100 KB, 200 KB, 500 KB or 1 MB. You can also enter a custom limit.
    4. Compress, inspect and verify. Check the actual byte count, dimensions, format and target status before downloading. Keep the original if the result is too degraded.

    The target is a per-file size limit. A 50 KB target allows up to 50,000 bytes and a 100 KB target allows up to 100,000 bytes. The compressor preserves the supported input format and pixel dimensions. For JPG and WebP it tries up to eight encoder settings, starting at the selected quality ceiling. Preview the output because the lower settings can degrade visible detail.

    PNG uses one lossless DEFLATE pass; it does not reduce colors, resize or change format to force a fit. If the tested output is too large, the result explicitly says Target not met. Keep that best-effort result or separately resize the source and retry. Optional JSON details show exact output bytes, target status and encoder settings without filenames or image data. Tool links appear in related tools when those workflows are released.

    Here 1 MB means 1,000 KB, or 1,000,000 bytes. KB and KiB differ: 1 KiB is 1,024 bytes. A destination can also round its displayed size. A MAGODUCK link with a valid ?target_kb=200 preselects 200 KB; it does not select a file or start compression.

    How to compress images for a website

    Website performance is not only a codec problem. Google/web.dev guidance on responsive images emphasizes srcset and sizes so browsers can choose an appropriate source for the user’s device and layout. Explicit width and height also help reserve layout space and avoid unnecessary layout shifts.

    A strong website workflow therefore combines right-sized dimensions + suitable format + sensible compression + responsive delivery. One “ultra-compressed” 3000-pixel file is not an efficient substitute for proper responsive sources.

    How to compress for social sharing

    Social platforms commonly process uploads again. Your safest approach is to export a clean, appropriately sized copy rather than repeatedly saving an already-compressed download from another platform. Keep text and graphics sharp, and avoid crushing quality just to hit a tiny file before the platform applies another encode.

    Common compression mistakes

    • Uploading huge dimensions and only lowering quality. Resize first when the extra pixels will never be shown.
    • Assuming quality 100 is lossless. A JPEG at its highest quality setting is still a lossy JPEG.
    • Using PNG for every photo. Lossless does not automatically mean efficient.
    • Using JPG for transparent artwork. Standard JPEG has no alpha channel.
    • Recompressing an already compressed file again and again. Lossy generations can accumulate changes.
    • Judging only from thumbnails. Artifacts around fine edges can disappear when the image is scaled down.
    • Deleting the master too early. Keep a clean original until the delivery output has been checked.

    Image compression FAQ

    How do I make a JPEG smaller for a job or application form?

    Confirm the form’s file-size cap and minimum dimensions. Save a separate copy, try a lower quality setting, then inspect its size and readability before submitting.

    Why is my image still above a 100 KB or 200 KB target?

    Some images cannot fit that limit while keeping the current format and dimensions. JPG/WebP target mode has a bounded quality search; PNG uses one lossless pass and does not reduce colors. Read the actual output bytes and the target-unmet result. If allowed, reduce pixel dimensions or choose a different accepted format separately, then retry.

    Can I reduce image size in KB without changing dimensions?

    The MAGODUCK Image Compressor keeps supported still-image dimensions and format. Lossy JPG/WebP quality may change, while the PNG path uses lossless DEFLATE. Keeping dimensions does not guarantee that a requested byte limit can be reached.

    Can you compress an image without losing quality?

    Yes if you mean lossless compression and the format/content has compressible redundancy. If you mean a large reduction with lossy compression, some image information changes; the practical goal is usually to keep that change visually acceptable.

    What is lossless image compression?

    Lossless compression stores data more efficiently while allowing the represented image data to be reconstructed exactly. PNG uses lossless compression; WebP and AVIF also offer lossless modes.

    What JPG quality setting should I use?

    There is no universal number. Start with a mid-to-high quality setting, inspect your image, and lower it only while the output remains acceptable. Encoder quality scales differ.

    Does resizing reduce file size?

    Usually, yes. Fewer pixels generally require fewer bytes to describe. In the downloadable quality-85 illustration, resizing from 900×600 to 450×300 changed the JPEG from 66,694 bytes to 26,576 bytes (about 60.2% smaller).

    Why does my compressed image look blurry?

    The quality setting may be too aggressive, the image may have been resized too small and then stretched, or repeated lossy saves may have accumulated damage. Check the actual pixel dimensions and compare against the original.

    Should I use JPG, PNG, WebP or AVIF?

    Use the format that matches the content and delivery environment. JPG is a dependable photo fallback, PNG is strong for lossless graphics and transparency, and WebP/AVIF can offer modern lossy or lossless web delivery. Test the real output rather than assuming one format always wins.

    How do I compress images for a website?

    Set appropriate dimensions, choose a suitable format, export at a tested quality, and provide responsive image sources with srcset and sizes where appropriate.

    Methodology

    We ran these exports on November 11, 2026 in Chromium 156.0.8078.79. We decoded each source, drew it at the stated dimensions, encoded it with Canvas, and reopened the output. The measurement file with settings and SHA-256 hashes records file sizes and decoded pixel counts. Run node tests/blog-examples-v498.cjs /path/to/outputs from the plugin with Playwright and Chromium installed. Encoders can differ across browser versions.

    For reference, the earlier reported tables (CSV) record the previous article figures. The original inputs for those figures are unavailable. The examples above use the downloadable files shown here.

    Sources

    Editorial transparency: This guide was drafted with AI assistance. The 900 × 600 JPEG exports at quality 95 and 85 and the 450 × 300 resized output have accompanying measurement data. Their byte differences come from one controlled illustration, not a universal percentage saving or a promise of visually lossless JPEG compression.

    The practical rule

    Use the right dimensions first, then the right format, then the lowest lossy quality that still looks good for the actual use. Keep the original, compare real outputs, and do not treat “without ruining quality” as a promise that lossy compression can remove bytes without changing information.