What is the payload size constraint when using Invoke-PSImage, and how does the script handle extra pixels?
Each pixel stores one byte of payload, so the number of pixels in the image must be greater than or equal to the number of payload bytes. If there are extra pixels beyond the payload length, the script fills their color components with random values using the same bit‑manipulation pattern. This ensures the entire image is modified uniformly, avoiding visual anomalies.
payload lengthpixel countrandom paddingsteganography constraint