We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9876414 commit 4934364Copy full SHA for 4934364
src/ViewModels/Sources/PdfSourceViewModel.cs
@@ -94,6 +94,10 @@ public override async Task<bool> FetchCover(Codex codex)
94
await image.ReadAsync(codex.Sources.Path, ReadSettings);
95
image.Format = MagickFormat.Png;
96
97
+ //some pdf's are transparent, expecting a white page underneath
98
+ image.BackgroundColor = new MagickColor("#FFFFFF");
99
+ image.Alpha(AlphaOption.Remove);
100
+
101
await image.WriteAsync(codex.CoverArt);
102
CoverService.CreateThumbnail(codex, image);
103
}
0 commit comments