Replies: 1 comment 1 reply
-
This is my take, while it is true small jpeg images like thumbnails are stored directly as part of APP markers. The size limitation of the jpeg image that can be included in an app marker is 64kb. Very large thumbnail images, supplementary images (panorama, multi-angle, gainmap, ...) often exceed 64kb and cannot be included as part of app markers. For this multi picture format (MPF) is used. This is This is an extension to jpeg to store multiple images in a single file. MPO files use a JPEG APP2 marker segment (specifically labeled "MPF") to provide information about the images within the file. In this information there is start point and length of the images that are part of the file, which can be used for quick access. This can solve the problem you are mentioning? |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I work on libvips and I'm looking at adding libultrahdr support.
I have a general question about file layout. My understanding is that at the moment the gain map is written right at the end of the file, after the SDR image data. This is a poor fit for libvips, since our
_new_from_file()
method has to be quick, and has to return all metadata. With the gain map at the end, we can't get to it (as I understand it) without reading the entire image.Out of curiosity, does anyone know the reasoning behind this decision? I'd naively expect the gain map to be stored in an APPn marker, just as ICC profiles are. This would a lot more convenient and efficient for streaming libraries like libvips.
Beta Was this translation helpful? Give feedback.
All reactions