Skip to content

Commit c838bd5

Browse files
committed
test locally
1 parent b37b51e commit c838bd5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/blurdir

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#! /bin/bash
22

3-
API=https://blur.panoramax.openstreetmap.fr/blur/
3+
#API=https://blur.panoramax.openstreetmap.fr/blur/
4+
API=http://127.0.0.1:8000/blur/
45

56
cd "$1"
67
mkdir -p blur
78
rm -f blur/*
8-
ls -1 *.jpg *.JPG | /usr/bin/time -v parallel --progress --bar curl -s -X 'POST' $API -F "picture=@{}" --output "blur/{}"
9+
ls -1 *.jpg *.JPG | parallel -j 4 --progress --bar curl -s -X 'POST' $API -F "picture=@{}" --output "blur/{}"

0 commit comments

Comments
 (0)