This might work
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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\"");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user