mirror of
https://github.com/upscayl/upscayl.git
synced 2025-01-31 04:03:51 +01:00
Fix PNG to JPG convert issue
This commit is contained in:
parent
810d25b35c
commit
df9ff7de27
@ -161,6 +161,7 @@ const doubleUpscayl = async (event, payload: DoubleUpscaylPayload) => {
|
||||
outFile,
|
||||
desiredScale.toString(),
|
||||
saveImageAs,
|
||||
isAlpha,
|
||||
);
|
||||
mainWindow.setProgressBar(-1);
|
||||
mainWindow.webContents.send(
|
||||
|
@ -176,6 +176,7 @@ const imageUpscayl = async (event, payload: ImageUpscaylPayload) => {
|
||||
outFile,
|
||||
desiredScale,
|
||||
saveImageAs,
|
||||
isAlpha,
|
||||
);
|
||||
if (isAlpha && saveImageAs === "jpg") {
|
||||
fs.unlinkSync(outFile + ".png");
|
||||
|
@ -10,7 +10,7 @@ export const getSingleImageArguments = (
|
||||
model: string,
|
||||
scale: any,
|
||||
gpuId: string,
|
||||
saveImageAs: ImageFormat
|
||||
saveImageAs: ImageFormat,
|
||||
) => {
|
||||
return [
|
||||
"-i",
|
||||
@ -38,7 +38,7 @@ export const getSingleImageSharpenArguments = (
|
||||
model: string,
|
||||
scale: any,
|
||||
gpuId: string,
|
||||
saveImageAs: ImageFormat
|
||||
saveImageAs: ImageFormat,
|
||||
) => {
|
||||
return [
|
||||
"-i",
|
||||
@ -65,7 +65,7 @@ export const getDoubleUpscaleArguments = (
|
||||
model: string,
|
||||
gpuId: string,
|
||||
saveImageAs: ImageFormat,
|
||||
scale: string
|
||||
scale: string,
|
||||
) => {
|
||||
return [
|
||||
"-i",
|
||||
@ -92,7 +92,7 @@ export const getDoubleUpscaleSecondPassArguments = (
|
||||
model: string,
|
||||
gpuId: string,
|
||||
saveImageAs: ImageFormat,
|
||||
scale: string
|
||||
scale: string,
|
||||
) => {
|
||||
return [
|
||||
"-i",
|
||||
@ -107,7 +107,7 @@ export const getDoubleUpscaleSecondPassArguments = (
|
||||
model,
|
||||
gpuId ? "-g" : "",
|
||||
gpuId ? gpuId : "",
|
||||
"-f",
|
||||
isAlpha ? "" : "-f",
|
||||
isAlpha ? "" : saveImageAs,
|
||||
];
|
||||
};
|
||||
@ -119,7 +119,7 @@ export const getBatchArguments = (
|
||||
model: string,
|
||||
gpuId: string,
|
||||
saveImageAs: ImageFormat,
|
||||
scale: string
|
||||
scale: string,
|
||||
) => {
|
||||
return [
|
||||
"-i",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "upscayl",
|
||||
"private": true,
|
||||
"version": "2.9.9",
|
||||
"version": "2.10.0",
|
||||
"productName": "Upscayl",
|
||||
"author": {
|
||||
"name": "Nayam Amarshe",
|
||||
@ -55,7 +55,7 @@
|
||||
"dist:mac": "tsc && npm run build && electron-builder --mac --universal",
|
||||
"dist:mac-arm64": "tsc && npm run build && electron-builder --mac --arm64",
|
||||
"dist:mas": "npm run enable-store && tsc && npm run build && electron-builder --mac mas --universal -c mas.json && npm run disable-store",
|
||||
"dist:mas-dev": "tsc && npm run build && electron-builder --mac mas-dev --universal -c mas-dev.json",
|
||||
"dist:mas-dev": "npm run enable-store && tsc && npm run build && electron-builder --mac mas-dev --universal -c mas-dev.json && npm run disable-store",
|
||||
"dist:win": "tsc && npm run build && electron-builder --win",
|
||||
"dist:linux": "tsc && npm run build && electron-builder --linux",
|
||||
"publish-app": "tsc && npm run build && electron-builder -wlm --publish always",
|
||||
|
Loading…
x
Reference in New Issue
Block a user