D
D
des1roer2015-07-04 07:02:02
Graphic arts
des1roer, 2015-07-04 07:02:02

JPG vs PNG which is better?

I must have missed something in the development, but still. what is the difference between these formats? processing speed or size? please do not throw links to the wiki, but explain clearly

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Moskus, 2015-07-04
@des1roer

If you do not go into perversions and features of the format that are not supported by anyone, then the difference is approximately the following:
PNG itself is a lossless compression format, that is, it allows you to save the image one to one, and JPEG compresses the image with loss (while the loss can be adjusted by several parameters, the actual "quality" and color subsampling, that is, the degree of information loss in the color difference channel).
Both formats support progressive loading, but in different ways: JPEG - block by block, PNG - interlaced.
PNG supports transparency in two versions: transparent/opaque and 256 transparency levels, while JPEG does not support transparency.
PNG can store color in full-color TrueColor mode (24-bit) and palette modes (up to 256 colors), while JPEG is only full-color or 256 grayscale.
The JPEG compression ratio with the same image settings, but different pictures depends on the smoothness of color transitions in the picture, and the PNG compression ratio depends on the presence of repeating identical pixels.
PNG does not support storing EXIF ​​metadata, but JPEG does.
If something remains unclear - ask in the comments to the answer.

A
Alexander Karabanov, 2015-07-04
@karabanov

JPEG - for photos (it is optimized for this).
PNG - for use on the Internet and graphics editing (buttons, arrows, list markers, screenshots).
iqyuqt2x70.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question