mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									afff226514
								
							
						
					
					
						commit
						e0edbc5754
					
				@ -274,7 +274,7 @@ namespace Emby.Drawing
 | 
			
		||||
            string backgroundColor,
 | 
			
		||||
            string foregroundLayer)
 | 
			
		||||
        {
 | 
			
		||||
            System.Text.StringBuilder filename = new System.Text.StringBuilder(128);
 | 
			
		||||
            var filename = new StringBuilder(128);
 | 
			
		||||
            filename.Append(originalPath);
 | 
			
		||||
 | 
			
		||||
            filename.Append(",quality=");
 | 
			
		||||
 | 
			
		||||
@ -97,12 +97,7 @@ namespace MediaBrowser.Controller.Drawing
 | 
			
		||||
                return false;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (FillWidth.HasValue && sizeValue.Width > FillWidth.Value)
 | 
			
		||||
            {
 | 
			
		||||
                return false;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (FillHeight.HasValue && sizeValue.Height > FillHeight.Value)
 | 
			
		||||
            if (sizeValue.Width > FillWidth || sizeValue.Height > FillHeight)
 | 
			
		||||
            {
 | 
			
		||||
                return false;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user