• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Layer.translate() makes change in pixels RGB values

New Here ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

We have a single layer psd file with layer mask. 

image_2023_01_09T11_22_56_142Z.png

Once we separate the layer mask from layer (https://photoshopbook.com/2022/02/07/pngalpha/) and the  layer looks like below

image_2023_01_09T11_26_02_710Z.png

So we think in the middle there is red color even though the alpha is 0

 

We have written a script to export the file into png, Once we exported we can observe red color in the exported image from the Photoshop.

Similarly if we add some translation (Layer.translate — Photoshop Scripting Reference documentation (theiviaxx.github.io) )using the script red color pixels does not occur.

 

Can i know why layer.translate() function make changes in the color?

TOPICS
Actions and scripting

Views

207

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2023 Jan 10, 2023

Copy link to clipboard

Copied

@Arunan senthitchelvan 

 

You posted to the Photoshop Developer's forum, but it does not sound as if you are a developer. Most posts that come to this forum are spam or misplaced.

 

I'll move your post to the Photoshop forum for you.

 

Jane

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 19, 2023 Jan 19, 2023

Copy link to clipboard

Copied

LATEST

@jane-e

Thank you for the help.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines