feat(upload): remove image format conversion options #6

- Remove image format conversion and quality settings from the upload dialog
- Update backend to use default format and quality settings
- Add system configuration options for default image format and quality
This commit is contained in:
ShiYu
2025-05-24 11:41:06 +08:00
parent bec2c26b38
commit c2a9d07772
7 changed files with 116 additions and 114 deletions

View File

@@ -16,15 +16,4 @@ public record UploadPictureRequest
public int? AlbumId { get; set; }
public StorageType? StorageType { get; set; }
/// <summary>
/// 目标图片格式,默认为保持原格式
/// </summary>
public ImageFormat ConvertToFormat { get; set; } = ImageFormat.Original;
/// <summary>
/// 图片质量仅对JPEG和WebP有效1-100
/// </summary>
[Range(1, 100, ErrorMessage = "图片质量必须在1-100之间")]
public int Quality { get; set; } = 95;
}