diff --git a/examples/imagemagick/imagemagick.yml b/examples/imagemagick/imagemagick.yml index d1e4ce67..f5bb490a 100644 --- a/examples/imagemagick/imagemagick.yml +++ b/examples/imagemagick/imagemagick.yml @@ -6,11 +6,10 @@ functions: imagemagick: lang: dockerfile handler: ./imagemagick - image: imagemagick + image: registry.docker-registry/imagemagick environment: AWS_ACCESS_KEY_ID: xxx AWS_SECRET_ACCESS_KEY: xxx OUTPUT_BUCKET: xxx - OUTPUT_FOLDER: xxx read_timeout: 90 write_timeout: 90 \ No newline at end of file diff --git a/examples/imagemagick/imagemagick/script.sh b/examples/imagemagick/imagemagick/script.sh index c1211763..0c7654af 100644 --- a/examples/imagemagick/imagemagick/script.sh +++ b/examples/imagemagick/imagemagick/script.sh @@ -1,8 +1,7 @@ #!/bin/bash -OUTPUT_DIR="/tmp/output" echo "SCRIPT: Invoked Image Grayifier. File available in $SCAR_INPUT_FILE" FILE_NAME=`basename $SCAR_INPUT_FILE` -OUTPUT_FILE=$OUTPUT_DIR/$FILE_NAME +OUTPUT_FILE=$SCAR_OUTPUT_FOLDER/$FILE_NAME echo "SCRIPT: Converting input image file $SCAR_INPUT_FILE to grayscale to output file $OUTPUT_FILE" convert $SCAR_INPUT_FILE -type Grayscale $OUTPUT_FILE \ No newline at end of file