Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfaas-faas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Team Jaz CS 598 CCC Final Project
openfaas-faas
Commits
77f63be0
Commit
77f63be0
authored
7 years ago
by
Alex Ellis
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make more concise
parent
c7068597
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sample-functions/ResizeImageMagick/README.md
+1
-12
1 addition, 12 deletions
sample-functions/ResizeImageMagick/README.md
with
1 addition
and
12 deletions
sample-functions/ResizeImageMagick/README.md
+
1
−
12
View file @
77f63be0
...
...
@@ -15,23 +15,12 @@ Use this FaaS function to resize an image with ImageMagick.
```
# curl -sSL https://get.openfaas.com | sudo sh
#
./
faas-cli -action=deploy -image=functions/resizer -name=resizer \
# faas-cli -action=deploy -image=functions/resizer -name=resizer \
-fprocess="convert - -resize 50% fd:1"
200 OK
URL: http://localhost:8080/function/resizer
```
*
Option 3 - use
`curl`
to deploy the function
```
$ curl -s --fail localhost:8080/system/functions -d \
'{
"service": "resizer",
"image": "functions/resizer",
"envProcess": "convert - -resize 50% fd:1",
"network": "func_functions"
}'
```
**Resize a picture by 50%**
Now pick an image such as the included picture of Gordon and use
`curl`
or a tool of your choice to send the data to the function. Pipe the result into a new file like this:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment