Skip to content
Snippets Groups Projects
Commit 359a1539 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Testing animated gif generation

parent 8205fa08
Branches
No related tags found
1 merge request!110Testing animated gif generation
Pipeline #9609 passed
1.34392e+07
0.0
180
90
0
0
0
0
29
40
1
0.001
0
......
......@@ -62,16 +62,18 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
echo "view12 produces a series of slightly rotated XY slices a different z locations. Along beamline"
../../bin/dawn_tweak --mag 40
# slice at z = 2m
# note the offset has to change with sign of the direction to cut in the opposite direction.
dawncut 0 0 1 2005 ${INPUT_FILE} ${FILE_TAG}b_temp0.prim
dawncut 0 0 -1 -2000 ${FILE_TAG}b_temp0.prim ${FILE_TAG}b.prim
dawn -d ${FILE_TAG}b.prim
ps2pdf ${FILE_TAG}b.eps ${FILE_TAG}b_full.pdf
gs -o ${FILE_TAG}b.pdf -sDEVICE=pdfwrite \
-c "[/CropBox [50 175 550 675] /PAGES pdfmark" \
-f ${FILE_TAG}b_full.pdf
pdftoppm ${FILE_TAG}b.pdf ${FILE_TAG}b -png -singlefile -cropbox
#dawncut 0 0 1 2005 ${INPUT_FILE} ${FILE_TAG}b_temp0.prim
#dawncut 0 0 -1 -2000 ${FILE_TAG}b_temp0.prim ${FILE_TAG}b.prim
#dawn -d ${FILE_TAG}b.prim
#ps2pdf ${FILE_TAG}b.eps ${FILE_TAG}b_full.pdf
#gs -o ${FILE_TAG}b.pdf -sDEVICE=pdfwrite \
# -c "[/CropBox [50 175 550 675] /PAGES pdfmark" \
# -f ${FILE_TAG}b_full.pdf
#pdftoppm ${FILE_TAG}b.pdf ${FILE_TAG}b -png -singlefile -cropbox
original_file_tag="${FILE_TAG}"
......@@ -90,7 +92,7 @@ make_slice(){
rm "${FILE_TAG}_temp0.prim"
rm "${FILE_TAG}.prim"
}
for zzz in $(seq 50 50 2000) ;
for zzz in $(seq 0 2 130) ;
do
make_slice ${zzz} &
done
......
1.34392e+07
0.0
-1
180
0
......
1.34392e+07
0.0
72.5
189.5
0
......
1.34392e+07
0.0
72.5
189.5
0
......
......@@ -5,11 +5,13 @@ dawn_view_12:detector:
view_12:
stage: test
image: eicweb.phy.anl.gov:4567/eic/detectors/topside/imagemagick:latest
rules:
- if: '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
needs:
- ["dawn_view_12:detector"]
script:
- convert -delay 100 -loop 0 images/view12a*.png images/view12a.gif
- ls -lrth *
- ls -lrth images/*
......@@ -5,11 +5,13 @@ dawn_view_14:detector:
view_14:
stage: test
image: eicweb.phy.anl.gov:4567/eic/detectors/topside/imagemagick:latest
rules:
- if: '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
needs:
- ["dawn_view_14:detector"]
script:
- convert -delay 100 -loop 0 images/view14a*.png images/view14a.gif
- ls -lrth *
- ls -lrth images/*
......@@ -5,11 +5,13 @@ dawn_view_15:detector:
view_15:
stage: test
image: eicweb.phy.anl.gov:4567/eic/detectors/topside/imagemagick:latest
rules:
- if: '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
needs:
- ["dawn_view_15:detector"]
script:
- convert -delay 100 -loop 0 images/view15a*.png images/view15a.gif
- ls -lrth *
- ls -lrth images/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment