diff --git a/FrontSocket/FrontendServices.cs b/FrontSocket/FrontendServices.cs index 8e46af68..f16756a4 100644 --- a/FrontSocket/FrontendServices.cs +++ b/FrontSocket/FrontendServices.cs @@ -201,8 +201,8 @@ namespace Swarmops.Frontend.Socket // Hires 600dpi conversion is also made, but from backend after this conversion process = Process.Start("bash", - "-c \"convert -density 75 -background white -flatten " + Document.StorageRoot + relativeFileName + - " " + Document.StorageRoot + relativeFileName + "-%04d.png\""); + "-c \"convert -density 75 -background white -alpha remove " + Document.StorageRoot + relativeFileName + + " " + Document.StorageRoot + relativeFileName + "-%04d.png\""); int pageCounter = 0; // the first produced page will be zero int currentPageBaseProgress = progressFileStep * fileIndex + currentFilePageStep * pageCounter; diff --git a/Utility/BotCode/PdfProcessor.cs b/Utility/BotCode/PdfProcessor.cs index 81316736..251f9cf3 100644 --- a/Utility/BotCode/PdfProcessor.cs +++ b/Utility/BotCode/PdfProcessor.cs @@ -145,7 +145,7 @@ namespace Swarmops.Utility.BotCode Console.Write("Regenerating document..."); Process process = Process.Start("bash", - "-c \"convert -density " + density.ToString(CultureInfo.InvariantCulture) + " -background white -flatten " + StorageRoot + firstPart + " " + + "-c \"convert -density " + density.ToString(CultureInfo.InvariantCulture) + " -background white -alpha remove " + StorageRoot + firstPart + " " + StorageRoot + firstPart + "-%04d" + suffix + ".png\"");