image - Deciding between lossless and lossy compression? -
i have bunch of images need store in memory, they're taking quite bit of room, want reduce. they're being stored bitmaps, hence large amount of required space.
i want instead store them in sort of compressed format. want store either jpeg or png. images don't contain fine details (i.e. rough shapes, basic colours), want store these jpegs since, lossy behaviour of format won't make of difference because there isn't lot of detailed information in first place. however, images contain fine details (i.e text, subtle colours , small detailed shapes/textures), want store these pngs, because don't want fine details lost.
i've done fair bit of research wasn't able find answers questions. me out these please?
a) seem reasonable approach? don't have lot of experience compression.
b) decide, whether store png or jpeg, thinking calculate entropy of image, , threshold it. i'm hoping "low entropy images" correspond images without fine details, while "high entropy images" contain text , fine details. intuition correct?
thank you.
Comments
Post a Comment