forked from Ivasoft/geovisio-sgblur
add bludir goodie
This commit is contained in:
10
scripts/README.md
Normal file
10
scripts/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# sgblur goodie scripts
|
||||
|
||||
## blurdir
|
||||
|
||||
Tool to blur all JPEG pictures found in a directory.
|
||||
|
||||
Usage: ./blurdir directory-path
|
||||
|
||||
Will create a "blur" directory in the original directory to store the blurred version of the pictures with the same name as original pictures.
|
||||
|
||||
8
scripts/blurdir
Executable file
8
scripts/blurdir
Executable file
@@ -0,0 +1,8 @@
|
||||
#! /bin/bash
|
||||
|
||||
API=https://blur.panoramax.openstreetmap.fr/blur/
|
||||
|
||||
cd "$1"
|
||||
mkdir -p blur
|
||||
rm -f blur/*
|
||||
ls -1 *.jpg *.JPG | /usr/bin/time -v parallel --progress --bar curl -s -X 'POST' $API -F "picture=@{}" --output "blur/{}"
|
||||
Reference in New Issue
Block a user