Jellyfin Forum
Drawing.Skia.SkiaEncoder: Unable to determine image dimensions for ... .tiff: Invalid - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Drawing.Skia.SkiaEncoder: Unable to determine image dimensions for ... .tiff: Invalid (/t-drawing-skia-skiaencoder-unable-to-determine-image-dimensions-for-tiff-invalid)



Drawing.Skia.SkiaEncoder: Unable to determine image dimensions for ... .tiff: Invalid - prahal - 2024-05-22

Could tiff images be supported by jellyfin?


Jellyfin 10.9.2
SoC/CPU RK3399
no video hardware acceleration
Docker, host network


Armbian
name -a
Linux helios64 6.8.9-edge-rockchip64 #4 SMP PREEMPT Thu May  2 14:35:35 UTC 2024 aarch64 GNU/Linux


log:
[05:52:51] [ERR] [50] Jellyfin.Drawing.Skia.SkiaEncoder: Unable to determine image dimensions for /picture/alban/A trier/AB_scans/aut-a0008.tiff: InvalidInput
phn@helios64:~$ file /srv/dev-disk-by-label-store/picture/alban/A\ trier/AB_scans/aut-a0008.tiff
/srv/dev-disk-by-label-store/picture/alban/A trier/AB_scans/aut-a0008.tiff: TIFF image data, little-endian, direntries=19, height=4120, bps=3494, compression=JPEG, PhotometricInterpretation=YCbCr, orientation=upper-left, width=5860
ffprobe /srv/dev-disk-by-label-store/picture/alban/A\ trier/AB_scans/aut-a0008.tiff
ffprobe version 5.1.4-0+deb12u1 Copyright © 2007-2023 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      57. 28.100 / 57. 28.100
  libavcodec    59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter    8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample  4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, tiff_pipe, from '/srv/dev-disk-by-label-store/picture/alban/A trier/AB_scans/aut-a0008.tiff':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: tiff, yuv420p, 5860x4120 [SAR 1:1 DAR 293:206], 25 fps, 25 tbr, 25 tbn


tiff sample in zip attachment (the forum does not allow uploading tiff images).
Tiff is not widespread but is common for archival purposes.


RE: Drawing.Skia.SkiaEncoder: Unable to determine image dimensions for ... .tiff: Invalid - prahal - 2024-06-10

Turns out this might be partially a bug report and partially a feature request.
This is because Kodi can render TIFF images but not Chrome and Firefox.

So the bug is that TIFF images are not parsed properly even though supported by ffmpeg.

The feature request is for jellyfin-web to convert TIFF to JPEG or else to display them in a browser.