bashスクリプトとtiff2pdfを使用してweb ready pdfsにtiffsを作成しようとしましたが、私のテストスイートにはかなり奇妙な問題があります。いつls -l
...Imagemagick identify -verboseはls -lとのファイルサイズが非常に異なっています-l
[email protected]:~/Desktop/testdir$ ls -l
total 339896
-rw------- 1 joe joe 2165668 Feb 17 11:48 191611032571.pdf
-rw-rw-r-- 1 joe joe 28114948 Feb 17 11:51 1948010211.pdf
-rw------- 1 joe joe 28114113 Feb 17 11:42 1948010211.tif
-rw-rw-r-- 1 joe joe 29499021 Feb 17 11:51 1948010212.pdf
.
.
.
しかし、もし私identify -verbose 1948010211.pdf
...
[email protected]:~/Desktop/testdir$ identify -verbose 1948010211.pdf
Image: 1948010211.pdf
Format: PDF (Portable Document Format)
Class: DirectClass
Geometry: 1085x1456+0+0
Resolution: 72x72
Print size: 15.0694x20.2222
Units: Undefined
Type: PaletteAlpha
Endianess: Undefined
Colorspace: sRGB
Depth: 16/8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 1-bit
.
.
.
Properties:
date:create: 2017-02-17T14:30:11-08:00
date:modify: 2017-02-17T14:30:11-08:00
pdf:HiResBoundingBox: 1085.04x1455.84+0+0
pdf:Version: PDF-1.1
signature: b3d978e3b2e7784867b27da677b7288e6674dfcaeb92a8c58f9faf19b20f0655
Profiles:
Profile-icc: 2576 bytes
Description: Artifex Software sRGB ICC Profile
Manufacturer: Artifex Software sRGB ICC Profile
Model: Artifex Software sRGB ICC Profile
Copyright: Copyright Artifex Software 2011
Artifacts:
filename: 1948010211.pdf
verbose: true
Tainted: True
Filesize: 2.395MB
Number pixels: 1.58M
Pixels per second: 39.49MB
User time: 0.040u
Elapsed time: 0:01.040
Version: ImageMagick 6.7.7-10 2016-11-29 Q16 http://www.imagemagick.org
ファイルサイズはそれほど劇的に異なるだろう、なぜ任意のアイデア?このような大きなファイルを作成しているbashスクリプト(tiff2pdf -u i -w 15.07 -l 20.22 -x 300 -y 300 -r o -o "${file/%.tif/.pdf}" "$file"
)のコマンドに何か問題がありますか?
私は 'tiff2pdf'に慣れていませんが、' -x 300'と '-y 300'はx、yの解像度を設定していると思われます。おそらく、これらを144に設定して、 4+。 –
です。私は、メガバイト以下になるような新しいコマンドに切り替えました。私はなぜ、同一の画像のために、識別情報とlsが劇的に異なるサイズを報告するのだろうと思っています。 –
@WilliamMcDuff:アップグレードをお試しください。過去のバグがありました:http://www.multipole.org/discourse-server/viewtopic.php?t=20491#p81927図書館が退行している可能性があります – saurabheights