Skip to main content
Known Participant
August 27, 2022
Question

Panorama image size

  • August 27, 2022
  • 3 replies
  • 886 views

I'm using Lightroom Classic 11.5 on a Mac Studio to stitch together 2, sometimes 3 images into a panorama. Each original is around 9500 x 6300 (Leica M11 DNG). After creating the panorama I find the final image is around 500 MB!!! Each orignal is around 75MB. As an example 2 images of 9500px x 6300px might end up with a panorama measuring 11000px x 6300px but the fresulting file size is always aroun 400MB to 550MB.

Any idea what might be happening to cause the almost 8 fold increase in the final image size?

This topic has been closed for replies.

3 replies

JohanElzenga
Community Expert
Community Expert
August 27, 2022

The explanation is as follows. Your original DNG files are raw files, so they have one color per pixel and most likely they are compressed. If they were not compressed then their size would be 9500 x 6300 x 14 bits per pixel = 104 MB each, and they would all have the exact same size. A Lightroom generated panorama is not a raw DNG but a linear RGB DNG, so the expected size of the 17897 x 13354 pixel panorama as shown in your screenshot would be 17897 x 13354 x 3 bytes/color for an 8 bits per color image and that is 716,989,614 bytes, which is 700,185 KB. Add some metadata and the screenshot shows a size that is completely as expected. Maybe the panorama is 16 bits per color too (that is what I would actually expect), so then it is actually about 50% compressed!

 

-- Johan W. Elzenga
Community Expert
August 27, 2022

Johan is exactly correct. The massive increase in filesize is caused by the original files being in a Bayer Mosaic arrangement, so each pixel is only a single value at 12 or 14 bits precision. The resulting panorama will be in full R,G, and B for each pixel each at 16 bits precision (I am almost 100% cerain it is to make sure you don't lose info), so 48 bits per pixel or a 4x increase in required space for just a single image. Combining a few images, you easily end up with a factor of 8. The very efficient lossless compression in dng (typically much better than in native raw files) helps but the fundamental issue is the demosaic that has to happen before you can stitch, tripling the required data and the increased bit depth leading to another factor increase. That's before any stitching has happened.

Known Participant
August 27, 2022

Just to follow-up, I tried something a bit more extreme stitching together 5 images, see the result below with the pano being over 700MB. Alos unusual, the bit depth is being repoted as 48 bit whereas I know the oringal images are 14 bit, this might just be a fault in the way way the bit depth is being calculated though.

 

GoldingD
Legend
August 27, 2022

So, I did find one source that states 32 bit. have no idea why reports as 48. Have not yet gotten off my rear end to test. 

 

Also, even though it apply's to import, in preferences, file handling, import DNG creation, the option to embed original RAW file, could that cause the Photo Merge DNG to include the original RAW file? Something to test

Known Participant
August 27, 2022

I think the report of 48 bit is a red herring, it's reporting the depth of the 3 channels combined (16 x 3), thanks very much for your help.

GoldingD
Legend
August 27, 2022

/edited/and edited again, my bad form/

The LrC Photo Merge creates a 32 bit depth DNG (or was that 48?)

see:

https://www.lightstalking.com/32-bit-hdr-lightroom/

sounds like I am wrong about the above, lokking for reference found one stated otherwis

Also, not sure if the preferences option to store RAW with DNG applies

 

Known Participant
August 27, 2022

Thanks for that, I didn't realise that but that's around a 2.3 increase in bit depth but that still shouldn't in crease the file size that much, in the screen shot example the pano is around 239,000,000 pixels in size, if I multiply by 2.3 it should result in a file size or around 500MB rather than 705MB.