From c81d13d3c2d4a89d9cac3ca54cca69650ec3a52d Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 11 Mar 2014 13:15:31 +0000 Subject: sizing image library --- offsetProject/bin/data/library.zip | Bin 0 -> 31042897 bytes offsetProject/bin/data/process_pics | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 offsetProject/bin/data/library.zip create mode 100755 offsetProject/bin/data/process_pics (limited to 'offsetProject/bin/data') diff --git a/offsetProject/bin/data/library.zip b/offsetProject/bin/data/library.zip new file mode 100644 index 0000000..eed6290 Binary files /dev/null and b/offsetProject/bin/data/library.zip differ diff --git a/offsetProject/bin/data/process_pics b/offsetProject/bin/data/process_pics new file mode 100755 index 0000000..1bbe621 --- /dev/null +++ b/offsetProject/bin/data/process_pics @@ -0,0 +1,17 @@ +#!/bin/bash +num=0 +mkdir 256 +#mkdir 128 +#mkdir 64 +#mkdir 32 +for source in $*; +do + #echo $source + file=$(printf "%010d.png" ${num}) + #echo $file + ffmpeg -i "$source" -s 256x256 "256/$file" + #ffmpeg -i "256/$file" -s 128x128 "128/$file" + #ffmpeg -i "128/$file" -s 64x64 "64/$file" + #ffmpeg -i "64/$file" -s 32x32 "32/$file" + let num=num+1 +done \ No newline at end of file -- cgit v1.2.3