Pptx slides 4.0: image quality still poor

Hello there,

Thanks for addressing the problem I addressed in <A href="https://forum.aspose.com/t/96551</A>.</P> <P>I downloaded the update and tried it out.</P> <P>I still see a difference between ppt and pptx, though the pptx image in the presentation is better than it was (with an image, originating from a jpg stream as source).</P> <P>I have found workaround, in which I convert the image to a png stream first. Then the quality is identical (good) between ppt and pptx.Of course I'd rather do without the workaround.</P> <P>I'll give you my code to clarify what I mean:</P> <P>To ppt:</P><FONT size=2> <P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Private</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Sub</FONT></FONT><FONT size=2> _placePicture(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>ByVal</FONT></FONT><FONT size=2> slide </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> Aspose.Slides.Slide, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>ByVal</FONT></FONT><FONT size=2> imageStream </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> IO.Stream, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>ByVal</FONT></FONT><FONT size=2> position </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> picturePositions, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>ByVal</FONT></FONT><FONT size=2> sizeFactor </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Single</FONT></FONT><FONT size=2>)</P></FONT><FONT size=2> <P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Dim</FONT></FONT><FONT size=2> picture </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>New</FONT></FONT><FONT size=2> Aspose.Slides.Picture(_presentation, imageStream)</P> <P>_presentation.Pictures.Add(picture)</P> <P>....</P></FONT> <P>following some code to place the picture</P> <P>To pptx:</P><FONT size=2> <P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Private</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Sub</FONT></FONT><FONT size=2> _placePictureex(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>ByVal</FONT></FONT><FONT size=2> slide </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> Aspose.Slides.Pptx.SlideEx, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>ByVal</FONT></FONT><FONT size=2> image </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> Drawing.Image, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>ByVal</FONT></FONT><FONT size=2> position </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> picturePositions, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>ByVal</FONT></FONT><FONT size=2> sizeFactor </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Single</FONT></FONT><FONT size=2>)</P> <P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>'workaround for getting better image quality. If I don't convert image to png stream and than back to image,</FONT></FONT></P> <P><FONT color=#008000 size=2><FONT color=#008000 size=2>'the quality of </FONT></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>the image is bad.</P></FONT></FONT><FONT size=2> <P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Dim</FONT></FONT><FONT size=2> stream </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>New</FONT></FONT><FONT size=2> IO.MemoryStream</P> <P>image.Save(stream, Drawing.Imaging.ImageFormat.Png)</P> <P>image = Drawing.Bitmap.FromStream(stream)</P> <P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Dim</FONT></FONT><FONT size=2> pptImage </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> Aspose.Slides.Pptx.ImageEx = _presentationEx.Images.AddImage(image)</FONT></P> <P><FONT size=2>...</FONT></P><FONT size=2> <P>following some code to place the picture</P></FONT></DIV>

Hi,

Your query has been answered in this thread.