From f989c8092b28a44e321b59f511c6aa3cd45d6731 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Fri, 29 Sep 2017 14:28:07 +0200 Subject: [PATCH] More testing still --- Site/Automation/UploadFileHandler.ashx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Site/Automation/UploadFileHandler.ashx b/Site/Automation/UploadFileHandler.ashx index 59dca924..284d6790 100644 --- a/Site/Automation/UploadFileHandler.ashx +++ b/Site/Automation/UploadFileHandler.ashx @@ -428,10 +428,10 @@ namespace Swarmops.Frontend.Automation debugWriter.WriteLine("{0:D2}%, deleted page count file, starting conversion process", progress); process = Process.Start("bash", - "-c \"convert -density 300 -background white -flatten " + StorageRoot + relativeFileName + + "-c \"convert -density 600 -background white -flatten " + StorageRoot + relativeFileName + " " + StorageRoot + relativeFileName + - "-%04d.png\""); // Density 600 means 600dpi means production-grade conversion + "-%04d.png > /tmp/PdfConversionOutput-" + argsProper.Guid + "\""); // Density 600 means 600dpi means production-grade conversion process.PriorityClass = ProcessPriorityClass.Idle; // play real nice now int pageCounter = 0; // the first produced page will be zero @@ -462,7 +462,7 @@ namespace Swarmops.Frontend.Automation } } - currentPageBaseProgress = progressFileStep*fileIndex + currentFilePageStep*pageCounter; + currentPageBaseProgress = progressFileStep*fileIndex + currentFilePageStep*(pageCounter+1); progress = currentPageBaseProgress; quarterSecondWaiting = 0; if (progress > 99)