Image repair
How to remove JPEG artifacts and compression blocks without destroying detail
JPEG compression is designed to discard image information people are less likely to notice. When a file is saved too aggressively, repeatedly re-uploaded or passed through messaging and social platforms, those losses become visible as square blocks, ringing around edges, smeared texture and crawling noise around text. The safest repair starts by identifying compression artifacts before adding sharpness or pixels.
Key takeaways
- Find the least-compressed copy before processing.
- Reduce blocks and ringing before strong sharpening or upscaling.
- Judge text, faces and smooth gradients separately.
- Keep a clean master so the image is not repeatedly recompressed.
- Do not expect artifact removal to restore exact missing information.
Recognize the main types of JPEG damage
Block artifacts appear as square or rectangular regions, especially in flat shadows and smooth gradients. Ringing looks like bright or dark ripples beside high-contrast edges. “Mosquito noise” appears as crawling speckles around text, hair, branches and other fine structures. Color detail can also smear across neighboring pixels.
These defects often occur together. Inspect the image at 100% zoom, then return to normal viewing size. If the blocks are only visible at extreme zoom, a mild cleanup may be enough; if they are obvious at normal size, the source has lost substantial information and stronger repair will involve more estimation.
- Blocks in smooth areas indicate heavy quantization.
- Ripples around text or edges indicate ringing.
- Colored smears often appear in highly compressed shadows.
- Repeated social-media downloads can compound all three.
Look for a better source before using AI
The best compression repair is often recovering the original file. Check camera storage, cloud backups, email attachments, design exports or the sender’s device. A 2 MB original usually gives an enhancement model far more useful information than a 90 KB chat preview.
Avoid using a screenshot of an already compressed image unless the screenshot is the only surviving copy. Screenshots can add display scaling, a second compression stage and interface pixels that were never part of the source.
Clean compression before enlargement
Upscaling a blocky image first makes the block boundaries larger and can encourage the model to interpret artifacts as real texture. Reduce compression noise and obvious blocks before the final enlargement, then reassess whether the image still needs general enhancement.
Use conservative cleanup around faces, hair, fabric and foliage. A denoiser that completely flattens a wall may also erase legitimate skin pores or fine product texture. The goal is to reduce distracting artifacts, not turn every surface into a smooth gradient.
Restore edge clarity carefully
After compression cleanup, high-contrast edges may feel slightly soft. Add only enough enhancement or sharpening to restore readability. Excessive sharpening can recreate ringing and produce crunchy outlines that look like a different kind of compression damage.
Text and logos deserve manual review because a generative model can convert an ambiguous character into a crisp but incorrect one. For important copy, replace typography from the original design file when possible instead of relying on reconstruction.
Export without creating a new compression problem
Keep a high-quality master after repair and create delivery copies from that master. Avoid a workflow where each edit starts from the last exported JPEG; every lossy save can discard additional information.
For web delivery, resize to the required dimensions first and then choose JPEG, WebP or AVIF settings that look clean on representative devices. For transparency or flat graphics, PNG may be more appropriate even if the file is larger.
Know the limit of artifact removal
When compression has removed fine texture, the exact original detail no longer exists in the file. AI can estimate plausible texture and improve visual quality, but it cannot prove what the missing pixels contained. This distinction matters for documentary, legal and identity-sensitive images.
Use the repaired version for presentation and keep the compressed source alongside it. If exact wording, identity or evidence matters, verify against an independent source instead of treating generated detail as recovered fact.
Use gradients and hard edges as compression quality indicators
Smooth skies, studio backgrounds and skin shadows reveal blocking and banding quickly, while text and thin dark lines reveal ringing. Check both kinds of area after cleanup. A setting that smooths a gradient beautifully can still damage typography or hair, so one-region inspection is not enough.
If the image will be uploaded to another service, leave a little quality margin for the next compression stage. A source that is already on the edge of visible artifacts can look much worse after a social platform, CMS or marketplace encodes it again.
- Inspect flat gradients for blocks and color banding.
- Inspect text and high-contrast edges for ringing.
- Avoid repeated JPEG-to-JPEG editing cycles.
- Keep a high-quality repaired master before final delivery compression.
Do not sharpen away a compression problem
Sharpening can make compressed edges look temporarily clearer, but it also increases the contrast of block boundaries and ringing. Reduce the compression artifact first, then restore only the edge definition the cleanup genuinely softened.
For logos, captions and interface screenshots, manual recreation may be more accurate than generative reconstruction when the original pixels are badly damaged. Crisp wrong text is still wrong, even if it looks more professional.
Denoise source-quality checks for this workflow
The recommendations in “How to remove JPEG artifacts and compression blocks without destroying detail” work best when the source file is treated as part of the workflow rather than as a neutral starting point. For AI Denoise, inspect the original pixel dimensions, compression, blur, noise, clipping and crop before processing. A camera original or clean design export usually contains more useful information than a screenshot, messaging-app copy or file that has already been resized several times. AI Denoise supports JPG, PNG, WebP, AVIF, but changing an extension cannot restore detail that was discarded earlier. In the context of “Remove JPEG artifacts,” this checkpoint is applied specifically to AI Denoise and its denoise image workflow.
For denoise image, keep an untouched master and make experimental edits on a working copy. This matters for night photos and high iso because a later crop, platform export or client revision may require pixels that were removed from an earlier version. If the source contains several defects, correct the most destructive limitation first. Noise can be enlarged by upscaling, blur can be exaggerated by sharpening, and an overly tight crop can make later background or generative work harder. In the context of “Remove JPEG artifacts,” this checkpoint is applied specifically to AI Denoise and its denoise image workflow.
How to choose a conservative denoise image setting
A useful extension of “Remove JPEG artifacts” is to choose settings from the final requirement rather than from the maximum available option. With AI Denoise, stronger reconstruction, larger output dimensions or more aggressive edits can create a dramatic preview while also increasing the chance of halos, altered lettering, repeated texture or unnecessary file size. Begin with the smallest effective setting and judge whether it solves the visible problem at the size where the image will actually be used. In the context of “Remove JPEG artifacts,” this checkpoint is applied specifically to AI Denoise and its denoise image workflow.
If the first denoise image result is already suitable, stop there. Repeating enhancement or stacking several corrections can compound small artifacts and make it difficult to identify which step changed an important detail. A controlled workflow gives each operation one purpose: repair the dominant defect, review the result, then resize, crop, convert or compress only when the delivery requirement calls for it. In the context of “Remove JPEG artifacts,” this checkpoint is applied specifically to AI Denoise and its denoise image workflow.
Review details that can change during denoise
The quality checks in “How to remove JPEG artifacts and compression blocks without destroying detail” should include both 100% zoom and normal viewing size. Inspect faces, eyes, teeth, hair, hands, logos, labels, small text, straight lines, product edges, fabric, foliage and repeating patterns. These areas make processing mistakes easier to see because a small distortion can change identity, readability or product accuracy even when the overall image looks cleaner. Compare the changed region directly with the original instead of relying on memory. In the context of “Remove JPEG artifacts,” this checkpoint is applied specifically to AI Denoise and its denoise image workflow.
For remove image noise, separate visual plausibility from factual accuracy. AI-assisted processing can create detail that fits nearby pixels without proving that the detail existed in the source. Even deterministic utilities can alter dimensions, transparency, metadata, compression or framing. The output passes review only when it looks appropriate and still communicates the correct information for the intended use. In the context of “Remove JPEG artifacts,” this checkpoint is applied specifically to AI Denoise and its denoise image workflow.
When AI Denoise is the wrong tool for the job
Search phrases such as denoise image and remove image noise often describe a desired outcome rather than the actual defect. “Remove JPEG artifacts” becomes more useful when you also know when not to use AI Denoise. If the image only needs a crop, smaller dimensions, another format, lower file size, a sampled color or metadata cleanup, a free deterministic utility is usually the better choice. If the dominant problem is blur, noise, insufficient resolution, background cleanup or generative reconstruction, use the specialist workflow that matches that limitation. In the context of “Remove JPEG artifacts,” this checkpoint is applied specifically to AI Denoise and its denoise image workflow.
Choosing the lighter correct operation protects quality and reduces unnecessary processing. A larger file is not automatically a better file, and an AI-generated correction is not automatically better than a normal pixel operation. Describe the problem in one sentence before choosing the tool. If that sentence does not match remove image noise, move to the workflow that does. In the context of “Remove JPEG artifacts,” this checkpoint is applied specifically to AI Denoise and its denoise image workflow.
How this guide is maintained
Nexhance AI publishes guidance around the same image problems and workflow limits documented in the product. The editorial standard is to preserve the source, distinguish captured information from AI reconstruction, use the smallest effective processing step and review important details at both 100% zoom and the final delivery size.
Recommendations are updated when product controls, supported formats, output limits or workflow behavior change. The guide does not claim that AI can recover facts that were never recorded in the source image.