When using Aspose.Slides (I’ve tested on 6.7-7.4) SlideEx.GetThumbnail, with a .ppt file that has a texture background, no thumbnails are produced.
Hi Travis,
Hi Mudassir,
I’ve attached the PPT file Travis referred to. We’re not doing anything special in the code, just calling Slide.GetThumbnail(double, double) and creating a Bitmap from the result.
…
Presentation presentation = new Presentation(path);
foreach (Slide slide in presentation.Slides)
{
…
Bitmap bitmap = new Bitmap(slide.GetThumbnail(scalar, scalar));}
…
}
…
Thanks,
Ish
Hi Ish,
public static void PptThumbnail(String path, String file){Presentation pres = new Presentation(path + file);for (int i = 1; i <= pres.Slides.LastSlidePosition; i++){try{System.Drawing.Image thumbBitmap = pres.GetSlideByPosition(i).GetThumbnail(2, 2);thumbBitmap.Save(path + “Slides//Slide_” + i.ToString() + “.png”, System.Drawing.Imaging.ImageFormat.Png);}catch (Exception e){Console.WriteLine(“Slide :” + i.ToString() + " has problem in thumbnail generation");Console.WriteLine(e.StackTrace);}}}
Hi Mudassir,
We’re using Mono 2.10.9. The thumbnail generation fails altogether; there’s no output image to share.
Thanks,
Ish
(We’re using the latest version of Aspose, 7.6.0)
Hi Travis,
Thanks for sharing the further information. I have created an issue with ID
SLIDESNET-34537 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved. For reference, please also share the generated thumbnail with missing texture on your end as well as I will append that with mentioned issue in our issue tracking system.
Many Thanks,