Size of Image in RAM

Scott Rossi scott at tactilemedia.com
Wed Feb 8 01:44:39 EST 2017


If your image was 256 colors, the Index > Mode menu would show Indexed Color checked, instead of RGB Color.

The RGB/8 Bit you’re seeing in the Photoshop menu actually reads “8 Bits/Channel” — an RGB image is 3 channels (red, green, blue), 8 bits each, so 24 bit color.

Again, if you really want your image limited to 256 colors, convert it to Indexed Color and save as PNG or GIF.

Regards,

Scott Rossi 
Creative Director 
Tactile Media, UX/UI Design 

> On Feb 7, 2017, at 10:17 PM, Sannyasin Brahmanathaswami via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> @ Scott:
> 
> That's not what I get if I open this image in Photoshop.  (CC 2017)
> 
> 
> 
> 575 X 1000 
> 
> http://wiki.hindu.org/uploads/img37.jpg
> 
> 
> It is a JPEG, but under the mode menu it shows "RGB/8 Bit" and if I look under indexed colors it says "256"  definitely not 16bit (in which case we should see 65536 colors)
> 
> So, somehow this IS a JPG that at least reports in PS as 8 bit but shows it is taking 2.17 MB in RAM, which it would if it were 16 bit.
> 
> Scott Rossi wrote:
> 
>    When I generate an 8 bit indexed color image in Photoshop and look at the Save As menu, JPEG is not an option.  If I instead choose Save for Web which allows saving as JPEG, the resulting image re-opens in Photoshop in RGB (24 bit color) mode.
> 
> But, and this is interesting: if I save as PNG Photoshop offers the option to change turn off transparency and save as  bit… the resulting images on disk is 1/3 bigger I size  (jpeg,:229K, png:353K)  But the former/jpg opens in photoshop at 2.17MB and not the 8-bit PNG opens at 739K in RAM  
> 
> This tends to confirm your theory and Photoshop is miss reporting the bit depth on the jpg (or something!)  … very interesting. the PNG at half the size in RAM is visually indistinquishable from the JPG (at least to my eyes)
> 
> http://wiki.hindu.org/uploads/img37.png
> 
> So we have a trade off: use 8 bit PNG and pack more data than we have room for in the mobile app package. or optimize really small JPG's on disk that then take up twice the room in RAM!
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list