mirror of
https://github.com/upscayl/upscayl.git
synced 2026-04-03 03:00:13 -04:00
51 lines
1.0 KiB
TypeScript
51 lines
1.0 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;
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
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;
|
|
};
|