Views
435
Replies
2
Status
Closed
I am trying to figure out how to read the image size (as given by Photoshop) in a jpg. I got the specification and learned there is a field SOFO (Start of Frame 0) Marker. It shows the following break down for the field:
<————
Marker Identifier 2 bytes 0xff, 0xc0 to identify SOFO marker
Length 2 bytes This value equals to 8 + components * 3 value
Data precision 1 bytes This is in bits/sample, usually 8
(12 and 16 not supported by most software)
Image Height 2 bytes This must be > 0
Image Width 2 bytes This must be > 0
Number of components 1 byte Usually 1=grey scaled, 3=color YcbCr or YIQ 4=color CMYK
Each component 3 bytes Read each component data of 3 bytes.
————–>
I have a small jpg picture that is 83 high by 125 wide. The "Image Height" field in the jpg for the SOFO group says 174h or 372 and the width field says 234h or 564 and that doesn’t make sense. I am trying my best to figure out how they get those numbers. Does anyone know how this works or could you point me in the right direction?
Thank you for any help you can provide
<————
Marker Identifier 2 bytes 0xff, 0xc0 to identify SOFO marker
Length 2 bytes This value equals to 8 + components * 3 value
Data precision 1 bytes This is in bits/sample, usually 8
(12 and 16 not supported by most software)
Image Height 2 bytes This must be > 0
Image Width 2 bytes This must be > 0
Number of components 1 byte Usually 1=grey scaled, 3=color YcbCr or YIQ 4=color CMYK
Each component 3 bytes Read each component data of 3 bytes.
————–>
I have a small jpg picture that is 83 high by 125 wide. The "Image Height" field in the jpg for the SOFO group says 174h or 372 and the width field says 234h or 564 and that doesn’t make sense. I am trying my best to figure out how they get those numbers. Does anyone know how this works or could you point me in the right direction?
Thank you for any help you can provide
MacBook Pro 16” Mockups 🔥
– in 4 materials (clay versions included)
– 12 scenes
– 48 MacBook Pro 16″ mockups
– 6000 x 4500 px