Skip to content

Commit

Permalink
Update imagemagick example
Browse files Browse the repository at this point in the history
  • Loading branch information
srisco committed Sep 28, 2018
1 parent 7c2d638 commit 5353fc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/imagemagick/imagemagick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions examples/imagemagick/imagemagick/script.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5353fc6

Please sign in to comment.