S
shapper
Hello,
I am converting a PDF file pages to bitmaps and saving them as PNG's:
Bitmap image = file.GetPageImage(i, 144);
image = DrawingHelpers.Scale(image, 850D / image.Width,
InterpolationMode.HighQualityBicubic);
image.Save(String.Format("C:\\Test\\page{0}.png", i),
ImageFormat.Png);
I always get an image around 150KB for each page. I think that is
really a log.
When I try to save it as JPEG (ImageFormat.Jpeg) I am not able to open
the resulting file and in fact the file extension is still in PNG.
How can I make my files smaller?
I opened the resulting PNG files and saved them to JPG and got good
quality with around 60 KB.
Thanks,
Miguel
I am converting a PDF file pages to bitmaps and saving them as PNG's:
Bitmap image = file.GetPageImage(i, 144);
image = DrawingHelpers.Scale(image, 850D / image.Width,
InterpolationMode.HighQualityBicubic);
image.Save(String.Format("C:\\Test\\page{0}.png", i),
ImageFormat.Png);
I always get an image around 150KB for each page. I think that is
really a log.
When I try to save it as JPEG (ImageFormat.Jpeg) I am not able to open
the resulting file and in fact the file extension is still in PNG.
How can I make my files smaller?
I opened the resulting PNG files and saved them to JPG and got good
quality with around 60 KB.
Thanks,
Miguel