Uncompressed: Width × Height × Bits-per-pixel ÷ 8 = bytes. A 24MP image at 24-bit RGB = 24,000,000 × 3 = 72 MB uncompressed. JPEG compression typically reduces this to 2-8 MB depending on quality setting.
RAW files store unprocessed sensor data at 12-14 bits per pixel (vs 8 for JPEG), with minimal or lossless compression. A 24MP RAW = 25-35 MB vs 5-10 MB JPEG. RAW preserves more editing flexibility but requires more storage.
Quality 90-95% is optimal for most uses - nearly indistinguishable from 100% at 1/3 the file size. Quality 80% is good for web. Below 70%, artifacts become visible. 100% quality adds significant file size with minimal visual benefit.
Use PNG for: graphics with text, logos, screenshots, transparency, or images needing lossless quality. Use JPEG for: photographs, gradients, web images where smaller size matters. PNG can be 5-10× larger than JPEG for photos.
HEIC (High Efficiency Image Container) is Apple's default photo format since iOS 11. It offers 50% smaller files than JPEG at similar quality using HEVC compression. Use HEIC for iPhone storage efficiency; convert to JPEG for maximum compatibility.
Depends on resolution and format. For a 45MP camera: ~2,500 RAW files (25MB each), ~12,000 high-quality JPEGs (5MB each), or ~25,000 standard JPEGs (2.5MB each). Shooting RAW+JPEG uses ~30MB per shot, yielding ~8,000 photos.
Both are modern web formats offering better compression than JPEG. WebP (by Google) has broad browser support and is 25-35% smaller than JPEG. AVIF (based on AV1) achieves 50% smaller files but has slower encoding and less browser support.