1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-19 02:45:54 +01:00
upscayl/renderer/components/settings-tab/ProcessImageToggle.tsx

31 lines
876 B
TypeScript
Raw Normal View History

2023-09-18 20:30:43 +02:00
type ProcessImageToggleProps = {
noImageProcessing: boolean;
setNoImageProcessing: (arg: any) => void;
};
const ProcessImageToggle = ({
noImageProcessing,
setNoImageProcessing,
}: ProcessImageToggleProps) => {
return (
<div className="flex flex-col gap-2">
<p className="text-sm font-medium">DON'T POST-PROCESS IMAGE</p>
<p className="text-xs text-base-content/80">
If enabled, the image will not be converted or scaled or post-processed.
2023-11-22 16:54:02 +01:00
This will output the original AI upscaling result as-is. Use this if
you're having issues with file-size or color banding.
2023-09-18 20:30:43 +02:00
</p>
<input
type="checkbox"
className="toggle"
checked={noImageProcessing}
onClick={() => {
setNoImageProcessing(!noImageProcessing);
}}
/>
</div>
);
};
export default ProcessImageToggle;