• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Guides, Walkthroughs & Tutorials imgproxy for jellyfin

     
    • 0 Vote(s) - 0 Average

    imgproxy for jellyfin

    Use imgproxy to generte images based on requests bypassing jellyfin
    dilyo
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2023 Nov
    Reputation: 1
    #1
    2026-05-28, 08:09 PM (This post was last modified: 2026-06-07, 07:36 PM by dilyo. Edited 3 times in total.)
    Why?
    - Wanted to test it, and use some imgproxy options
    - Jellyfin felt sometimes slow with larger images
    - imgproxy uses libvips know to be very fast/efficient

    Downside
    - Complexity

    Upside
    - fast
        - Uncached/cold 600 ms vs 80 ms (30 images from 500 2000ms vs )
        - Cached 10 ms vs 0-1ms (30 images 10-15ms vs 0-1ms)
    - Max image size
    - easy nginx cache
     
    Setup
    - jellyfin
    - nginx with -f to check file path (tried auth_digiest, but never got retrun header in nginx, feels like a bug in nginx)
    - small proxy with readonly on jellyfin.db to resolve urls
    - imgproxy container
    - Storage /var/lib/jellyfin/metadata

    Modes code to GitHub, because forum code formation is awful
    https://github.com/jfhacks/jellyfin-imgproxy

    Just wanted t share it, because I looked for something like this and found nothing.
    TheDMV
    Offline

    Junior Member

    Posts: 15
    Threads: 3
    Joined: 2023 Nov
    Reputation: 1
    #2
    2026-06-06, 05:33 PM
    I've been complaining about the large image sizes for years now, to no avail. The default jpg compression is set to 96, which makes huge images. Going to 45-75 would make a big difference - but this works too.
    dilyo
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2023 Nov
    Reputation: 1
    #3
    2026-06-07, 07:39 PM
    Yeah, noticed images are so heavy on slower clients and high-res images are slow with Jellyfin resize. Also, it enforces some limits and formats + quality.

    Moved it to GitHub, because code blocks are pain.
    https://github.com/jfhacks/jellyfin-imgproxy

    Used it only for myself so far, so docu is mixed at best. But it should work.
    User 22046
    Offline

    Unregistered
    Posts: 22
    Threads: 4
    Joined: 2025 Nov
    #4
    2026-06-20, 01:57 AM (This post was last modified: 2026-06-20, 05:31 PM by User 22046. Edited 5 times in total.)
    Ahh cache replacement, neat! Smiling-face
    dilyo
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2023 Nov
    Reputation: 1
    #5
    2026-06-20, 12:44 PM
    I tried a lot of things at thought at the end, I should maybe post it. Last changes are just simplifying some things.

    About space
    Jellyfin will always generate a new image if modifiers are set (size, format, or quality), so you would need to configure a passthough to save on storage.
    A lot of images are larger than 4k or above 8k or even 10k and sending optimal image to client speeds it up a lot or raster SVG, so client needs no SVG support.
    Also, I can use JXL, AVIF besides WebP.

    To be clear, imgproxy won't touch original images. It is a replacement for /var/cache/jellyfin/images/resized-image with more features and control (in case some requests slip though → report it). As described, it can unify quality over all client, because those are depended on the dev. Some go with 100%, others with 80% and some artifacts lover set 35% or so.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode