Skip to content

Commit

Permalink
refactor: Merge layers to bottom (transparent) layer
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewvincent committed Jun 19, 2024
1 parent d35c7a2 commit 172dc71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/xcf_to_png.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ for file in $xcf_files_to_convert; do
(image (car (gimp-file-load RUN-NONINTERACTIVE \"$file\" \"$file\")))
(drawable (car (gimp-image-get-active-layer image)))
)
(gimp-image-merge-visible-layers image CLIP-TO-BOTTOM-LAYER)
(file-png-save RUN-NONINTERACTIVE image drawable \"$output_file\" \"$output_file\" 0 9 0 0 0 0 0)
(gimp-image-delete image)
)
Expand Down

0 comments on commit 172dc71

Please sign in to comment.