Size of Image in RAM
Scott Rossi
scott at tactilemedia.com
Wed Feb 8 00:35:41 EST 2017
You say the mode is 8 bit. I might be wrong, but I don’t believe JPEG supports 8 bit (256 color) images. Even if it does technically, the format is not really intended for 8 bit images, but rather 16 bit or higher.
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.
So as I read question, you’re getting a 24 bit image because you’re saving in JPEG format.
If you really want to save as 8 bit color, use PNG or GIF.
Regards,
Scott Rossi
Creative Director
Tactile Media, UX/UI Design
> On Feb 7, 2017, at 7:45 PM, Sannyasin Brahmanathaswami via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> I'm trying to optimize for Mobile. Photoshop is playing tricks on me
>
> given a 38K jpg;
>
> rect 3 X 5
>
> 552px w
> 736 px h
> 72 dpi (irrelevant for screen)
>
> Open in Photoshop: it indicates 1.16M in RAM, but mode is 8 bit… but
>
> but the online calculation sites for file size for that rect/bit-depth should make it only take up 398k or so, in RAM.
>
> If I change the online calculator for that rect to "24 bit" it returns the exactly size (1.16M) I'm seeing in photoshop…roughly 3X the size of the 8 bit, which is what we would expect.
>
> So
>
> 1) Why is Photoshop reporting the files size as if it were 24 bit? and
> 2) Does LC have a function to check the size of an image in terms of RAM consumed? I couldn't find one in the dictionary.
>
> BR (thinking about affinity these days!)
> _______________________________________________
> 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