I once received a batch of product photos from a client that looked like they'd been through a washing machine. Every image had blocky squares scattered across smooth surfaces, weird green and purple fringing around edges, and a general muddiness that made the products look nothing like they do in person. The client had taken the photos on their phone, sent them through a messaging app, and the app had compressed them to oblivion.
Those photos were still usable. Not because I'm a miracle worker, but because AI artifact removal has gotten genuinely good at fixing exactly this kind of damage. Here's what's happening with your compressed photos and how to fix them.
Why JPEG Artifacts Happen
JPEG (Wikipedia: JPEG) is a lossy compression format. That means when you save a photo as a JPEG, the algorithm throws away image data to reduce file size. It's designed to discard information that the human eye is less likely to notice, but at lower quality settings — or when the image is compressed multiple times — the discarded data becomes visible.
The JPEG algorithm works by dividing the image into 8x8 pixel blocks and applying a mathematical transform (Discrete Cosine Transform) to each block. It then quantizes the results, reducing precision in the frequency data. This is where the data loss happens. When too much precision is removed, the blocks become visible as distinct squares, especially in areas with smooth gradients or subtle color transitions.
Here's what makes it worse: every time you open a JPEG, edit it, and save it again, the compression is applied fresh. The artifacts compound. A photo that's been saved 10 times looks significantly worse than one saved once, even at the same quality setting. This is called "generation loss," and it's why editing JPEG files directly is a bad practice.
Social media platforms make this worse by re-compressing every image you upload. Instagram, Facebook, WhatsApp, and similar services apply their own compression on top of whatever you started with. A photo that looked pristine on your phone may arrive at its destination with noticeable artifacts.
The Different Types of JPEG Artifacts
Not all JPEG artifacts look the same. Understanding what you're seeing helps you choose the right approach to fix them.
Blocking artifacts are the most recognizable. The image looks like it's made up of visible squares, typically 8x8 pixels. This happens in smooth areas like skies, walls, and skin where the compression has removed too much detail within each block. The boundaries between blocks become visible as grid lines.
Mosquito noise (also called edge noise or ringing) appears as random colored pixels scattered around sharp edges — the outlines of objects, text, or high-contrast boundaries. It looks like a swarm of tiny colored dots hugging the edges of things. This is caused by the compression algorithm struggling to represent sharp transitions accurately.
Color banding (posterization) happens when smooth color gradients are reduced to visible steps. Instead of a smooth transition from light blue to dark blue in a sky, you see distinct bands of color. The compression has reduced the number of colors used to represent the gradient.
Blur is also a JPEG artifact. At low quality settings, the compression removes high-frequency detail (fine texture, sharp edges) to save space. The result is an image that looks softer and less detailed than the original.
In practice, most compressed JPEG images show a combination of these artifacts. The specific mix depends on the content of the image and how aggressively it was compressed.
Traditional vs AI Artifact Removal
Traditional artifact removal uses filters that smooth out the visible blocks and noise. The results are acceptable but limited — the smoothing tends to reduce detail along with the artifacts, making the image look waxy or overly soft. You're essentially trading one problem (artifacts) for another (lost detail).
AI artifact removal works differently. The neural network has been trained on pairs of compressed and uncompressed images. It learns what the original detail looked like before compression damaged it. When you give it a compressed image, it doesn't just smooth the artifacts — it reconstructs the detail that was lost.
The practical difference is significant. With traditional methods, a compressed sky might go from blocky to smooth but slightly blurry. With AI, it goes from blocky to smooth and clean, with natural-looking gradients. Edges that had mosquito noise become clean and sharp. Textured areas that were blurred by compression regain their detail.
Step-by-Step: Removing JPEG Artifacts
Here's the process I use for fixing compressed photos:
Step 1: Assess the damage. Zoom into the photo at 100% and look for the types of artifacts present. Note whether you see blocking, mosquito noise, color banding, or general blur. Some areas may show multiple types.
Step 2: Choose the right tool. For most people, an AI upscaler with artifact removal built in (like Photo BlowUp) is the most practical option. It handles all artifact types simultaneously and combines the fix with optional upscaling.
Step 3: Apply artifact removal at moderate strength. Start with 50-60% strength. Over-processing can smooth out real detail that you want to keep. It's better to apply moderate artifact removal and keep natural texture than to eliminate every artifact at the cost of making the image look plastic.
Step 4: Check at 100% zoom. Zoom into the areas that had the worst artifacts. The blocking should be gone or greatly reduced. Edges should be clean. Color gradients should be smooth. If artifacts are still visible, increase the strength slightly and reprocess.
Step 5: Combine with upscaling if needed. If the compressed photo is also low resolution, apply artifact removal and upscaling together. The AI can clean up the artifacts while enlarging the image, which is more efficient than processing twice.
Preventing JPEG Artifacts
The best fix is prevention. Here are practical habits that keep your photos artifact-free:
Shoot in RAW when possible. RAW files aren't compressed with JPEG's lossy algorithm. You can edit and export to JPEG once at maximum quality, avoiding generation loss entirely.
Save JPEGs at maximum quality. In your camera settings and editing software, choose the highest JPEG quality setting. The file size increase is modest, and the quality improvement is noticeable.
Avoid re-saving JPEGs repeatedly. If you need to edit a photo, work from the original (RAW or high-quality JPEG) and save your edited version as a new file. Don't open, edit, and overwrite the same JPEG multiple times.
Be aware of messaging app compression. WhatsApp, Telegram, and similar apps compress images aggressively. If you need to send a photo at full quality, use email, cloud storage links, or file-sharing services instead.
Use PNG for editing workflows. If you're doing multiple edits in an image editor, save intermediate versions as PNG (lossless) and only export to JPEG as the final step.
When Artifact Removal Is Worth It
Not every compressed photo needs fixing. Here's when the effort makes sense:
Photos you plan to print. Artifacts that are subtle on screen become very visible in print. If a compressed photo is going on paper, artifact removal is worth the processing time.
Photos you plan to enlarge. Upscaling a compressed photo放大s the artifacts along with everything else. Remove artifacts before or during upscaling for the best results.
Important or sentimental photos. Family photos, milestone events, and irreplaceable moments are worth the effort to restore, even if the compression damage is moderate.
Professional deliverables. Client work, portfolio pieces, and commercial images need to look their best. Artifact removal is a quick step that improves the final quality.
Social media photos you want to look sharp. If you're posting a photo that you want to look its best, a quick artifact cleanup before posting makes a visible difference.
JPEG artifacts are caused by lossy compression and get worse with repeated saving and social media re-compression. AI tools can effectively remove blocking, mosquito noise, and color banding while preserving or reconstructing real detail. Prevention — shooting in RAW, saving at maximum quality, and avoiding repeated re-saving — is the best long-term strategy.
Frequently Asked Questions
Ready to Try Photo BlowUp?
Our top pick for overall value. One-time payment, batch processing, offline privacy, and 60-day money-back guarantee.
Get Photo BlowUp — $39.95