43+ Jpg Vs Png Vs Gif Images. Png if straight lines as in a comic or other drawing or if a wide color range is needed with transparency(and ie6 is. Why should i prefer one over the other?

Justice League of America (New 52) vs. Admirals (One Piece ...
Justice League of America (New 52) vs. Admirals (One Piece ... from static.comicvine.com
Jpeg or jpg (joint photographic experts group): One is best for easily sharing photographs without a huge file size, while the other is optimized for text and transparency without losing quality. Short for joint photographic experts group, the original name of the committee that wrote the standard.

I know that png & gif are lossless, while jpeg is lossy.

Jpegs are a weak choice for images with high contrast. There are many differences between the two formats that make each better in different situations. Again, image file formats can be distinguished based on the compression effects extension: Diffen › technology › computers › file formats.