mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #5556] [MERGED] Add «resize to fill box» alternative for image endpoints #10559
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/5556
Author: @oddstr13
Created: 3/17/2021
Status: ✅ Merged
Merged: 4/11/2021
Merged by: @Bond-009
Base:
master← Head:image-fill-resize📝 Commits (6)
383aa4eAdd Resize to fill box alternative to image endpoints13d0837(mostly)Fix ResizeFille57c165Remove GetSizeEstimate & GetEstimatedAspectRatioafff226Apply suggestions from code reviewe0edbc5Apply suggestions from code reviewd0857cfFix build, increase StringBuilder starting size📊 Changes
5 files changed (+253 additions, -81 deletions)
View changed files
📝
Emby.Drawing/ImageProcessor.cs(+96 -17)📝
Jellyfin.Api/Controllers/ImageController.cs(+96 -4)📝
MediaBrowser.Controller/Drawing/ImageHelper.cs(+6 -60)📝
MediaBrowser.Controller/Drawing/ImageProcessingOptions.cs(+9 -0)📝
MediaBrowser.Model/Drawing/DrawingUtils.cs(+46 -0)📄 Description
Changes
Adds fillHeight and fillWidth optional parameters to all(?) image endpoints.
Issues
Server portion for resolving jellyfin/jellyfin-web#2191
Web PR: jellyfin/jellyfin-web#2514
apiClient PR: jellyfin/jellyfin-apiclient-javascript#167
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.