问题描述
我想要实现的是从 PDF 转换的多页 TIFF,在输出文件中使用这些确切的参数:
Image:
Filename: 0.tiff
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: PseudoClass
Geometry: 2479x3508+0+0
Resolution: 300x300
Print size: 8.26333x11.6933
Units: PixelsPerInch
Colorspace: sRGB
Type: Palette
Base type: TrueColor
Endianness: LSB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 1-bit
Blue: 1-bit
我最后得到的,最接近的结果:
% magick -depth 8 -密度 300 1.pdf -separate
( -clone 0 -depth 8 )
( -clone 1 -depth 1 )
( -clone 2 -depth 1 )
-delete 0-2 -combine -type 调色板 -alpha off -compress lzw 1.tiff
Image:
Filename: 1.tiff
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: PseudoClass
Geometry: 2479x3508+0+0
Resolution: 300x300
Print size: 8.26333x11.6933
Units: Undefined
Colorspace: sRGB
Type: Grayscale
Base type: Palette
Endianness: LSB
Depth: 8/16-bit
Channel depth:
Red: 16-bit
Green: 16-bit
Blue: 16-bit
输出不是多页的。当我使用 -type truecolor 时,由于某种未知原因,深度从 8 位更改为 16 位。我几乎尝试了每种组合的所有方法,但都失败了。什么是正确的参数来获得我需要的东西?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)