E.g. for File:Brewsteri nurk.xcf my ancient GIMP 2.8.14 reports "XCF error: unsupported XCF file version 11 encountered" while my brand new 2.10.2 opens it without problems. So my guess is that some software (ImageMagick???) needs to be updated. File:3d text Veniamin Bibikov fotolia-849x478-637x359.xcf is even better example – the first version was written by an old version of GIMP and two latest by 2.10.
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T43371 Thumbnail/imagescaler (tracking) | |||
| Open | None | T196054 Preview/thumbnails for XCF files (XCF file version 11, written by GIMP 2.10) cannot be generated by ImageMagick | |||
| Resolved | AntiCompositeNumber | T260285 Use ImageMagick for XCF rendering instead of xcftools |
Event Timeline
Comment Actions
$:acko\> convert T196054.xcf T196054.png convert: memory allocation failed `T196054.xcf' @ error/xcf.c/ReadXCFImage/1358. convert: no images defined `T196054.png' @ error/convert.c/ConvertImageCommand/3258. $:acko\> rpm -qf /usr/bin/convert ImageMagick-6.9.9.38-1.fc28.x86_64
Seems to be https://github.com/ImageMagick/ImageMagick/issues/1133 in upstream (which is not fixed yet)?
Comment Actions
Patch merged in upstream master: https://github.com/ImageMagick/ImageMagick/commit/a2c809810259072dc0f281e081936c9b33c61825
Comment Actions
File:Brewsteri nurk.xcf has been deleted, which makes it difficult to debug.
Thumbor uses xcf2png, not ImageMagick, to render .xcf files.
2020-05-21 05:34:32 thumbor:DEBUG METRICS: inc: response.count:1
2020-05-21 05:34:32 thumbor:DEBUG METRICS: inc: storage.miss:1
2020-05-21 05:34:32 thumbor:DEBUG [HTTPS] load_sync: https%3A//upload.wikimedia.org/wikipedia/commons/archive/4/48/20191107181425%213d_text_Veniamin_Bibikov_fotolia-849x478-637x359.xcf
2020-05-21 05:34:32 thumbor:DEBUG [HTTPS] Loading normalized URL: https://upload.wikimedia.org/wikipedia/commons/archive/4/48/20191107181425%213d_text_Veniamin_Bibikov_fotolia-849x478-637x359.xcf
2020-05-21 05:34:32 thumbor:DEBUG [HTTPS] return_contents: /tmp/tmpUzHSd1
2020-05-21 05:34:32 thumbor:DEBUG METRICS: inc: original_image.status.200:1
2020-05-21 05:34:32 thumbor:DEBUG METRICS: inc: original_image.response_bytes:4096
2020-05-21 05:34:32 thumbor:DEBUG [Proxy] Looking for a xcf engine
2020-05-21 05:34:32 thumbor:DEBUG [BWE] Found source file in context
2020-05-21 05:34:32 thumbor:DEBUG [ShellRunner] Command: ['/usr/bin/timeout', '--foreground', '59', '/usr/bin/xcf2png', '/tmp/tmpUzHSd1', '-o', '-']
2020-05-21 05:34:32 thumbor:DEBUG [ShellRunner] Stdout: �PNG
�
IHDR
>1C�IDATx����à�S_U��>��IEND�B`�
2020-05-21 05:34:32 thumbor:DEBUG [ShellRunner] Stderr: Warning: XCF version 11 not supported (trying anyway...)
2020-05-21 05:34:32 thumbor:DEBUG [ShellRunner] Return code: 0
2020-05-21 05:34:32 thumbor:DEBUG [ShellRunner] Duration: 26.315
2020-05-21 05:34:32 thumbor:DEBUG [IM] Dumping buffer into temp file
2020-05-21 05:34:32 thumbor:DEBUG [ExiftoolRunner] command: ['/usr/bin/exiftool', '-s', '-s', '-ImageSize', '-ProfileDescription', '-ColorType', '-FileType', '-Transparency', '-Artist', '-Copyright', '-ImageDescription', '/tmp/tmpFxAKn9']
2020-05-21 05:34:32 thumbor:DEBUG [ShellRunner] Command: ['/usr/bin/timeout', '--foreground', '59', '/usr/bin/exiftool', '-s', '-s', '-ImageSize', '-ProfileDescription', '-ColorType', '-FileType', '-Transparency', '-Artist', '-Copyright', '-ImageDescription', '/tmp/tmpFxAKn9']
2020-05-21 05:34:32 thumbor:DEBUG [ShellRunner] Stdout: ImageSize: 780x339
ColorType: Grayscale with Alpha
FileType: PNG
2020-05-21 05:34:32 thumbor:DEBUG [ShellRunner] Stderr:
2020-05-21 05:34:32 thumbor:DEBUG [ShellRunner] Return code: 0
2020-05-21 05:34:32 thumbor:DEBUG [ShellRunner] Duration: 89.629
2020-05-21 05:34:32 thumbor:DEBUG [IM] EXIF: {'FileType': 'PNG', 'ColorType': 'Grayscale with Alpha', 'ImageSize': '780x339'}
2020-05-21 05:34:32 thumbor:DEBUG [IM] File has no ICC profile
2020-05-21 05:34:33 thumbor:ERROR Error reading image metadata: The memory contains data of an unknown image type
2020-05-21 05:34:33 thumbor:DEBUG [IM] reorientate
2020-05-21 05:34:33 thumbor:DEBUG [IM] resize: 600.0 261.0
2020-05-21 05:34:33 thumbor:DEBUG [IM] Queued operators: ['-resize', '600x261^', '-gravity', 'center', '-extent', '600x261', '-background', 'none']
2020-05-21 05:34:33 thumbor:DEBUG No image format specified. Retrieving from the image extension: .png .
2020-05-21 05:34:33 thumbor:DEBUG Content Type of image/jpeg detected.
2020-05-21 05:34:33 thumbor:DEBUG [BWE] Defaulting to .jpg
2020-05-21 05:34:33 thumbor:DEBUG [IM] read: .jpg 87
2020-05-21 05:34:33 thumbor:DEBUG [IM] Chroma subsampling: '4:2:0'
2020-05-21 05:34:33 thumbor:DEBUG [IM] Generating image with quality 87
2020-05-21 05:34:33 thumbor:DEBUG [IM] Queued operators: ['-resize', '600x261^', '-gravity', 'center', '-extent', '600x261', '-background', 'none', '-quality', '87', '-sampling-factor', '4:2:0', '-interlace', 'Plane']
2020-05-21 05:34:33 thumbor:DEBUG [ShellRunner] Command: ['/usr/bin/timeout', '--foreground', '59', '/usr/bin/convert', '-define', 'tiff:exif-properties=no', '-resize', '600x261^', '-gravity', 'center', '-extent', '600x261', '-background', 'none', '-quality', '87', '-sampling-factor', '4:2:0', '-interlace', 'Plane', '/tmp/tmpFxAKn9[0]', 'jpg:-']
2020-05-21 05:34:33 thumbor:DEBUG [ShellRunner] Stdout: ����JFIF��C
�����
X"��������������?������?!�������?����
2020-05-21 05:34:33 thumbor:DEBUG [ShellRunner] Stderr:
2020-05-21 05:34:33 thumbor:DEBUG [ShellRunner] Return code: 0
2020-05-21 05:34:33 thumbor:DEBUG [ShellRunner] Duration: 96.446
2020-05-21 05:34:33 thumbor:DEBUG [IM] Processing EXIF
2020-05-21 05:34:33 thumbor:DEBUG [ExiftoolRunner] command: ['/usr/bin/exiftool', '-m', '-all=', '/tmp/tmpU5N8f4', '-o', '-']
2020-05-21 05:34:33 thumbor:DEBUG [ShellRunner] Command: ['/usr/bin/timeout', '--foreground', '59', '/usr/bin/exiftool', '-m', '-all=', '/tmp/tmpU5N8f4', '-o', '-']
2020-05-21 05:34:33 thumbor:DEBUG [ShellRunner] Stdout: ����C
�����
X"��������������?������?!�������?����
2020-05-21 05:34:33 thumbor:DEBUG [ShellRunner] Stderr:
2020-05-21 05:34:33 thumbor:DEBUG [ShellRunner] Return code: 0
2020-05-21 05:34:33 thumbor:DEBUG [ShellRunner] Duration: 135.11
2020-05-21 05:34:33 thumbor:DEBUG METRICS: timing: engine.processing_time.wikimedia_thumbor.engine.xcf:402
2020-05-21 05:34:33 thumbor:DEBUG METRICS: timing: engine.processing_utime.wikimedia_thumbor.engine.xcf:507
2020-05-21 05:34:33 tornado.access:INFO 200 GET /thumbor/unsafe/600x/https://upload.wikimedia.org/wikipedia/commons/archive/4/48/20191107181425%213d_text_Veniamin_Bibikov_fotolia-849x478-637x359.xcf (172.17.0.1) 754.81ms
2020-05-21 05:34:33 thumbor:DEBUG METRICS: timing: response.time:753
2020-05-21 05:34:33 thumbor:DEBUG METRICS: timing: response.time.200:753
2020-05-21 05:34:33 thumbor:DEBUG METRICS: inc: response.status.200:1
2020-05-21 05:34:33 thumbor:DEBUG METRICS: inc: response.format.jpg:1
2020-05-21 05:34:33 thumbor:DEBUG METRICS: timing: response.time.jpg:753
2020-05-21 05:34:33 thumbor:DEBUG METRICS: inc: response.bytes.jpg:886
2020-05-21 05:34:52 thumbor:DEBUG [HTTPS] cleanup_temp_file: /tmp/tmpUzHSd1It appears that xcftools does not support XCF version 11. https://github.com/j-jorge/xcftools/ does not look like a very active project, and the version of xcftools in Buster is the same as we have in Stretch now. For what it's worth, ImageMagick 7.0.10-11 can't render the file either.
$ convert 20191107181425!3d_text_Veniamin_Bibikov_fotolia-849x478-637x359.xcf -verbose -resize 600x600^ -gravity center -extent 600x600 -define tiff:exif-properties=no -quality 87 20191107181425!3d_text_Veniamin_Bibikov_fotolia-849x478-637x359.xcf.jpg convert: unexpected end-of-file `20191107181425!3d_text_Veniamin_Bibikov_fotolia-849x478-637x359.xcf' @ error/xcf.c/ReadOneLayer/1004. convert: not enough pixel data `20191107181425!3d_text_Veniamin_Bibikov_fotolia-849x478-637x359.xcf' @ error/xcf.c/ReadXCFImage/1486. convert: no images defined `20191107181425!3d_text_Veniamin_Bibikov_fotolia-849x478-637x359.xcf.jpg' @ error/convert.c/ConvertImageCommand/3282.