Convert Images in ubuntu (And make lots of images into single pdf)

Submitted by code_admin on Mon, 07/30/2018 - 13:15

The following can be run in the directory with .CR" images to convert RAW photos into jpg's.

  1. find . -type f -name "*.CR2" -exec convert '{}' '{}'.jpg \;

The resulting file size for me was 2.1mb

Images Picture Photo Combine

Making lots of images into single pdf

How I combine photos into one file to print

  1. Download all images from google
  2. Separate all portrait and landscape into different folder
  3. Run combine script
  1. #!/bin/bash
  2.  
  3. echo "Start of combine"
  4.  
  5. ##convert -quality 85 `find -type f -name '*.png' -or -name '*.jpg' | sort -V` output.pdf
  6.  
  7. POTRAITDIR=../ski_photos/portrate/
  8. LANDSCAPEDIR=../ski_photos/landscape/
  9. rm ./pot_output.pdf
  10. rm ./land_output.pdf
  11.  
  12. convert -auto-orient -quality 20 `find ${POTRAITDIR} -type f -name '*.png' -or -name '*.jpg' | sort -V` ./pot_output.pdf
  13. convert -auto-orient -quality 20 `find ${LANDSCAPEDIR} -type f -name '*.png' -or -name '*.jpg' | sort -V` ./land_output.pdf
  14.  
  15. echo "End of combine"
  1. Open both output files print them to a file and put mutiple pages per page. I use 9 for land and 16 for portrait

google juice

image jpg jpeg png

See also

Tags

RJM Article Type
Quick Reference