pastebin - collaborative debugging tool
book.kpaste.net RSS

Difference between
modified post 5c939f347 by Anonymous on Fri 22nd Dec 2017 22:28
original post 5a04d84 by Anonymous on Fri 22nd Dec 2017 03:45
Download diff
Show old version | new version | both versions

    
11
#!/bin/bash
22
#//ls *.jp2 | xjobs -j 4 ./thisfile.sh
33
echo $1
44
echo j2k_to_image -i $1 -o $1.bmp
55
echo convert -resize 50\% -quality 50 $1.bmp $1.jpg
66
echo rm $1.bmp
88
#235 pgs -j 4 1:12
99
#235 pgs -j 1 3:07 aka none
14+
ls *.jpg | awk '1==1 {printf("convert -resize 10\% -quality 70 %s small/%s\n",$0,$0);}' | sh
16+
ls *.jpg  | awk '1==1{printf("<img src=\"%s\" width=\"128\">\n",$0);}' >index.html
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