| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 40 hours | Update MediaBrowser.Controller/Drawing/ImageHelper.cs | Cody Robibero | |
| Co-authored-by: Tim Eisele <Tim_Eisele@web.de> | |||
| 5 days | Stop image endpoints from upscaling beyond the source resolution | vavallee | |
| 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/<id>/Images/Primary?width=23100&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. | |||
| 2021-06-11 | Remove useless nullable directives | Bond_009 | |
| 2021-05-07 | Enable nullable reference types for MediaBrowser.Controller | Bond_009 | |
| 2021-04-17 | Remove unused using directives | BaronGreenback | |
| 2021-04-11 | Remove GetSizeEstimate & GetEstimatedAspectRatio | Odd Stråbø | |
| from MediaBrowser.Controller.Drawing.ImageHelper Rework GetCacheFilePath to take requested with and height parameters in stead of using estimated output size | |||
| 2021-04-11 | Add Resize to fill box alternative to image endpoints | Odd Stråbø | |
| 2020-08-22 | Enable TreatWarningsAsErrors for MediaBrowser.Controller in Release | Bond_009 | |
| 2020-06-16 | fix SA1513/SA1516 | telans | |
| 2020-05-20 | Fix profile images. | Patrick Barron | |
| 2020-01-21 | Simplify image processing by removing image enhancers | Bond_009 | |
| 2019-01-28 | Fix default aspect ratio | Claus Vium | |
| 2019-01-26 | Change image dimentions from double to int | Bond_009 | |
| Rename ImageSize -> ImageDimensions | |||
| 2019-01-13 | Find+Sed BOM removal *.cs: Jellyfin.Server-MediaBrowser.Controller | Erwin de Haan | |
| 2019-01-13 | Visual Studio Reformat: MediaBrowser.Controller | Erwin de Haan | |
| 2018-12-27 | Add GPL modules | Andrew Rabert | |
| 2018-09-12 | Update to 3.5.2 and .net core 2.1 | stefan | |
| 2017-09-22 | add fixes for dng images | Luke Pulverenti | |
| 2017-08-07 | consolidate interfaces | Luke Pulverenti | |
| 2017-05-17 | update image encoding | Luke Pulverenti | |
| 2017-05-14 | update image processing | Luke Pulverenti | |
