Author Topic: [RESOLVED] 32 bit to 16bit (2019)  (Read 9062 times)

2019-12-06, 06:58:44

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
Converting an approximately ~6000 x 8000 pixel image from 32-bit (.EXR) to 16-bit destroys the tonal range of the image. I understand this is a historical problem that has been addressed before, but the previous solutions are not working in this case.

Note that rendering at a lower resolution (~3000 x 4000), saving to 32-bit (.EXR), and converting to 16-bit produces a more consistent result, i.e. converting from full-float to half-float on a lower resolution image reduces the problem.

Is there a workaround for converting 32-bit to 16-bit for high resolution images?
« Last Edit: 2019-12-08, 18:07:13 by cjwidd »

2019-12-06, 14:53:03
Reply #1

sprayer

  • Active Users
  • **
  • Posts: 794
    • View Profile
On link it's a bit different issue, did you choose this settings during converting image?

2019-12-06, 15:29:12
Reply #2

pokoy

  • Active Users
  • **
  • Posts: 1922
    • View Profile
Photoshop does not convert correctly when going from 32bpc to 16bpc - it just doesn't. Unless you really need to work in 32bpc in PS, it's better to save to 16 bits directly from Corona VFB or CIE.
If you really need 32bpc in PS you can use AE. You could flatten your work in PS, save as EXR and open it in AE and output to 16bpc. Make sure to setup profiles in the way you need them, so you convert to the profile you need the final image to be in. AE will work much better, PS does some black magic dark tone shifting and it's awful, there is just no way to make it work correctly in PS.

2019-12-06, 21:29:15
Reply #3

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
@sprayer
Yes, that's correct, I applied the HDR Toning (exposure / gamma) settings as depicted during the conversion. Unfortunately, that did not correct the issue.

I can already tell I'm going to have to submit a support ticket because I don't think I will be able to share the project files to the forum.

What's more, saving out a 16-bit image straight out of the VFB also results in tonal loss.

@pokoy
I'm willing to acknowledge that is true, but nevertheless, I need to find a workaround to bring the image that appears in Photoshop correctly in 32-bit down to 16-bit without tonal loss.


2019-12-06, 21:44:42
Reply #4

Juraj

  • Active Users
  • **
  • Posts: 4797
    • View Profile
    • studio website
What is tonal loss? You end up with gradient artifacts?
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!

2019-12-06, 23:00:27
Reply #5

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
I've attached a link to a Google Drive download for a crop of the affected image.

Converting the linked image from 32-bit to 16-bit in Photoshop produces a dramatic change in the overall appearance of the image, most notably in terms of exposure / gamma correction. I cannot account for the discrepancy, but I am posting to the forum for guidance.
« Last Edit: 2019-12-07, 07:56:38 by cjwidd »

2019-12-07, 17:48:35
Reply #6

sprayer

  • Active Users
  • **
  • Posts: 794
    • View Profile
Are you sure what you have difference in 100% zoom? Because i do not see difference after converting, only difference if you zoom out, but this i think limitation of photoshop and how it filtering big image

2019-12-07, 20:02:55
Reply #7

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
yeah, I was thinking that might be the case, and Photoshop just can't represent the full pixel range when the image is fit to screen, but then why is the 32-bit image fully represented before converting to 16-bit?

2019-12-07, 20:07:07
Reply #8

James Vella

  • Active Users
  • **
  • Posts: 620
    • View Profile
Are you sure what you have difference in 100% zoom? Because i do not see difference after converting, only difference if you zoom out, but this i think limitation of photoshop and how it filtering big image

Agreed.

this is what I see after conversion:



2019-12-07, 20:15:05
Reply #9

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9021
  • Let's move this topic, shall we?
    • View Profile
    • My Models
yeah, I was thinking that might be the case, and Photoshop just can't represent the full pixel range when the image is fit to screen, but then why is the 32-bit image fully represented before converting to 16-bit?

When image is displayed at any other zoom level than 1:1, then pixels needs to be interpolated. I guess that photoshop uses different interpolation for 16 bit and 32 bit images. When comparing two images, you always need to do that at 1:1 zoom level, otherwise you can't know what are you comparing.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-12-07, 20:21:06
Reply #10

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
..then pixels needs to be interpolated.

Yes, this is exactly what I was thinking.

Well, that is an embarrassing oversight, but thank you all for clarifying 😬

I am not sure what the approach is then for photoediting, if there is so much of a difference between the 32-bit and 16-bit version when fit to screen?


2019-12-07, 21:22:35
Reply #11

James Vella

  • Active Users
  • **
  • Posts: 620
    • View Profile
Yes mine looks like this when fit to screen

2019-12-07, 22:21:45
Reply #12

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
I suppose we are outside the purview of Corona at this point - seems like a Photoshop issue.

2019-12-08, 00:22:06
Reply #13

cjwidd

  • Active Users
  • **
  • Posts: 1077
    • View Profile
    • Artstation
Would the compression (interpolation) issue appear on a high DPI monitor when fit to screen in Photoshop?

2019-12-08, 11:02:58
Reply #14

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9021
  • Let's move this topic, shall we?
    • View Profile
    • My Models
If the image won't fit on screen in 1:1 zoom level, then pixels will have to be interpolated no matter display resolution.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures