Help me understand image compression

Because topic is named in very general way I don’t start new topic :kissing_face_with_smiling_eyes: but what does client-side optimization mean in practice - an OS of device will make its mind if it will do or not something? But that will lead to the situation where a giga big image must transfer to a client before its size will change to decent scale, or am I totally lost now?