Skip to content
Snippets Groups Projects
Commit fa437217 authored by benoit-cty's avatar benoit-cty
Browse files

Plus besoin de vignette

parent 3830d643
No related branches found
No related tags found
1 merge request!35Finalisation de la mise à jour de DataCirco-Web suite au stage de Marguerite
Pipeline #18465 passed with warnings
......@@ -41,9 +41,9 @@ do
echo "wget -O $c.pdf \"$BASE_URL/circonscriptions/$c\""
wget -O $c.pdf "$BASE_URL/circonscriptions/$c"
echo "$c Cr_ation de la vignette"
convert $c.pdf[0] -resize 50% -background white -flatten -type palette $c.pdf.png > /dev/null
optipng $c.pdf.png > /dev/null 2>/dev/null
mv $c.pdf.png ../reduced-pdf/
# convert $c.pdf[0] -resize 50% -background white -flatten -type palette $c.pdf.png > /dev/null
# optipng $c.pdf.png > /dev/null 2>/dev/null
# mv $c.pdf.png ../reduced-pdf/
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=../reduced-pdf/$c.pdf $c.pdf
rm $c.pdf # remove original pdf to make space
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment