How to Test Banner Ad Image Compression Before Launch
Test banner ad image compression at the same pixel dimensions in formats the placement accepts. Compare the actual file sizes and read the offer at the size people will see. Choose the smallest tested export that keeps the required words and product details clear while meeting the published file limit for that placement.
By FroggyAds, November 25, 2026
Check which image formats the placement can accept
Write down the accepted file types, pixel dimensions and maximum file size for the placement before you open the export menu. Keep each value next to the name of the platform or publisher that supplied it. A banner can meet the file limit and still have the wrong dimensions. An image at the right dimensions can fail because the uploaded file weighs too much or uses an unsupported format.
Our Display sizes and specifications guide lists JPG and PNG among the published creative formats and 300x250 among the common sizes. Confirm the current requirements for the campaign you are preparing. As a separate example, the Google Ads uploaded image ad specifications list GIF, JPG and PNG and state a 150 KB maximum for that image ad category. Use the limit published for your own upload and keep its units with the record.
Check transparency as part of format choice. If an approved banner needs a transparent edge, verify that the intended placement accepts an output that preserves it. If the selected format requires an opaque image, confirm the background color with the design owner before making versions. Test the final composite on a preview that represents the placement around the banner.
If you are preparing an image campaign, create your free FroggyAds account and keep the selected format, dimensions and file limit with your creative brief. That gives the buyer and designer one set of requirements to use during review.
Keep the artwork and raster dimensions fixed
Start with an approved reference at the pixel dimensions you need to deliver. Raster dimensions are the number of pixels across and down the image. Keep those values fixed while comparing compression. If you change the artwork size, the comparison also includes the effects of resampling. A smaller file can owe part of its savings to having fewer pixels, and thinner strokes can result from the resize.
Export each candidate directly from the same reference. Maintain the approved message, crop, color preparation and positioning of logos and labels. Save each candidate with a clear setting or version name while you compare it. Check its dimensions after you reopen it. A preset with a familiar name can still change the scale or canvas when you switch software or save settings.
Keep the source artwork available for further exports. Saving a new JPEG from a previous JPEG gives the encoder an image that already contains the earlier approximations. If a candidate needs a different balance of weight and detail, go back to the reference. When the placement needs a second set of pixel dimensions, make a reference for that size and run a separate comparison from it.
At the viewing stage, show all candidates at the same on-screen dimensions as well. If the buyer can preview a 300x250 banner in a smaller served slot, compare the results in that view. Track the output file dimensions and its displayed size as two separate values.
Understand what the two encodes can change
Lossless PNG stores the prepared image data so that a decoder can reconstruct the stored pixel samples. The PNG format also supports an optional alpha channel where the type and workflow permit it. Image preparation can still change the data before the file is stored. If an exporter reduces the palette, flattens the background or resizes the picture before encoding, compare those output pixels with the reference too.
The conventional lossy JPEG used here approximates image information to reduce file size. Look for differences around strong color changes, edges and small type when the image is decoded. A version can preserve the large outlines and introduce a pale or colored halo along a small letter. The JPEG 1 standard describes that common lossy coding mode alongside other modes.
If your tool offers a quality setting, treat the number as a control in that tool. Pillow, for example, documents controls for quality, optimization and chroma subsampling. For a comparison focused on the quality setting, keep other settings fixed when you can. Then use the measured bytes and the decoded picture to judge the result. The same quality number may lead to a different output in another encoder or in artwork with different detail.
Read the file type from the actual export or the upload preview. A file extension can be changed while the underlying encoding stays the same. Keep the exact file the buyer will submit so the rendering and the measured size can be checked together.
Read small copy and edges at the size people see
Pick the details your creative needs to preserve. Start with the smallest line containing a price, condition or next step. Check any strokes around a logo or product edge that help identify what is being sold. A decorative area can tolerate visible changes that would be unacceptable around a qualifying word. Label the two review regions so another person knows where to look.
Open the actual image files at ordinary view. Read the required words aloud or write them down before you compare against the brief. Look for broken strokes, filled spaces inside letters and halos around strong edges. Check whether colored text has started to bleed into its background. You can use a close view to locate the change, then return to the display size to judge how it affects the offer.
For artwork used on more than one background, include the colors or surfaces approved for that placement. The same border can look sharp over a dark card and show a pale fringe over a light card. Where the platform supplies its own preview, open the upload there too. A rescaled or re-encoded version can differ from the copy you opened locally.
Our banner ad design guide covers the larger question of what the message needs to say. If the reference itself is hard to read at the intended size, correct its design first. Then repeat the compression comparison with the approved reference and unchanged copy.
Measure the same part of each decoded image
Start with exact file bytes. Compare the files you intend to submit with the limit for their format and placement. Where your team uses KiB, one KiB is 1,024 bytes. Preserve the units used by a published upload rule. Keep the actual byte reading in the record if a file browser rounds its displayed result.
For a reproducible image check, mark a small rectangle around the copy and another around a meaningful line or edge. Take the same rectangles from the reference and the decoded candidates. Work with matching image dimensions and color values so every pixel is compared with the same location. Check the registered image position if the differences seem to follow an entire outline consistently.
A simple way to measure the local change is to count each pixel when at least one red, green or blue channel differs from the reference by more than a chosen amount. Set the threshold and the two regions for that comparison before applying it to the group. Record the number of pixels in each region so a reviewer can compare counts on the same scale. Report these as differences in decoded pixels in the measured regions.
Use the counts to find and explain visible changes. A low count around the main photo can coexist with a damaged letter in the copy. A high count in texture away from the offer may be acceptable after inspection. Read the required text and the image at the served size before you use the values to choose a version.
Choose a candidate that passes both checks
Start with the files the placement can accept. Among them, keep the candidates whose words and product details still work when viewed as intended. If two candidates are equally acceptable for the approved art, use their measured weight to compare them. If the smaller one introduces visible defects around the buying condition, give the clearer candidate preference when it fits.
| What the test shows | Which detail to check | Buyer decision |
|---|---|---|
| The file fits and the small print and image edge are clear | Exact upload file and supported preview | Keep it as a candidate for submission |
| A detailed PNG exceeds the weight limit | Whether the placement accepts a second format or a simpler design | Compare another eligible export from the reference |
| A lighter JPEG fits and adds visible halos around key words | Whether a slightly larger approved file preserves those words | Keep the affected candidate on hold and compare an intermediate export |
| Pixel dimensions differ between candidates | Export preset and scaling | Remake the comparison at one approved size |
| The delivered preview differs from the local file | Expected scaling, color and provider processing | Review the delivered version before extending approval |
If none of the candidates meet the file requirement and preserve the message, change the artwork with the design owner. A calmer background behind a qualifying line can make the words more readable in a new reference. Compare permitted encodes again after the design is approved. Our Display ad design guide can help you keep the concept coherent when you adjust the layout.
Work through a measured framing kit example
Suppose a framing shop wants to promote a $29 kit with the condition "Pickup only" visible on the banner. The buyer in this hypothetical example has a 16 KiB submission budget, equal to 16,384 bytes, and can use PNG or JPEG. The approval decision is whether the candidate keeps the condition and the framed print edge clear while meeting that budget.
We created one opaque RGB ad at 300x250 and used it for every encode. In this local Pillow test, the PNG uses lossless encoding and the JPEG candidates use quality settings of 78 and 18 with the same optimization and subsampling settings. Each file was decoded back to RGB with its pixel dimensions intact. The PNG decoded to the same pixels as the reference across the whole image.
We measured an 82 by 24 pixel region around "Pickup only" and a 58 by 35 pixel region around a diagonal line in the print. A pixel counted when at least one of its three color channels moved by more than 25 on the 0 to 255 scale. The first region spans from position 35,183 to 117,207. The second spans from 177,78 to 235,113. The right and bottom boundaries are excluded.
| Measured export | File bytes | Copy patch changed out of 1,968 pixels | Edge patch changed out of 2,030 pixels |
|---|---|---|---|
| PNG reference | 32,674 | 0 | 0 |
| JPEG at quality 78 | 13,446 | 13 | 98 |
| JPEG at quality 18 | 4,908 | 282 | 372 |
In the side-by-side crop, the stronger compression leaves rougher color around the letters and a more uneven diagonal line. The condition can still be read. The middle JPEG preserves it with less visible interference and comes in 2,938 bytes below the fictional limit. The PNG exceeds the limit. For this buy, the middle JPEG goes forward and the more heavily compressed one stays out of the submission.
The illustration maps changes in the copy patch. Its visible marks correspond to pixels past the chosen comparison threshold. Keep the full export and the critical detail with the report so a reviewer can connect the pixel differences with the actual letter or edge.
Keep the review tied to the submitted file
Keep the approved source, final export, pixel dimensions and measured file bytes together. Save the platform requirements you used and the view that shows the required copy at its delivered size. Include a close crop when it helps explain a difference. Label which file and region the image shows so the evidence can be reproduced if a revised export arrives.
If the placement offers a preview after upload, compare it with the local result before spending. A provider can apply its own image processing. Where that happens, check whether the required text and edge survive in the available served view. If the outcome differs, keep evidence from each stage and identify whether the problem started in your export or appeared after submission.
Our campaign approval guide covers the wider creative and destination review. Once you have a file that meets the requirements and retains the offer, start your Display campaign with FroggyAds with the checked export and the record that supports it.
Frequently asked questions
Does a lighter banner have fewer pixels?
Check the file dimensions and byte size separately. A different encoder setting can reduce the bytes while keeping the same pixel width and height. A resize changes the width or height and can change the appearance of strokes. Hold the dimensions constant when you want to isolate the effect of compression.
When is PNG a useful choice for a banner?
Consider PNG when the placement accepts it and your artwork needs precise sample reproduction or transparency. Use the exported bytes to check the slot's file requirement. Preview the actual image, including any area where the design tool prepared the color or background before encoding.
When should I try JPEG for an ad image?
Try an accepted JPEG export when you need to reduce file weight and the offer remains readable in the decoded image. Photo-heavy artwork can be a candidate. Check the small print and hard edges as carefully as the main photo, then compare the result with the approved reference at the same pixel dimensions.
What does a JPEG quality setting tell me?
It tells you what you asked that tool to use during encoding. Check the resulting bytes, the appearance at the intended display size and any color or edge changes that matter to the offer. Keep the same encoder and other settings when you compare outputs to isolate that control.
Can I approve the ad from an enlarged crop?
Use the crop to locate and explain a difference. Review the whole banner at the served size as well, where the reader sees the line in context. Keep both images with the approval if you need to show why a file with the right size still needed a different export.
How do I separate poor artwork from a compression defect?
Open the approved reference beside the decoded export at the same scale. If both have a weak letter, adjust the reference's design. If the reference is clear and the defect appears after saving the candidate, try a different eligible export and compare that same region again.
Should I count every changed pixel in the image?
Choose regions around the details that affect the buying decision. A count across the whole image can mix background texture with a damaged price or qualifying word. Record the threshold, region size and whether the visible difference changes your decision. Use those same conditions for every candidate in the comparison.
What if my placement uses different formats on desktop and mobile?
Record the accepted file type and size limit for each placement and check the required dimensions. Build a separate reference for each output size when the layouts differ. Then compare the encodes and the actual offer at the intended display size for each placement.
How do I spot recompression after upload?
Compare the tested local file with the supported preview or delivered copy your provider makes available. Check the dimensions and the same letters and edges. If the platform has re-encoded the image, review that rendering and keep its evidence with your local check so the owner can locate the change.
How much can I compress a banner before it is too much?
Use the selected placement's file rules and the design's required details to answer the question for the actual image. Compare more than one eligible output at the same dimensions. Choose the smallest tested file whose required copy and relevant image details still read clearly in the final preview.
Sources
- W3C describes lossless PNG encoding, pixel sample types and optional transparency. Portable Network Graphics specification
- The JPEG Committee explains the common lossy coding system and the other modes covered by JPEG 1. JPEG 1 overview
- Pillow documents the JPEG output controls used in the measured example. Pillow image file formats
- Google lists accepted image formats and a maximum file size for the named uploaded image ad category. Google Ads uploaded display ads specifications