I don't believe that is correct.ROUBAL wrote: As each compression adds new artifacts, if you save an image in jpg after working on it, the uncompressed image will be bigger after each new compression !
The size in memory for an uncompressed image is dependent on three things: height, width, and color bit level. For example, if an image is 4000 x 3000 with 24 bits/pixel, then it will take up 36,000,000 bytes of memory. It won't matter if the image is all black, all white, a graduated black to white, or a mixture of all 16 million colors.
Compressing an image on disk is just used to save disk space. Some compression formats are lossy (where some of the image can be lost due to compression), such as JPG, and some compression formats are lossless, such as PNG. But when the image is uncompressed it will occupy the same amount of memory no matter how it is stored (as long as the color level - bits/pixel are the same).