convert -crop 1260x420+55+30 ./bulle.jpg ./$lid.jpg
This commit is contained in:
parent
34e5862878
commit
dba5dc516d
|
@ -137,7 +137,7 @@ echo "SUB-SCRAPING lieu FROM $geodata"
|
||||||
## PDF convert and crop to JPG / ipfs add / index.html for redirect
|
## PDF convert and crop to JPG / ipfs add / index.html for redirect
|
||||||
if [ -f ./output.pdf ]; then
|
if [ -f ./output.pdf ]; then
|
||||||
convert -density 300 -quality 80 ./bulle.pdf ./bulle.jpg
|
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
|
IPFS=$(ipfs add -wq "./$lid.jpg") ## Add $lid.pdf to IPFS
|
||||||
IPFSREPFILEID=$(echo $IPFS | cut -d ' ' -f 2) ## Get repertory ipfs link
|
IPFSREPFILEID=$(echo $IPFS | cut -d ' ' -f 2) ## Get repertory ipfs link
|
||||||
|
|
Loading…
Reference in New Issue