<feed xmlns='http://www.w3.org/2005/Atom'>
<title>jellyfin/MediaBrowser.Controller/Drawing, branch v12.0-rc5</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.b0n.dev/jellyfin/atom?h=v12.0-rc5</id>
<link rel='self' href='https://git.b0n.dev/jellyfin/atom?h=v12.0-rc5'/>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/'/>
<updated>2026-08-10T20:10:08Z</updated>
<entry>
<title>Update MediaBrowser.Controller/Drawing/ImageHelper.cs</title>
<updated>2026-08-10T20:10:08Z</updated>
<author>
<name>Cody Robibero</name>
<email>cody@robibe.ro</email>
</author>
<published>2026-08-10T20:10:08Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=82ecfde2f7bdd9d91ec403749c124ef96f64cea3'/>
<id>urn:sha1:82ecfde2f7bdd9d91ec403749c124ef96f64cea3</id>
<content type='text'>
Co-authored-by: Tim Eisele &lt;Tim_Eisele@web.de&gt;</content>
</entry>
<entry>
<title>Stop image endpoints from upscaling beyond the source resolution</title>
<updated>2026-08-07T15:33:37Z</updated>
<author>
<name>vavallee</name>
<email>vavallee@protonmail.com</email>
</author>
<published>2026-08-07T15:33:37Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=e120b7f2dd986d7f07f6814b6d987bafd46baab8'/>
<id>urn:sha1:e120b7f2dd986d7f07f6814b6d987bafd46baab8</id>
<content type='text'>
ImageHelper.GetNewImageSize passed the caller-supplied width/height straight
through to SkiaEncoder.EncodeImage, which allocates an SKImageInfo of exactly
that size. Nothing bounded those values against the source image, so a request
like Items/&lt;id&gt;/Images/Primary?width=23100&amp;height=23100 made the server allocate
and resample a 23100x23100 surface from, say, a 600x336 poster: the reporter
measured 100% of a core for 10-15 minutes and 6-12 GB resident per request.
The item images endpoints do not require authentication, so any caller who knows
an item id can trigger this, and varying the size by one pixel misses the cache
every time.

Add DrawingUtils.ScaleDownToFit, which scales a size down uniformly until it
fits inside a bounding box and returns it unchanged if it already does, and
apply it in GetNewImageSize against the original image dimensions. Requests
that ask for more pixels than the source now get the source resolution back,
scaled to the requested aspect ratio. Downscaling paths are untouched, and
DrawingUtils.Resize keeps its existing behaviour for the transcoding callers in
EncodingJobInfo and StreamInfo, which legitimately size video output.
ResizeFill already refused to upscale; this makes width/height consistent
with fillWidth/fillHeight.

Fixes #17056.
</content>
</entry>
<entry>
<title>Fixed namespaces</title>
<updated>2025-03-25T15:45:00Z</updated>
<author>
<name>JPVenson</name>
<email>github@jpb.email</email>
</author>
<published>2025-03-25T15:45:00Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=42bdb22bfb690a6af37d70f12844881d884927b1'/>
<id>urn:sha1:42bdb22bfb690a6af37d70f12844881d884927b1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Naming refactoring and WIP porting of new interface repositories</title>
<updated>2024-10-09T09:53:39Z</updated>
<author>
<name>JPVenson</name>
<email>6794763+JPVenson@users.noreply.github.com</email>
</author>
<published>2024-10-09T09:53:39Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=be48cdd9e90ed147c5526ef3fed0624bcbad7741'/>
<id>urn:sha1:be48cdd9e90ed147c5526ef3fed0624bcbad7741</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove some unused drawing code</title>
<updated>2024-02-06T15:11:47Z</updated>
<author>
<name>Patrick Barron</name>
<email>barronpm@gmail.com</email>
</author>
<published>2024-02-06T15:09:51Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=4dd2ed8fb7bbd825995e7ec4aead11d6d9728a19'/>
<id>urn:sha1:4dd2ed8fb7bbd825995e7ec4aead11d6d9728a19</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'master' into trickplay</title>
<updated>2023-10-19T02:27:05Z</updated>
<author>
<name>Nick</name>
<email>20588554+nicknsy@users.noreply.github.com</email>
</author>
<published>2023-10-19T02:27:05Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=cd662506a1f63f9b20e7f5caa9b671eb3d71ea5a'/>
<id>urn:sha1:cd662506a1f63f9b20e7f5caa9b671eb3d71ea5a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Jellyfin.Drawing minor improvements</title>
<updated>2023-10-08T15:10:04Z</updated>
<author>
<name>Bond_009</name>
<email>bond.009@outlook.com</email>
</author>
<published>2023-10-05T21:57:11Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=c707baed8366cd44ea80713cf93e5f92971815bf'/>
<id>urn:sha1:c707baed8366cd44ea80713cf93e5f92971815bf</id>
<content type='text'>
Reduce duplicate/dead code
</content>
</entry>
<entry>
<title>Merge pull request #10056 from Bond-009/nullable2</title>
<updated>2023-09-12T09:09:20Z</updated>
<author>
<name>Bond-009</name>
<email>bond.009@outlook.com</email>
</author>
<published>2023-09-12T09:09:20Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=3087881d93591ccf17af35021e0d286756489221'/>
<id>urn:sha1:3087881d93591ccf17af35021e0d286756489221</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Enable nullable for more files and add tests</title>
<updated>2023-08-22T16:11:34Z</updated>
<author>
<name>Bond_009</name>
<email>bond.009@outlook.com</email>
</author>
<published>2023-08-22T16:09:31Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=d92e9ae85e41fef981729f544bfd6df2c052a712'/>
<id>urn:sha1:d92e9ae85e41fef981729f544bfd6df2c052a712</id>
<content type='text'>
Adds basic tests for FFProbeVideoInfo.CreateDummyChapters
Fixed error message CreateDummyChapters instead of reporting the total minutes it only reported the minute component
</content>
</entry>
<entry>
<title>Enable nullable for more files</title>
<updated>2023-07-29T19:35:38Z</updated>
<author>
<name>Bond_009</name>
<email>bond.009@outlook.com</email>
</author>
<published>2023-07-29T19:35:38Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=5677566a41638f4c62f107f3540363457c099019'/>
<id>urn:sha1:5677566a41638f4c62f107f3540363457c099019</id>
<content type='text'>
</content>
</entry>
</feed>
