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 > <firstname.lastname@example.org> 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 > email@example.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list firstname.lastname@example.org Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode