File: test-separate-1

package info (click to toggle)
gimp-plugin-registry 9.20200928
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 52,524 kB
  • sloc: ansic: 27,119; lisp: 20,560; python: 14,721; cpp: 2,528; sh: 2,220; makefile: 635; xml: 21
file content (18 lines) | stat: -rwxr-xr-x 799 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#/bin/sh

TEMP=${AUTOPKGTEST_TMP:-${TMPDIR:-$(mktemp -d)}}
TDIR=$(mktemp -d $TEMP/test-separate-1-XXXXXX)

convert /usr/share/wallpapers/EveningGlow/contents/images/2560x1440.jpg -resize '640x480!' "$TDIR"/origin.jpg

sleep 1

echo "Run separate+..."
gimp-console -i -b "(let* ((i1 (car (gimp-file-load 1 \"$TDIR/origin.jpg\" \"$TDIR/origin.jpg\"))) (layer1 (car (gimp-image-get-active-layer i1))) (cmykimg (car (plug-in-separate-full 1 i1 layer1 \"/usr/share/color/icc/colord/SMPTE-C-RGB.icc\" FALSE \"/usr/share/color/icc/ghostscript/gray_to_k.icc\" 1 FALSE FALSE FALSE FALSE)))) (gimp-xcf-save 1 cmykimg (car (gimp-image-get-active-drawable cmykimg)) \"$TDIR/output.xcf\" \"$TDIR/output.xcf\") (gimp-quit 1))"

sleep 2

if [ ! -e "$TDIR"/output.xcf ]; then
   echo "No output.xcf"
   exit 404
fi