Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: How to resize PDF converted to JPEG

$
0
0
I need to resize an PDF converted to a JPEG which is converted to a Base64 using the method ToBase64()

I tried the following but didn't work
Dim settings As New MagickReadSettings()
     settings.Density = New MagickGeometry(400, 400)
     settings.Width = 800
     settings.Height = 600

Using image As New MagickImage(file.InputStream, settings)
          image.Format = MagickFormat.Jpeg
          imgString = image.ToBase64()
          image.Write(Server.MapPath("../Scan/") & imgString)
End Using
The image is being saved but not in the correct size


Thanks

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>