mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-30 12:39:52 +08:00
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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user