ghostscriptsharp icon indicating copy to clipboard operation
ghostscriptsharp copied to clipboard

File too big

Open fujoos opened this issue 7 years ago • 1 comments

First, good job on this wonderful library. I tried extensively with various pdf's and found out that if i use this settings below (jpg or png) to generate a thumbnail of an ebook (16.6mb), the result is a thumbnail of over 30mb even with a meager 198 * 262 pixel output dimension. Am I doing something wrong because a 72 dpi resolution produces the smallest file size posible with reasonable image quality as a thumbnail for me.

  GhostscriptWrapper.GenerateOutput(filepath, fullthumbnailfilepath, New GhostscriptSettings With {
                .Device = GhostscriptDevices.pngalpha,
                .Page = New GhostscriptPages With {.Start = 1, .End = 1, .AllPages = False},
                .Resolution = New Size With {.Height = 72, .Width = 72},
               .Size = New GhostscriptPageSize With {.Native = GhostscriptPageSizes.a4}
                })

fujoos avatar Jun 28 '18 11:06 fujoos

Finally used GhostscriptWrapper.GeneratePageThumb. Works better

fujoos avatar Jun 28 '18 13:06 fujoos