K
K
kras_ai2014-08-11 16:04:03
JPEG
kras_ai, 2014-08-11 16:04:03

What is the reason for the image size limit of 65536 by 65536 px in JPEG(JFIF) format?

Faced the need for technical justification above the specified limitation.
After reviewing the JFIF specification, I could not find the answer to the question.
Please help with advice, well, or an answer :)
Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
pi314, 2014-08-11
@kras_ai

Wikipedia:
Everything is elementary: in hoary antiquity, when the format was developed, 16 bits was a "normal" bit depth and seemed more than enough for all eternity. Well, and then, when implementations arose in the world, it was already too late to change something :) Well, to be honest: 64k pixels is quite a lot, and this has become really lacking relatively recently.
UP:
JFIF, as a format, in general, was sharpened for slow communication channels (at that time dial-up 300 Baud was the height of perfection) with serial transmission. This defines the markup structure (jumping across blocks through offsets) and the file structure: key information (for example, IPTC) as close to the beginning as possible, data in the tail. It was assumed that the receiving system could, depending on the metadata already received, "on the fly" redirect the further data stream to where it was needed. At that time, this was a very reasonable consideration, because. resources (primarily available memory) were extremely limited.
UP2:
Not! We believe that the matter is in the structure of the SOF 0 (0xC0) (Start Of Frame) marker, followed by:
- ​​8 bits - bits per pixel,
- 16 bits - width,
- 16 bits - height and
- 8 bits - count -to component.
These are the same 2 of 16 bits and limit the max. image dimensions.
Density is from a completely different opera. As the name implies, this is really the resolution along the X and Y axes, given in units that are encoded in the previous. byte.

D
Dmitry, 2014-08-11
@CTAKAH4uK

The size of X and Y is 2 bytes, more than 65536 cannot be written in 2 bytes.
en.wikipedia.org/wiki/JPEG_File_Interchange_Format...

Y
Yuri Lobanov, 2014-08-11
@iiil

Common sense?

K
kras_ai, 2014-08-11
@kras_ai

Do you think that the matter is in the dimensions of the "X density" and "Y density" fields?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question