mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	fix(server): 1:1ではない画像のリアクション通知バッジが左や上に寄ってしまっていたのを中央に来るように修正
This commit is contained in:
		
							parent
							
								
									e1f9ab77f8
								
							
						
					
					
						commit
						dc8a3f210b
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -38,6 +38,7 @@
 | 
			
		|||
- Fix: エクスポートデータの拡張子がunknownになる問題を修正
 | 
			
		||||
- Fix: Content-Dispositionのパースでエラーが発生した場合にダウンロードが完了しない問題を修正
 | 
			
		||||
- Fix: API: i/update avatarIdとbannerIdにnullを渡した時、画像がリセットされない問題を修正
 | 
			
		||||
- Fix: 1:1ではない画像のリアクション通知バッジが左や上に寄ってしまっていたのを中央に来るように修正
 | 
			
		||||
 | 
			
		||||
## 13.11.3
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -297,7 +297,8 @@ export class FileServerService {
 | 
			
		|||
			} else if ('badge' in request.query) {
 | 
			
		||||
				const mask = (await sharpBmp(file.path, file.mime))
 | 
			
		||||
					.resize(96, 96, {
 | 
			
		||||
						fit: 'inside',
 | 
			
		||||
						fit: 'contain',
 | 
			
		||||
						position: 'centre',
 | 
			
		||||
						withoutEnlargement: false,
 | 
			
		||||
					})
 | 
			
		||||
					.greyscale()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue