mirror of
https://github.com/penpot/penpot.git
synced 2025-06-24 08:47:00 +02:00
✨ Add experiments directory.
This commit is contained in:
parent
dff038f4d7
commit
96d4c1e2fd
22 changed files with 1838 additions and 56 deletions
15
experiments/scripts/process.sh
Executable file
15
experiments/scripts/process.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
set -ex
|
||||
|
||||
SCALE_FACTOR=0.18
|
||||
OUTPUT=output
|
||||
for image in $1/*
|
||||
do
|
||||
./quantize.sh $image
|
||||
INPUT_BASE=`basename $image .bmp`
|
||||
#pamscale ${SCALE_FACTOR} -nomix tmp/${INPUT_BASE}-quant.ppm > tmp/${INPUT_BASE}-quant-scale_${SCALE_FACTOR}.ppm
|
||||
./trace.sh tmp/${INPUT_BASE}-quant-scale_${SCALE_FACTOR}.ppm
|
||||
gzip trace-output.svg
|
||||
mv trace-output.svg.gz ${OUTPUT}/trace-${INPUT_BASE}-${SCALE_FACTOR}.svgz
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue