You finish the app, open the upload page, and find that the store does not want “a screenshot” — it wants a table of exact pixel sizes per device, a cap on how many you may submit, and a silent rejection when one dimension is off. Then you look at your capture: 1170×2532 and 4 MB, a device size no longer required, matching nothing on the list. Nothing you do at that point meets the app store screenshot size requirements, and no compressor will fix a sizing mistake.
Apple publishes a pixel table per display and rejects anything else, accepting up to 10 images per size: 1320×2868 for the 6.9-inch display, 1284×2778 for 6.5-inch, 1242×2208 for 5.5-inch, and 2064×2752 for the 13-inch iPad.
Google Play is looser on size and stricter on shape: JPEG or 24-bit PNG, a width between 320 and 3840 pixels, an aspect ratio no wider than 2:1, and up to 8 images per device type. Both sets of rules reject the same things — transparency, and a size derived from an approximate division.
Compression here is not a contest for the smallest file. A user sees the first image at thumbnail size in search results, then zooms in to read the interface — so the text is the measurement. Lossy compression at 60 to 70 grows halos around letters on flat backgrounds, and that is the first thing visible at full width.
The practical rule: if the shot is text and interface, compress it as lossless PNG (usually 50 to 70 percent smaller) or WebP-lossless. If the background is a photograph, JPG or WebP at quality 85 to 90 stays clean. Either way a shot rarely needs more than 300 to 400 KB to look sharp edge to edge.
The most common way to ruin the result is enlarging. A 1170×2532 simulator capture scaled to 1320×2868 looks soft no matter how you compress it, because you invented pixels that were never there. Capture on the device or simulator at the required size, then compress the file that comes out unchanged.
The rule of thumb: size first, content second, compression third. Start at the required device size, write text large enough to read in a 400-pixel-wide image, then compress losslessly. Compression cannot rescue a capture that was unreadable to begin with.