LINUX.ORG.RU

imagemagick баг конвертации png

 


0

1

Хочу сконвертировать png (выложить сам файл не могу)

convert -debug all img002.png output.jpeg
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: utility.c/ExpandFilenames/954/Configure
  Command line: convert {-debug} {all} {img002.png} {output.jpeg}
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Policy convert-im6.q16[153427]: policy.c/IsRightsAuthorized/604/Policy
  Domain: Module; rights=Read; pattern="PNG" ...
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/coder.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/x86_64-linux-gnu/ImageMagick-6.9.10//config-Q16/coder.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/coder.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/imagemagick-6-common/htmlcoder.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/user/.config/ImageMagick/coder.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/user/.magick/coder.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: coder.c/LoadCoderCache/818/Configure
  Loading coder configuration file "/etc/ImageMagick-6/coder.xml" ...
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Module convert-im6.q16[153427]: module.c/OpenModule/1300/Module
  Searching for module "PNG" using filename "png.la"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Module convert-im6.q16[153427]: module.c/GetMagickModulePath/546/Module
  Searching for coder module file "png.la" ...
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Module convert-im6.q16[153427]: module.c/OpenModule/1309/Module
  Opening module at path "/usr/lib/x86_64-linux-gnu/ImageMagick-6.9.10/modules-Q16/coders/png.la"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Module convert-im6.q16[153427]: module.c/OpenModule/1336/Module
  Method "RegisterPNGImage" in module "PNG" at address 0x7f27e35abac0
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Module convert-im6.q16[153427]: module.c/OpenModule/1350/Module
  Method "UnregisterPNGImage" in module "PNG" at address 0x7f27e35ac080
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Policy convert-im6.q16[153427]: policy.c/IsRightsAuthorized/604/Policy
  Domain: Path; rights=Read; pattern="img002.png" ...
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Blob convert-im6.q16[153427]: blob.c/OpenBlob/2766/Blob
    read 3 magic header bytes
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Resource convert-im6.q16[153427]: resource.c/AcquireMagickResource/395/Resource
  Map: 37.4219MiB/37.4219MiB/1GiB
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Resource convert-im6.q16[153427]: resource.c/RelinquishMagickResource/1162/Resource
  Map: 39.2397MB/0B/1GiB
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Cache convert-im6.q16[153427]: cache.c/DestroyPixelCache/1182/Cache
  destroy
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/magic.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/x86_64-linux-gnu/ImageMagick-6.9.10//config-Q16/magic.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/magic.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/imagemagick-6-common/htmlmagic.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/user/.config/ImageMagick/magic.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/user/.magick/magic.xml"
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Configure convert-im6.q16[153427]: magic.c/LoadMagicCache/796/Configure
  Loading magic configure file "/etc/ImageMagick-6/magic.xml" ...
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Policy convert-im6.q16[153427]: policy.c/IsRightsAuthorized/604/Policy
  Domain: Path; rights=Read; pattern="img002.png" ...
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Blob convert-im6.q16[153427]: blob.c/OpenBlob/2766/Blob
    read 3 magic header bytes
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Cache convert-im6.q16[153427]: cache.c/DestroyPixelCache/1182/Cache
  destroy
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Policy convert-im6.q16[153427]: policy.c/IsRightsAuthorized/604/Policy
  Domain: Coder; rights=Read; pattern="PNG" ...
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadPNGImage/4078/Coder
  Enter ReadPNGImage()
2020-12-20T14:07:18+03:00 0:00.000 0.000u 6.9.10 Policy convert-im6.q16[153427]: policy.c/IsRightsAuthorized/604/Policy
  Domain: Path; rights=Read; pattern="img002.png" ...
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Blob convert-im6.q16[153427]: blob.c/OpenBlob/2766/Blob
    read 3 magic header bytes
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Resource convert-im6.q16[153427]: resource.c/AcquireMagickResource/395/Resource
  Map: 37.4219MiB/37.4219MiB/1GiB
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2149/Coder
    Enter ReadOnePNGImage()
    IM version     = 6.9.10-23
    Libpng version = 1.6.37
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2162/Coder
        Zlib version   = 1.2.11
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2192/Coder
      Before reading:
      image->matte=0
      image->rendering_intent=2
      image->colorspace=13
      image->gamma=0.454545
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2494/Coder
      PNG width: 4996, height: 6982
    PNG color_type: 4, bit_depth: 16
    PNG compression_method: 0
    PNG interlace_method: 1, filter_method: 0
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2510/Coder
      Found PNG iCCP chunk.
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2578/Coder
      Reading PNG iCCP chunk.
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2642/Coder
      Got a 544-byte ICC profile not recognized as sRGB
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2813/Coder
      Reading PNG pHYs chunk: xres: 23622, yres: 23622, units: 1.
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2923/Coder
      Reading PNG bKGD chunk, raw ping_background=(255,255,255).
    bkgd_scale=1.  ping_background=(255,255,255).
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2944/Coder
      image->background_color=(255,255,255).
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/3053/Coder
      image->gamma=0.454545
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Resource convert-im6.q16[153427]: resource.c/AcquireMagickResource/395/Resource
  Width: 4996B/4996B/16000B
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Resource convert-im6.q16[153427]: resource.c/AcquireMagickResource/395/Resource
  Height: 6982B/6982B/16000B
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Resource convert-im6.q16[153427]: resource.c/AcquireMagickResource/395/Resource
  ListLength: 1B/1B/18.4467EB
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Resource convert-im6.q16[153427]: resource.c/AcquireMagickResource/395/Resource
  Area: 34.8821MB/34.8821MB/256000000B
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Resource convert-im6.q16[153427]: resource.c/AcquireMagickResource/395/Resource
  Memory: 266.129MiB/266.129MiB/512MiB
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Cache convert-im6.q16[153427]: cache.c/OpenPixelCache/4003/Cache
  open img002.png[0] (Heap Memory, 4996x6982 266.129MiB)
2020-12-20T14:07:18+03:00 0:00.010 0.000u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/3109/Coder
      image->colorspace=2
2020-12-20T14:07:18+03:00 0:00.100 0.100u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/3272/Coder
      Reading PNG IDAT chunk(s)
2020-12-20T14:07:18+03:00 0:00.100 0.100u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/3286/Coder
      Converting PNG pixels to pixel packets

2020-12-20T14:07:18+03:00 0:00.720 0.700u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/3365/Coder
      Looking for cheap transparent pixel
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Coder convert-im6.q16[153427]: png.c/MagickPNGWarningHandler/1664/Coder
    libpng-1.6.37 warning: Expected 8192 bytes; found 7754 bytes
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/usr/share/ImageMagick-6/locale.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/usr/lib/x86_64-linux-gnu/ImageMagick-6.9.10//config-Q16/locale.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/etc/ImageMagick-6/locale.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/usr/share/doc/imagemagick-6-common/htmllocale.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/home/user/.config/ImageMagick/locale.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/home/user/.magick/locale.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Configure convert-im6.q16[153427]: locale.c/LoadLocaleCache/1209/Configure
  Loading locale configure file "/usr/share/ImageMagick-6/locale.xml" ...
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/usr/share/ImageMagick-6/english.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/usr/lib/x86_64-linux-gnu/ImageMagick-6.9.10//config-Q16/english.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/etc/ImageMagick-6/english.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/usr/share/doc/imagemagick-6-common/htmlenglish.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/home/user/.config/ImageMagick/english.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Locale convert-im6.q16[153427]: locale.c/GetLocaleOptions/856/Locale
  Searching for locale file: "/home/user/.magick/english.xml"
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Configure convert-im6.q16[153427]: locale.c/LoadLocaleCache/1209/Configure
  Loading locale configure file "/usr/share/ImageMagick-6/english.xml" ...
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Exception convert-im6.q16[153427]: png.c/MagickPNGWarningHandler/1667/Exception
  Expected 8192 bytes; found 7754 bytes `img002.png'
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Coder convert-im6.q16[153427]: png.c/MagickPNGErrorHandler/1638/Coder
    libpng-1.6.37 error: Read Exception
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Exception convert-im6.q16[153427]: png.c/MagickPNGErrorHandler/1641/Exception
  Read Exception `img002.png'
2020-12-20T14:07:18+03:00 0:00.870 0.860u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2276/Coder
    exit ReadOnePNGImage() with error.
2020-12-20T14:07:18+03:00 0:00.870 0.860u 6.9.10 Cache convert-im6.q16[153427]: cache.c/DestroyPixelCache/1182/Cache
  destroy img002.png[0]
2020-12-20T14:07:18+03:00 0:00.880 0.870u 6.9.10 Resource convert-im6.q16[153427]: resource.c/RelinquishMagickResource/1162/Resource
  Memory: 279.057MB/0B/512MiB
2020-12-20T14:07:18+03:00 0:00.880 0.870u 6.9.10 Resource convert-im6.q16[153427]: resource.c/RelinquishMagickResource/1162/Resource
  Map: 39.2397MB/0B/1GiB
2020-12-20T14:07:18+03:00 0:00.880 0.870u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadPNGImage/4120/Coder
  exit ReadPNGImage() with error
2020-12-20T14:07:18+03:00 0:00.880 0.870u 6.9.10 Exception convert-im6.q16[153427]: convert.c/ConvertImageCommand/3258/Exception
  no images defined `output.jpeg'
convert-im6.q16: no images defined `output.jpeg' @ error/convert.c/ConvertImageCommand/3258.
Файлик большой.
img002.png: PNG image data, 4996 x 6982, 16-bit gray+alpha, interlaced
Маленькие файлы конвертирует, что там надо подкрутить?

★★★★★

Expected 8192 bytes; found 7754 bytes `img002.png’

подкрути img002.png, в нём где-то не достаёт 438 байтов.

попробуй ffmpeg, кста, он может сможет:

ffmpeg -i img002.png output.jpeg

качество только не помню как настраивать, вроде -q ..., но, помнится, там не в процентах было, как в маджике. в маджике дефолт — 92%, кстати.

anonymous ()
Ответ на: комментарий от anonymous

Да на самом деле мне бы фильтры накатить некоторые, так что гляну png в png. Вообще GIMP такое сделал.

О, ffmeg тоже ругается.

ffmpeg -i img002.png test.png
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[png @ 0x5601b9fd9700] chunk too big
[png_pipe @ 0x5601b9fd76c0] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, png_pipe, from 'img002.png':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: png, ya16be(pc), 4996x6982 [SAR 23622:23622 DAR 2498:3491], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> png (native))
Press [q] to stop, [?] for help
[png @ 0x5601b9fed000] chunk too big
Error while decoding stream #0:0: Invalid data found when processing input
Output #0, image2, to 'test.png':A time=-577014:32:22.77 bitrate=N/A speed=N/A
  Metadata:
    encoder         : Lavf58.29.100
    Stream #0:0: Video: png, ya16be, 4996x6982 [SAR 23622:23622 DAR 2498:3491], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.54.100 png
frame=    0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Conversion failed!

похоже надо в gimp багрепорт писать

peregrine ★★★★★ ()

О, а ты один из тех, кто препятствует нормальному поиску по форуму?

Где вас готовят? Я имею в виду, где и зачем специально учат создавать максимально неинформативные заголовки?

Когда я работал в суппорте, дико бесили такие кастомеры: приходит новый клиент с ошибкой, и был уже тикет с такой же ошибкой, вот только хрен его найдёшь, так как присылал его два года назад один из таких как ты: вместо внятного названия с ошибкой и ключевыми моментами он тикет назвал «Question». И найти в трекере этот тикет теперь невозможно и приходится суппортеру заново инвестигейтить для нового кастомера неделю, а то и месяц, а так бы за 10 минут нашёл солюшн.

BackDoorLover ()
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Exception convert-im6.q16[153427]: png.c/MagickPNGWarningHandler/1667/Exception
  Expected 8192 bytes; found 7754 bytes `img002.png'
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Coder convert-im6.q16[153427]: png.c/MagickPNGErrorHandler/1638/Coder
    libpng-1.6.37 error: Read Exception
2020-12-20T14:07:18+03:00 0:00.860 0.860u 6.9.10 Exception convert-im6.q16[153427]: png.c/MagickPNGErrorHandler/1641/Exception
  Read Exception `img002.png'
2020-12-20T14:07:18+03:00 0:00.870 0.860u 6.9.10 Coder convert-im6.q16[153427]: png.c/ReadOnePNGImage/2276/Coder
    exit ReadOnePNGImage() with error.

Очень похоже, что файл битый.

Bagrov ★★★★★ ()
Ответ на: комментарий от anonymous

Да, сам открывает. Но там какая-то байда с альфаканалом. Квадрат A4 (это скан) снизу с альфаканалом, хотя никакого альфаканала там быть не должно. Хм, буду играться с настройками сохранения, может найду что там.

peregrine ★★★★★ ()
Последнее исправление: peregrine (всего исправлений: 1)