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
Thanks
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 sizeThanks