convert -crop 1260x420+55+30 ./bulle.jpg ./$lid.jpg

This commit is contained in:
fred 2021-09-20 03:03:42 +02:00
parent 34e5862878
commit dba5dc516d
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ echo "SUB-SCRAPING lieu FROM $geodata"
## PDF convert and crop to JPG / ipfs add / index.html for redirect
if [ -f ./output.pdf ]; then
convert -density 300 -quality 80 ./bulle.pdf ./bulle.jpg
convert -crop 1205x250+55+30 ./bulle.jpg ./$lid.jpg
convert -crop 1260x420+55+30 ./bulle.jpg ./$lid.jpg
IPFS=$(ipfs add -wq "./$lid.jpg") ## Add $lid.pdf to IPFS
IPFSREPFILEID=$(echo $IPFS | cut -d ' ' -f 2) ## Get repertory ipfs link