This might work

This commit is contained in:
Rick Falkvinge
2017-10-01 16:25:08 +02:00
parent 6d3065ab8f
commit 632143a183
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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\"");