debian: บันทึก imagemagick - convert
Submitted by wd on Sun, 2006-12-24 17:20
แปลงรูปจาก jpg ธรรมดา ไปเป็น jpg แบบ interlace
ใช้คำสั่งคือ
จะได้ไฟล์ jpg ชุดใหม่เข้าไปอยู่ในไดเรกทอรี่ temp
แปลงหลายรูป จาก tif ไปเป็น pdf
เอามาจาก jmetrix : Viewing multiple page tif on Linux
แปลง tif หลายไฟล์ไปเป็น tif ไฟล์เดียวหลายภาพ
แตก tif แบบหลายภาพ ออกมาเป็นหลายไฟล์ ไฟล์ละหนึ่งหน้า
จะได้ออกมาเป็น x1.tif x2.tif x3.tif
เอามาจาก [magick-users] how to split multi-page tiff into single pages
แปลง tif แบบ 8-bit ไปเป็น 4-bit 256 สี เพื่อลดขนาด และสามารถเปิดใน Windows ได้คล่องตัวขึ้น
เทคนิคคือแปลงเป็น gif ก่อน ไม่งั้นแปลงแล้วเปิดไม่ได้
# mkdir temp
# for i in *jpg; do convert $i -interlace line temp/$i ; doneจะได้ไฟล์ jpg ชุดใหม่เข้าไปอยู่ในไดเรกทอรี่ temp
# convert -adjoin `ls *.tif` newfile.pdfเอามาจาก jmetrix : Viewing multiple page tif on Linux
$ convert x1.tif x2.tif x3.tif -adjoin newfile.tif$ convert x.tif x%d.tifจะได้ออกมาเป็น x1.tif x2.tif x3.tif
เอามาจาก [magick-users] how to split multi-page tiff into single pages
$ convert x.tif /tmp/x.gif
$ convert /tmp/x.gif -depth 4 x.tifหมายเหตุ
ต้องลงแพกเกจ imagemagick ก่อน
# aptitude install imagemagick
»
- Printer-friendly version
- Login or register to post comments
- 1262 reads







Recent comments
2 weeks 4 days ago
2 weeks 4 days ago
3 weeks 3 days ago
3 weeks 3 days ago
3 weeks 3 days ago
3 weeks 3 days ago
3 weeks 3 days ago
16 weeks 2 days ago
16 weeks 6 days ago
20 weeks 1 day ago