mirror of
https://github.com/upscayl/upscayl.git
synced 2026-02-19 11:55:37 -05:00
feat: copy metadata fix: better copy-metadata toggle raw: add new locales for metadata fix: log metadata on double upscayl feat: suggest jpg when copying metadata raw: add metadata suggestion locales refactor: add bot suggestions feat: JPEG format validation + ARIA accessibility
54 lines
1.1 KiB
TypeScript
54 lines
1.1 KiB
TypeScript
import { ImageFormat } from "@electron/types/types";
|
|
|
|
export type ImageUpscaylPayload = {
|
|
imagePath: string;
|
|
outputPath: string;
|
|
scale: string;
|
|
model: string;
|
|
gpuId: string;
|
|
saveImageAs: ImageFormat;
|
|
overwrite: boolean;
|
|
compression: string;
|
|
noImageProcessing: boolean;
|
|
customWidth: string;
|
|
useCustomWidth: boolean;
|
|
tileSize: number;
|
|
ttaMode: boolean;
|
|
copyMetadata: boolean;
|
|
};
|
|
|
|
export type DoubleUpscaylPayload = {
|
|
model: string;
|
|
/**
|
|
* The path to the image to upscale.
|
|
*/
|
|
imagePath: string;
|
|
outputPath: string;
|
|
scale: string;
|
|
gpuId: string;
|
|
saveImageAs: ImageFormat;
|
|
compression: string;
|
|
noImageProcessing: boolean;
|
|
customWidth: string;
|
|
useCustomWidth: boolean;
|
|
tileSize: number;
|
|
ttaMode: boolean;
|
|
copyMetadata: boolean;
|
|
};
|
|
|
|
export type BatchUpscaylPayload = {
|
|
batchFolderPath: string;
|
|
outputPath: string;
|
|
model: string;
|
|
gpuId: string;
|
|
saveImageAs: ImageFormat;
|
|
scale: string;
|
|
compression: string;
|
|
noImageProcessing: boolean;
|
|
customWidth: string;
|
|
useCustomWidth: boolean;
|
|
tileSize: number;
|
|
ttaMode: boolean;
|
|
copyMetadata: boolean;
|
|
};
|