tg-me.com/geektips/974
Last Update:
Make PDF photo collage / montage. Just run script in a directory of jpg images. This one creates photos 2 columns and 3 rows per page. Compresses pdf to small size.[ ! -d output ] && mkdir output ; montage *.jpg -mode concatenate -tile 2x3 +polaroid -geometry -44-44 -background "#222222" output/montage_%03d.jpg ; img2pdf --imgsize 888x1500 output/*.jpg -o collage.pdf ; gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dPDFSETTINGS=/ebook -dNOPAUSE -dBATCH -dColorImageResolution=150 -sOutputFile=collage_small.pdf collage.pdf && exiftool -all:all= collage_small.pdf && qpdf --linearize --object-streams=generate collage_small.pdf collage_tiny.pdf && rm -f output/* collage_small.pdf collage_small.pdf_original
BY GeekTips
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Share with your friend now:
tg-me.com/geektips/974