XnView MP 1.8.5 can't open AVIF then size largest 9500x9500 px

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
VictorVG
Posts: 60
Joined: Mon Aug 24, 2009 10:54 pm

XnView MP 1.8.5 can't open AVIF then size largest 9500x9500 px

Post by VictorVG »

Observation:

XnView MP 1.8.5 can't opened very large AVIF image, example size 12384*18432 px , but ut success opened GIMP 2.10.38 - command File :: Open (Ctrl-O) not active (gray's) or display error messages "Can't open file."

My test files

https://www.upload.ee/files/17726011/orig.7z.html in the archive:

IMG_20250204_170119_657.avif
IMG_20250204_170119_657.jpg
IMG_20250204_170119_657 MI.txt

IMG_20250204_170119_657.xcf (759 MB, file format is GIMP 2.10.38, 12384*18432 px, sRGB, 8:8:8, 72 dpi)

https://www.upload.ee/files/17726069/im ... z.001.html
https://www.upload.ee/files/17726073/im ... z.002.html
https://www.upload.ee/files/17726075/im ... z.003.html
https://www.upload.ee/files/17726077/im ... z.004.html

GIMP exported AVIF - https://www.upload.ee/files/17726775/IM ... .avif.html use settings losless, 8 bitm, codec libaom.dll . GIMP 2.10.38 open success, XvInfo MP 1.8.5 can't open this file.

check integrity use libavif 1.1.1:

Code: Select all

Version: 1.1.1 (dav1d [dec]:1.4.3-0-ge9986de, aom [enc]:3.9.1)
libyuv : available (1887)
avifdec.exe -c dav1d IMG_20250204_170119_657-1.avif IMG_20250204_170119_657-1.png
Decoding with codec 'dav1d' (24 worker threads), please wait...
Image decoded: IMG_20250204_170119_657-1.avif
Image details:
* Resolution : 12384x18432
* Bit Depth : 8
* Format : YUV444
* Alpha : Not premultiplied
* Range : Full
* Color Primaries: 1
* Transfer Char. : 13
* Matrix Coeffs. : 6
* ICC Profile : Present (672 bytes)
* XMP Metadata : Absent
* Exif Metadata : Absent
* Transformations: None
* Progressive : Unavailable
Wrote PNG: IMG_20250204_170119_657-1.png

New test: image coded use libavif-1.1.1:

avifenc -c aom IMG_20250204_170119_657.png IMG_20250204_170119_657-2.avif
Successfully loaded: IMG_20250204_170119_657.png
AVIF to be written: (Lossy)
* Resolution : 12384x18432
* Bit Depth : 8
* Format : YUV444
* Alpha : Not premultiplied
* Range : Full
* Color Primaries: 2
* Transfer Char. : 2
* Matrix Coeffs. : 6
* ICC Profile : Present (672 bytes)
* XMP Metadata : Present (3424 bytes)
* Exif Metadata : Present (884 bytes)
* Transformations: None
* Progressive : Unavailable
Encoding with codec 'aom' speed [6], color quality [60 (Medium)], alpha quality [100 (Lossless)], tileRowsLog2 [0], tileColsLog2 [0], 24 worker thread(s), please wait...
Encoded successfully.
* Color total size: 4875671 bytes
* Alpha total size: 0 bytes
Wrote AVIF: IMG_20250204_170119_657-2.avif

https://www.upload.ee/files/17727048/IM ... .avif.html

GIMP 2.10.38 - open success, XnView MP 1.8.5 can't open.

P.S.

Observation: 128 Gb RAM is small for execute command :) :

Code: Select all

set -d 12

avifenc -c aom -j 24 -l -d 12 -y 444 IMG_20250204_170119_657.png IMG_20250204_170119_657-3.avif
Successfully loaded: IMG_20250204_170119_657.png
WARNING: [--lossless] Identity matrix is used but input depth (8) does not match output depth (12). Output might not be lossless.
AVIF to be written: (Lossy)
 * Resolution     : 12384x18432
 * Bit Depth      : 12
 * Format         : YUV444
 * Alpha          : Not premultiplied
 * Range          : Full
 * Color Primaries: 2
 * Transfer Char. : 2
 * Matrix Coeffs. : 0
 * ICC Profile    : Present (672 bytes)
 * XMP Metadata   : Present (3424 bytes)
 * Exif Metadata  : Present (884 bytes)
 * Transformations: None
 * Progressive    : Unavailable
Encoding with codec 'aom' speed [6], color quality [100 (Lossless)], alpha quality [100 (Lossless)],
tileRowsLog2 [0], tileColsLog2 [0], 24 worker thread(s), please wait...
ERROR: Failed to encode image: Encoding of color planes failed
Diagnostics:
 * aom_codec_encode() failed: Memory allocation error: Failed to allocate lag buffers

set -d 8:

avifenc -c aom -j 24 -l -d 8 -y 444 IMG_20250204_170119_657.png IMG_20250204_170119_657-3.avif
Successfully loaded: IMG_20250204_170119_657.png
AVIF to be written: (Lossless)
 * Resolution     : 12384x18432
 * Bit Depth      : 8
 * Format         : YUV444
 * Alpha          : Not premultiplied
 * Range          : Full
 * Color Primaries: 2
 * Transfer Char. : 2
 * Matrix Coeffs. : 0
 * ICC Profile    : Present (672 bytes)
 * XMP Metadata   : Present (3424 bytes)
 * Exif Metadata  : Present (884 bytes)
 * Transformations: None
 * Progressive    : Unavailable
Encoding with codec 'aom' speed [6], color quality [100 (Lossless)], alpha quality [100 (Lossless)],
tileRowsLog2 [0], tileColsLog2 [0], 24 worker thread(s), please wait...
Encoded successfully.
 * Color total size: 203833691 bytes
 * Alpha total size: 0 bytes
Wrote AVIF: IMG_20250204_170119_657-3.avif
- output file writes, size 194 Mb :)
Xeon E5 2697v2/C602/128 GB PC3-14900L Quad Channel/GTX 1660 Ti/9 Tb HDD
Xeon E5-2697v2/C602J/128 Gb PC3-14900L Quad Channel/GTX 1660 Ti/7Tb HDD
Kadet
Posts: 208
Joined: Thu Oct 20, 2022 7:23 pm

Re: XnView MP 1.8.5 can't open AVIF then size largest 9500x9500 px

Post by Kadet »

Why avif? Jxl lossless is much better :)

---------------------------------------

12384*18432 px is out of AVIF standard to make one piece without grid. Gimp maybe not use (or incorrect use) grid to make bigger image. Or XnView library is too old and don't understand grid technic.
AVIF Advanced Profile
Uses AV1 High Profile
AV1 level is 6.0 or lower
Coded image items compliant to the AVIF Advanced profile may not have a total number of pixels greater than 35,651,584, a width greater than 16,384, or a height greater than 8,704. It is still possible to use the Advanced profile to create larger images using grid derivation.
If You want this to punt on website, use jpg with 100% quality. Possible differences in relation to the original to see only by the computer.
VictorVG
Posts: 60
Joined: Mon Aug 24, 2009 10:54 pm

Re: XnView MP 1.8.5 can't open AVIF then size largest 9500x9500 px

Post by VictorVG »

Good, did not know. At the same time (the guys on forum.ru-board.com gave a link) can be placed in the documentation and restriction on the size of the image in the WebP format - extract from FAQ:
Google for Developers: Frequently Asked Questions: WebP
https://developers.google.com/speed/webp/faq

What is the maximum size of the WebP image?

WebP is compatible with a bit flow with VP8 and uses 14 bit for width and
height. The maximum WebP image size in pixels is 16383 x 16383.
Xeon E5 2697v2/C602/128 GB PC3-14900L Quad Channel/GTX 1660 Ti/9 Tb HDD
Xeon E5-2697v2/C602J/128 Gb PC3-14900L Quad Channel/GTX 1660 Ti/7Tb HDD
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView MP 1.8.5 can't open AVIF then size largest 9500x9500 px

Post by xnview »

right, libheif has some limits and the function to disable it doesnt work correctly...
Pierre.
VictorVG
Posts: 60
Joined: Mon Aug 24, 2009 10:54 pm

Re: XnView MP 1.8.5 can't open AVIF then size largest 9500x9500 px

Post by VictorVG »

Big thanks! Ok!
Xeon E5 2697v2/C602/128 GB PC3-14900L Quad Channel/GTX 1660 Ti/9 Tb HDD
Xeon E5-2697v2/C602J/128 Gb PC3-14900L Quad Channel/GTX 1660 Ti/7Tb HDD
Post Reply