Photoshop: Problem with action including Level Adjustments and gamma value

  • 1
  • Problem
  • Updated 5 years ago
  • Solved
  • (Edited)
In Photoshop CC 2014.2.0, when I use a script that includes level adjustments, there is bug. For exemple, in my script I set Gamma to 1,15. But after running the script, Gamma is set to 1,14. How can I fix it ? Thank you
Photo of François Dufour

François Dufour

  • 1 Post
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 859 Reply Likes
Do you mean a JavaScript, AppleScript, or action?
Photo of Francois Dufour

Francois Dufour

  • 1 Post
  • 0 Reply Likes
Sorry, I mean a action. Thanks for your help.
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 859 Reply Likes
OK, it seems to be losing a bit of precision in playing back the values or showing them in the UI on playback.

Ah, 1.15 ends up as a repeating digit fraction in floating point (115 / 100.0), stored as float in the action, and when scaled back to an integer for the UI it doesn't round and loses one value (114 instead of 115).

OK, that's easy enough to fix. (it'll take longer to write up the bug report)

Good news: the recorded actions are fine.
Bad news: it won't be accurately played back until I can get this fix out.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 16849 Posts
  • 2819 Reply Likes
Official Response
This should be fixed in the Photoshop CC (2015) update.