Skip to content

Commit

Permalink
add back numpy code
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilDohne committed Mar 8, 2024
1 parent 5945c00 commit 479a0c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PhotoshopExamples/tmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
# Generate our LayeredFile instance
document = psapi.LayeredFile_8bit(color_mode, width, height)

# img_data = np.zeros((3, height, width), np.uint8)
# img_data[0] = 255
# mask = np.full((height, width), 128, np.uint8)
img_data = np.zeros((3, height, width), np.uint8)
img_data[0] = 255
mask = np.full((height, width), 128, np.uint8)

# # When creating an image layer the width and height parameter are required if its not a zero sized layer
# img_layer = psapi.ImageLayer_8bit(img_data, "Layer Red", layer_mask=mask, width=width, height=height)
Expand Down

0 comments on commit 479a0c9

Please sign in to comment.