Author Topic: Unable to Render JPG panorama files from Samsung S8 camera  (Read 4795 times)

Offline Neil MacAvoy

  • Newcomer
  • *
  • Posts: 13
    • View Profile
Unable to Render JPG panorama files from Samsung S8 camera
« on: October 11, 2017, 06:43:16 PM »
I recently upgraded from a Samsung S6 to S8 Android phone. I've shot some panoramas, copied the files to my computer, and to my surprise PM is giving me a 'Unable to Render Image' error on only the JPG that were created using the panorama mode.

I'm not having problems with any of the other JPGs I've been shooting. Both Windows preview and Lightroom have no problem with these pano files. Has anybody else seen this problem or have ideas what might be causing it?

I'm running Windows 7, PM 5.0 build 18980

The phone is a Samsung S8, model SM-G950U, running Android 7.0.

Thanks

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: Unable to Render JPG panorama files from Samsung S8 camera
« Reply #1 on: October 14, 2017, 03:54:58 PM »
I recently upgraded from a Samsung S6 to S8 Android phone. I've shot some panoramas, copied the files to my computer, and to my surprise PM is giving me a 'Unable to Render Image' error on only the JPG that were created using the panorama mode.

I'm not having problems with any of the other JPGs I've been shooting. Both Windows preview and Lightroom have no problem with these pano files. Has anybody else seen this problem or have ideas what might be causing it?

I'm running Windows 7, PM 5.0 build 18980

The phone is a Samsung S8, model SM-G950U, running Android 7.0.

What is the pixel width and height of the image?

-Kirk

Offline Neil MacAvoy

  • Newcomer
  • *
  • Posts: 13
    • View Profile
Re: Unable to Render JPG panorama files from Samsung S8 camera
« Reply #2 on: October 21, 2017, 10:24:33 AM »
Hi Kirk,

It fails even with reasonable file sizes. I just shot this one at 5440x2192. I've discovered that if I read the image into Lightroom and then just write it back out in the same format (JPG), PM is having no trouble with the images. So there's something funky about the format or fields being used by the Samsung camera app, I'd guess.

I'm attaching an example failing file. I'll attach the post-Lightroom version of the same file to a follow-on reply since there's a limit.

-Neil

Offline Neil MacAvoy

  • Newcomer
  • *
  • Posts: 13
    • View Profile
Re: Unable to Render JPG panorama files from Samsung S8 camera
« Reply #3 on: October 21, 2017, 10:28:00 AM »
 As you can see from that previous post, there's something weird going on that is causing the images to appear inverted as well.

Now here's the output I'm getting from Lightroom for the same file, and PM is able to view this. Note that in this version, the image is in the correct orientation. I didn't do anything in Lightroom to make that happen..just read it in and wrote it out.
« Last Edit: October 21, 2017, 10:29:50 AM by Neil MacAvoy »

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Unable to Render JPG panorama files from Samsung S8 camera
« Reply #4 on: October 25, 2017, 12:02:39 PM »
I looked at your files and I think I know the problem. The S8 manages to screw the metadata and has set it to have an image height and width of 0. I guess e.g. Lightroom doesn't even look at these values and analyses the jpg data directly. Other viewers, however, could refuse to render it because of this. I think you should complain to Samsung about their crappy files...
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Neil MacAvoy

  • Newcomer
  • *
  • Posts: 13
    • View Profile
Re: Unable to Render JPG panorama files from Samsung S8 camera
« Reply #5 on: October 25, 2017, 06:54:13 PM »
Thanks for that diagnosis. Sounds very plausible that's the issue. I was suspecting the screwup was on Samsung side, not PM.

Kirk - since the odds of me getting Samsung to issue a SW patch for this are slim, any chance you could add an option to ignore this metadata in future releases? Various other ways I have to view the file seem to be ignoring it. I understand if this seems like an out-of-warranty request, but never hurts to ask...

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: Unable to Render JPG panorama files from Samsung S8 camera
« Reply #6 on: October 25, 2017, 10:47:06 PM »
Neil,

The image is malformed if it has a zero size width and height.  PM errs on the side of caution when loading images.  If it looks corrupt, then we don't try to load it.  It is one of the things that makes PM reliable.

I'll discuss with the team, but I'm not sure we would make this change.

-Kirk