pastebin - collaborative debugging tool
book.kpaste.net RSS


jp2 to jpg 50%
Posted by Anonymous on Fri 22nd Dec 2017 22:28
raw | new post
modification of post by Anonymous (view diff)

  1. #!/bin/bash
  2. #//ls *.jp2 | xjobs -j 4 ./thisfile.sh
  3. echo $1
  4. echo j2k_to_image -i $1 -o $1.bmp
  5. echo convert -resize 50\% -quality 50 $1.bmp $1.jpg
  6. echo rm $1.bmp
  7.  
  8. #235 pgs -j 4 1:12
  9. #235 pgs -j 1 3:07 aka none
  10.  
  11.  
  12.  
  13.  
  14. ls *.jpg | awk '1==1 {printf("convert -resize 10\% -quality 70 %s small/%s\n",$0,$0);}' | sh
  15.  
  16. ls *.jpg  | awk '1==1{printf("<img src=\"%s\" width=\"128\">\n",$0);}' >index.html
  17.  
  18.  
  19. ls *.jpg  | awk '1==1{printf("<figure style=\"display: inline-block; margin: 0;\"><img src=\"%s\"><figcaption>%s</figcaption></figure>\n",$0,$0);}' >index.html

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at