Imagemagick 只读取红色通道

如何解决Imagemagick 只读取红色通道

我有一个 TIFF 图像,我想将其转换为 JPG。在我的本地机器 (Ubuntu 19.10LTS) 上,我安装了 ImageMagick 6.9,目标系统 (Alpine 3.12.4) 将安装 7.0。

我使用这个命令来转换图像:

convert 100U.TIF 100U.JPG

虽然在我的本地机器上图像正确,但在目标系统上只转换了红色通道。

identify 在我的本地机器上给我这个图像输出:

$ identify -verbose 100U.TIF                                                                    ⬡ 12.18.3 
Image: 100U.TIF
  Format: TIFF (Tagged Image File Format)
  Mime type: image/tiff
  Class: DirectClass
  Geometry: 288x213+0+0
  Resolution: 75x75
  Print size: 3.84x2.84
  Units: PixelsPerInch
  Colorspace: sRGB
  Type: TrueColor
  Endianess: LSB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    Pixels: 61344
    Red:
      min: 0  (0)
      max: 255 (1)
      mean: 2.78762 (0.0109319)
      standard deviation: 23.7277 (0.0930497)
      kurtosis: 87.1252
      skewness: 9.22018
      entropy: 0.0306475
    Green:
      min: 0  (0)
      max: 255 (1)
      mean: 2.04869 (0.00803409)
      standard deviation: 21.3045 (0.0835469)
      kurtosis: 115.249
      skewness: 10.7066
      entropy: 0.0185803
    Blue:
      min: 0  (0)
      max: 255 (1)
      mean: 81.2182 (0.318503)
      standard deviation: 62.7872 (0.246224)
      kurtosis: -1.32139
      skewness: -0.234594
      entropy: 0.679964
  Image statistics:
    Overall:
      min: 0  (0)
      max: 255 (1)
      mean: 28.6848 (0.11249)
      standard deviation: 35.9398 (0.14094)
      kurtosis: 1.38693
      skewness: 1.63363
      entropy: 0.243064
  Rendering intent: Perceptual
  Gamma: 0.454545
  Chromaticity:
    red primary: (0.64,0.33)
    green primary: (0.3,0.6)
    blue primary: (0.15,0.06)
    white point: (0.3127,0.329)
  Background color: white
  Border color: srgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 288x213+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: LZW
  Orientation: TopLeft
  Properties:
    date:create: 2021-04-08T09:06:20+02:00
    date:modify: 2021-04-08T08:27:56+02:00
    tiff:alpha: unspecified
    tiff:endian: lsb
    tiff:photometric: RGB
    tiff:rows-per-strip: 4
  Artifacts:
    filename: 100U.TIF
    verbose: true
  Tainted: False
  Filesize: 65350B
  Number pixels: 61344
  Pixels per second: 6.1344MB
  User time: 0.010u
  Elapsed time: 0:01.009
  Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org

而在目标系统上identify给了我这个:

# magick identify -verbose 100U.TIF -set type TrueColor
Image:
  Filename: 100U.TIF
  Format: TIFF (Tagged Image File Format)
  Mime type: image/tiff
  Class: DirectClass
  Geometry: 288x213+0+0
  Resolution: 75x75
  Print size: 3.84x2.84
  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
  Channel statistics:
    Pixels: 61344
    Red:
      min: 0  (0)
      max: 255 (1)
      mean: 17.95 (0.0703921)
      median: 0 (0)
      standard deviation: 43.4868 (0.170536)
      kurtosis: 3.56005
      skewness: 2.22319
      entropy: 0.223782
    Green:
      min: 0  (0)
      max: 0 (0)
      mean: 0 (0)
      median: 0 (0)
      standard deviation: 0 (0)
      kurtosis: -3
      skewness: 0
      entropy: 0
    Blue:
      min: 0  (0)
      max: 0 (0)
      mean: 0 (0)
      median: 0 (0)
      standard deviation: 0 (0)
      kurtosis: -3
      skewness: 0
      entropy: 0
  Image statistics:
    Overall:
      min: 0  (0)
      max: 255 (1)
      mean: 5.98333 (0.023464)
      median: 0 (0)
      standard deviation: 14.4956 (0.0568454)
      kurtosis: 19.9054
      skewness: 4.51667
      entropy: 0.074594
  Colors: 238
  Histogram:[...]
  Rendering intent: Perceptual
  Gamma: 0.454545
  Chromaticity:
    red primary: (0.64,0.329)
  Matte color: grey74
  Background color: white
  Border color: srgb(223,223)
  Transparent color: none
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 288x213+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: LZW
  Orientation: TopLeft
  Convex hull: 263,2 278,2 287,4 287,167 276,192 255,193 171,193 29,156 8,47 80,13 113,6 161,4 263,2 
  Minimum bounding box: 287,193 8,2 
  Properties:
    date:create: 2021-04-08T07:06:20+00:00
    date:modify: 2021-04-08T06:27:56+00:00
    minimum-bounding-box:_p: 263,2
    minimum-bounding-box:_q: 278,2
    minimum-bounding-box:_v: 255,193
    minimum-bounding-box:angle: 0
    minimum-bounding-box:area: 53289
    minimum-bounding-box:height: 279
    minimum-bounding-box:unrotate: -0
    minimum-bounding-box:width: 191
    tiff:alpha: unspecified
    tiff:endian: lsb
    tiff:photometric: RGB
    tiff:rows-per-strip: 4
  Artifacts:
    verbose: true
  Tainted: False
  Filesize: 65350B
  Number pixels: 61344
  Pixels per second: 5.60942MP
  User time: 0.010u
  Elapsed time: 0:01.010
  Version: ImageMagick 7.0.10-48 Q16 x86_64 2020-12-12 https://imagemagick.org

我为参数“-type”、“-colorspace”和“-alpha”尝试了不同的值,这总是导致只有红色的图像。

会不会是我缺少依赖项?

编辑: 在我发现之后,我可以为所有 tiff 文件重现这个,我自己生成了一个并使用调试开关进行分析(在高山系统上)。 从 https://www.freeimages.com/de/photo/butterfly-1390152 生成的 tiff 文件位于:https://ibb.co/ZH1sgmK。此处生成的 jpg 文件:https://ibb.co/1qYvkcs

# identify -debug all -verbose butterfly-1390152.tiff
2021-04-09T07:07:38+00:00 0:00.000 0.000u 7.0.10 Configure identify[112]: utility.c/ExpandFilenames/971/Configure
  Command line: identify {-debug} {all} {-verbose} {butterfly-1390152.tiff}
2021-04-09T07:07:38+00:00 0:00.000 0.000u 7.0.10 Policy identify[112]: policy.c/IsRightsAuthorized/635/Policy
  Domain: Module; rights=Read; pattern="TIFF" ...
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Module identify[112]: module.c/OpenModule/1273/Module
  Searching for module "TIFF" using filename "tiff.la"
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Module identify[112]: module.c/GetMagickModulePath/546/Module
  Searching for coder module file "tiff.la" ...
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Module identify[112]: module.c/OpenModule/1282/Module
  Opening module at path "/usr/lib/ImageMagick-7.0.10/modules-Q16HDRI/coders/tiff.la"
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Module identify[112]: module.c/OpenModule/1309/Module
  Method "RegisterTIFFImage" in module "TIFF" at address 0x7f243e4edbc5
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Module identify[112]: module.c/OpenModule/1323/Module
  Method "UnregisterTIFFImage" in module "TIFF" at address 0x7f243e4edf30
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Policy identify[112]: policy.c/IsRightsAuthorized/635/Policy
  Domain: Path; rights=Read; pattern="butterfly-1390152.tiff" ...
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Blob identify[112]: blob.c/OpenBlob/3430/Blob
    read 3 magic header bytes
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Map: 4.83943MiB/4.83943MiB/30.6038GiB
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
  Map: 4.83943MiB/0B/30.6038GiB
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
  destroy 
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Policy identify[112]: policy.c/IsRightsAuthorized/635/Policy
  Domain: Path; rights=Read; pattern="butterfly-1390152.tiff" ...
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Blob identify[112]: blob.c/OpenBlob/3430/Blob
    read 3 magic header bytes
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
  destroy 
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Policy identify[112]: policy.c/IsRightsAuthorized/635/Policy
  Domain: Coder; rights=Read; pattern="TIFF" ...
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Policy identify[112]: policy.c/IsRightsAuthorized/635/Policy
  Domain: Path; rights=Read; pattern="butterfly-1390152.tiff" ...
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Blob identify[112]: blob.c/OpenBlob/3430/Blob
    read 3 magic header bytes
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Map: 4.83943MiB/4.83943MiB/30.6038GiB
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1520/Coder
  Geometry: 1600x1057
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1522/Coder
  Interlace: 1
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1524/Coder
  Bits per sample: 8
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1526/Coder
  Min sample value: 0
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1528/Coder
  Max sample value: 255
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1530/Coder
  Photometric interpretation: RGB
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1538/Coder
  Image depth: 8
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    0: red (update)
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    1: green (update)
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    2: blue (update)
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Area: 1691200B/0B/30.6038GiB
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Memory: 20294400B/20294400B/15.3019GiB
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
  open butterfly-1390152.tiff[0] (Heap Memory,1600x1057x3 20294400B)
2021-04-09T07:07:38+00:00 0:00.016 0.010u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
  Map: 4.83943MiB/0B/30.6038GiB
Image:
  Filename: butterfly-1390152.tiff
  Format: TIFF (Tagged Image File Format)
  Mime type: image/tiff
  Class: DirectClass
  Geometry: 1600x1057+0+0
  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
  Channel statistics:
    Pixels: 1691200
    Red:
      min: 135  (0.529412)
      max: 194 (0.760784)
      mean: 158.434 (0.621309)
      median: 144 (0.564706)
      standard deviation: 12.4204 (0.0487073)
      kurtosis: -0.118189
      skewness: 1.07827
      entropy: 0.852599
    Green:
      min: 0  (0)
      max: 0 (0)
      mean: 0 (0)
      median: 0 (0)
      standard deviation: 0 (0)
      kurtosis: -3
      skewness: 0
      entropy: 0
    Blue:
      min: 0  (0)
      max: 0 (0)
      mean: 0 (0)
      median: 0 (0)
      standard deviation: 0 (0)
      kurtosis: -3
      skewness: 0
      entropy: 0
  Image statistics:
    Overall:
      min: 0  (0)
      max: 194 (0.760784)
      mean: 52.8113 (0.207103)
      median: 48 (0.188235)
      standard deviation: 4.14012 (0.0162358)
      kurtosis: -1.40876
      skewness: 0.737647
      entropy: 0.2842
  Colors: 60
  Histogram:
2021-04-09T07:07:40+00:00 0:01.359 1.350u 7.0.10 Configure identify[112]: configure.c/GetConfigureOptions/675/Configure
  Searching for configure file: "/usr/share/ImageMagick-7/colors.xml"
2021-04-09T07:07:40+00:00 0:01.360 1.350u 7.0.10 Configure identify[112]: configure.c/GetConfigureOptions/675/Configure
  Searching for configure file: "/usr/lib/ImageMagick-7.0.10//config-Q16HDRI/colors.xml"
2021-04-09T07:07:40+00:00 0:01.360 1.350u 7.0.10 Configure identify[112]: configure.c/GetConfigureOptions/675/Configure
  Searching for configure file: "/etc/ImageMagick-7/colors.xml"
2021-04-09T07:07:40+00:00 0:01.360 1.350u 7.0.10 Configure identify[112]: configure.c/GetConfigureOptions/675/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-7/colors.xml"
2021-04-09T07:07:40+00:00 0:01.360 1.350u 7.0.10 Configure identify[112]: configure.c/GetConfigureOptions/675/Configure
  Searching for configure file: "/root/.config/ImageMagick/colors.xml"
2021-04-09T07:07:40+00:00 0:01.360 1.350u 7.0.10 Configure identify[112]: color.c/LoadColorCache/1983/Configure
  Loading color file "/etc/ImageMagick-7/colors.xml" ...
[histogram left out]
  Rendering intent: Perceptual
  Gamma: 0.454545
  Chromaticity:
    red primary: (0.64,223)
  Transparent color: none
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 1600x1057+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: None
  Orientation: TopLeft
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    0: red (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    1: green (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    2: blue (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
  open butterfly-1390152.tiff[0] (Heap Memory,1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
  destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
  Memory: 19200B/20294400B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    0: red (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    1: green (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    2: blue (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
  open butterfly-1390152.tiff[0] (Heap Memory,1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
  destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
  Memory: 19200B/20294400B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    0: red (update)
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    1: green (update)
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    2: blue (update)
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
  open butterfly-1390152.tiff[0] (Heap Memory,1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
  destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
  Memory: 19200B/20294400B/15.3019GiB
  Convex hull: 0,0 1599,1055 1598,1056 0,0 
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    0: red (update)
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    1: green (update)
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    2: blue (update)
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
  open butterfly-1390152.tiff[0] (Heap Memory,1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
  destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
  Memory: 19200B/20294400B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
  butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    0: red (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    1: green (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
    2: blue (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
  Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
  open butterfly-1390152.tiff[0] (Heap Memory,1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
  destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.414 1.400u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
  Memory: 19200B/20294400B/15.3019GiB
  Minimum bounding box: 1599,0 
  Profiles:
    Profile-8bim: 12 bytes
8bim(12):
0x00000000: 42494d04 04000000 00000000                    8BIM--------
    Profile-icc: 560 bytes
icc(560):
0x00000000: 00023041 44424502 1000006d 6e747252 47422058  ---0ADBE----mntrRGB 
0x00000190: 595a2007 d0000800 0b001300 33003b61 63737041  XYZ ---------3-;acsp
0x00000320: 50504c00 0000006e 6f6e6500 00000000 00000000  APPL----none--------
0x000004b0: 00000000 00000100 00f6d600 01000000 00d32d41  --------------------
0x00000640: 44424500 00000000 00000000 00000000 00000000  ADBE----------------
0x000007d0: 00000000 00000000 00000000 00000000 00000000  --------------------
0x00000960: 00000000 00000000 00000a63 70727400 0000fc00  ------------cprt----
0x00000af0: 00003264 65736300 00013000 00006b77 74707400  ---2desc---0---kwtpt
0x00000c80: 00019c00 00001462 6b707400 0001b000 00001472  --------bkpt--------
0x00000e10: 54524300 0001c400 00000e67 54524300 0001d400  rTRC--------gTRC----
0x00000fa0: 00000e62 54524300 0001e400 00000e72 58595a00  ----bTRC--------rXYZ
0x00001130: 0001f400 00001467 58595a00 00020800 00001462  --------gXYZ--------
0x000012c0: 58595a00 00021c00 00001474 65787400 00000043  bXYZ--------text----
0x00001450: 6f707972 69676874 20323030 30204164 6f626520  Copyright 2000 Adobe
0x000015e0: 53797374 656d7320 496e636f 72706f72 61746564   Systems Incorporate
0x00001770: 00000064 65736300 00000000 00001141 646f6265  d---desc--------Adob
0x00001900: 20524742 20283139 39382900 00000000 00000000  e RGB (1998)--------
0x00001a90: 00000000 00000000 00000000 00000000 00000000  --------------------
0x00001c20: 00000000 00000000 00000000 00000000 00000000  --------------------
0x00001db0: 00000000 00000000 00000000 00000000 00000000  --------------------
0x00001f40: 00000000 00000000 00000058 595a2000 00000000  ------------XYZ ----
0x000020d0: 00f35100 01000000 0116cc58 595a2000 00000000  ---Q--------XYZ ----
0x00002260: 00000000 00000000 00000063 75727600 00000000  ------------curv----
0x000023f0: 00000102 33000063 75727600 00000000 00000102  -----3--curv--------
0x00002580: 33000063 75727600 00000000 00000102 33000058  -3--curv---------3--
0x00002710: 595a2000 00000000 009c1800 004fa500 0004fc58  XYZ ----------O-----
0x000028a0: 595a2000 00000000 00348d00 00a02c00 000f9558  XYZ ------4----,----
0x00002a30: 595a2000 00000000 00263100 00102f00 00be9c00  XYZ ------&1---/----
  Properties:
    date:create: 2021-04-09T07:01:47+00:00
    date:modify: 2021-04-09T07:01:47+00:00
    icc:copyright: Copyright 2000 Adobe Systems Incorporated
    icc:description: Adobe RGB (1998)
    minimum-bounding-box:_p: 0,0
    minimum-bounding-box:_q: 1599,0
    minimum-bounding-box:_v: 1598,1056
    minimum-bounding-box:angle: 0
    minimum-bounding-box:area: 1.68854e+06
    minimum-bounding-box:height: 1599
    minimum-bounding-box:unrotate: -0
    minimum-bounding-box:width: 1056
    signature: 272a8b584aacf8e2b7d61d0b8fa608768f9fe5ce1ee34eca2f62dfd8d1885e60
    tiff:alpha: unspecified
    tiff:endian: lsb
    tiff:photometric: RGB
    tiff:rows-per-strip: 208
  Artifacts:
    verbose: true
  Tainted: False
  Filesize: 4.83943MiB
  Number pixels: 1691200
  Pixels per second: 114.282MP
  User time: 0.010u
  Elapsed time: 0:01.014
  Version: ImageMagick 7.0.10-48 Q16 x86_64 2020-12-12 https://imagemagick.org
2021-04-09T07:07:40+00:00 0:01.462 1.450u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
  destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.463 1.450u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
  Memory: 20294400B/0B/15.3019GiB

解决方法

无法访问您的文件很难提供帮助!以下是一些建议:

  • 尝试在打开调试的情况下运行 ImageMagick 以查看是否可以发现差异:

    magick identify -debug all -verbose 100U.tif

  • 尝试使用 exiftool 看看它对您的文件有何影响:

    exiftool -v -v 100U.tif


如果您有 docker,您可以非常快速地运行一次性 Alpine 实例并在其上安装 ImageMagick 并尝试如下:

docker run --rm -it -v "$(pwd)":/work alpine:latest

/ # apk add --no-cache imagemagick
/ # cd work
/work # magick 100U.TIF 100U.JPG
,

这个问题就像我的问题。我在更新 imagemagick 版本后解决

How to convert a TIFF to a JPG with ImageMagick

,

正如 fmw42 所指出的,7.0.10-48 似乎有一个错误(将尝试在问题跟踪器中找到它)。更新到 7.0.10-57 解决了这个问题。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-
参考1 参考2 解决方案 # 点击安装源 协议选择 http:// 路径填写 mirrors.aliyun.com/centos/8.3.2011/BaseOS/x86_64/os URL类型 软件库URL 其他路径 # 版本 7 mirrors.aliyun.com/centos/7/os/x86
报错1 [root@slave1 data_mocker]# kafka-console-consumer.sh --bootstrap-server slave1:9092 --topic topic_db [2023-12-19 18:31:12,770] WARN [Consumer clie
错误1 # 重写数据 hive (edu)> insert overwrite table dwd_trade_cart_add_inc > select data.id, > data.user_id, > data.course_id, > date_format(
错误1 hive (edu)> insert into huanhuan values(1,'haoge'); Query ID = root_20240110071417_fe1517ad-3607-41f4-bdcf-d00b98ac443e Total jobs = 1
报错1:执行到如下就不执行了,没有显示Successfully registered new MBean. [root@slave1 bin]# /usr/local/software/flume-1.9.0/bin/flume-ng agent -n a1 -c /usr/local/softwa
虚拟及没有启动任何服务器查看jps会显示jps,如果没有显示任何东西 [root@slave2 ~]# jps 9647 Jps 解决方案 # 进入/tmp查看 [root@slave1 dfs]# cd /tmp [root@slave1 tmp]# ll 总用量 48 drwxr-xr-x. 2
报错1 hive> show databases; OK Failed with exception java.io.IOException:java.lang.RuntimeException: Error in configuring object Time taken: 0.474 se
报错1 [root@localhost ~]# vim -bash: vim: 未找到命令 安装vim yum -y install vim* # 查看是否安装成功 [root@hadoop01 hadoop]# rpm -qa |grep vim vim-X11-7.4.629-8.el7_9.x
修改hadoop配置 vi /usr/local/software/hadoop-2.9.2/etc/hadoop/yarn-site.xml # 添加如下 <configuration> <property> <name>yarn.nodemanager.res