| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 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. | |||
| 2025-09-23 | Added in pragma warning disable for CA1815 warning. | Thomas Jones | |
| Co-authored-by: Derpipose <90276123+Derpipose@users.noreply.github.com> | |||
| 2025-01-26 | Use MediaTypeNames where possible (#13440) | Bond-009 | |
| 2024-02-28 | standardize docs | Cody Robibero | |
| 2024-02-28 | Add support for converting from svg to other image types | Cody Robibero | |
| 2023-10-08 | Jellyfin.Drawing minor improvements | Bond_009 | |
| Reduce duplicate/dead code | |||
| 2022-12-05 | Replace == null with is null | Bond_009 | |
| 2022-11-14 | fixed namescope for ImageResolution enum; | Negulici-R. Barnabas | |
| 2022-11-14 | added associated value to ImageResolution enum; | Negulici-R. Barnabas | |
| 2022-11-13 | changed ChapterImageResolution in model to enum type; | Negulici-R. Barnabas | |
| added 144p to the ImageResolution enum; updated chapters limit comment inside FFProbeVideoInfo.cs; | |||
| 2022-07-18 | Chapter Images: | Negulici-R. Barnabas | |
| - chapter image extraction intervals, limit count and resolutions can be set by the user from the server general settings; | |||
| 2022-01-04 | Remove incorrect mime type image/jpg | Bond_009 | |
| 2021-04-11 | Apply suggestions from code review | Odd Stråbø | |
| Co-authored-by: Cody Robibero <cody@robibe.ro> | |||
| 2021-04-11 | (mostly)Fix ResizeFill | Odd Stråbø | |
| 2021-04-11 | Add Resize to fill box alternative to image endpoints | Odd Stråbø | |
| 2020-04-05 | Enable nullabe reference types for MediaBrowser.Model | Bond_009 | |
| 2020-02-23 | Fix some warnings | Bond_009 | |
| * Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591 | |||
| 2020-02-12 | Merge branch 'master' into images | Bond-009 | |
| 2020-02-04 | Fix warnings MediaBrowser.Model | Bond_009 | |
| 2020-01-21 | Simplify image processing by removing image enhancers | Bond_009 | |
| 2019-02-05 | Complete rename ImageSize -> ImageDimensions | Bond-009 | |
| 2019-01-26 | Change image dimentions from double to int | Bond_009 | |
| Rename ImageSize -> ImageDimensions | |||
| 2019-01-17 | Reformat JustAMan review pt2 changes | Erwin de Haan | |
| Refs #575 | |||
| 2019-01-13 | ReSharper format: conform inline 'out' parameters. | Erwin de Haan | |
| 2019-01-13 | ReSharper Reformat: Properties to expression bodied form. | Erwin de Haan | |
| 2019-01-13 | Find+Sed BOM removal *.cs: MediaBrowser.LocalMetadata-MediaBrowser.Model | Erwin de Haan | |
| 2019-01-13 | EditorConfig reformat: MediaBrowser.Model | 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-05-10 | dummy up audio bitrates when needed | Luke Pulverenti | |
| 2016-10-23 | prep for portable common | Luke Pulverenti | |
| 2014-12-08 | support dvd without video_ts folder | Luke Pulverenti | |
| 2014-11-29 | rework configurations | Luke Pulverenti | |
| 2014-11-08 | fixes #941 - Rework password recovery and remove IsLocal checks | Luke Pulverenti | |
| 2014-08-28 | fixes #903 - Display image info on web client detail page | Luke Pulverenti | |
| 2014-08-27 | Fixes #901 - Improve captured photo metadata | Luke Pulverenti | |
| 2014-06-01 | isolate .net specific methods in model project | Luke Pulverenti | |
| 2014-05-08 | removed implicit typing from the model project | Luke Pulverenti | |
| 2014-05-08 | fix portable and 3.5 project references | Luke Pulverenti | |
| 2014-05-08 | Removed guids from the model project | Luke Pulverenti | |
| 2014-03-28 | correct dlna param positions | Luke Pulverenti | |
| 2013-11-07 | optimize image processor when gdi can be skipped | Luke Pulverenti | |
| 2013-11-06 | Serve original image file when possible | Luke Pulverenti | |
| 2013-10-02 | added new image params & GameSystem constants | Luke Pulverenti | |
| 2013-09-21 | add singular AddChildInternal | Luke Pulverenti | |
| 2013-09-19 | reduce system info refreshing from dashboard | Luke Pulverenti | |
| 2013-09-19 | moved new image options to the model | Luke Pulverenti | |
| 2013-02-20 | Pushing missing changes | LukePulverenti | |
