fn has_real_alpha(img: &DynamicImage) -> bool
True when some pixel is not fully opaque. Many screenshots carry an alpha channel that is 255 everywhere; those can still become JPEG.