Advait
From Healthcare Robotics Wiki
(Redirected from User:Advaitjain)
Cleaning Whiteboard images
- http://snapclean.me/
- I have committed the gimp file and instructions (robot1/usr/advait/snapclean) in case snapclean goes down.
- testing
strikethrough
Command line tips
- making pdfs from images:
- renaming the files - so that convert gets them in the correct order.
- for ((i=3;i<=9;i+=1)); do mv $i'.png' '0'$i'.png'; done
- This is to crop the images.
- convert '*.png[803x965+429+27]' %02d.png
- sudo apt-get install gs pdftk sam2p
- convert pngs to pdfs (convert did not scale the images properly)
- for ((i=0;i<=3;i+=1)); do sam2p '0'$i'.png' '0'$i'.pdf'; done
- combine the individual pdfs
- gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH *.pdf
- renaming the files - so that convert gets them in the correct order.