Free Support Forum - aspose.com

Image color changes in exported thumbnail (Java)

I am generating thumbnail of pptx it changes the color of the image. can you please help and suggest the reason and solution for this error. In pptx image used is .emf type[Extension].

Do aspose slide java have support for .emf format image?

Below zip have

  1. Presentaion
  2. img/ Actual output
  3. img/ Expected output

please investigate.

Test.zip (119.4 KB)

Thanks,
Saquib Shaikh

@saquibs,

Thanks for contacting us. I like to inform that i have worked with source file shared by you using Aspose.Slides for .NET 19.11 and unable to observe the issue. I have also shared my generated result with you for your kind reference. Can you please check attachment. Can you please share complete environment details along with sample code. Also please share which version of Aspose.Slides you are using on your end so that we may further investigate to help you out11PresentationTestThumbnail.jpg (15.3 KB)
.

Thanks for your reply.

This is to inform you that I am using :
Language:- Java 1.8
Aspose slide for java: 19.4 version
IDE: NetBeans
Operating System: Ubuntu

Code:-

String dataDir = "/home/Ubuntu/Downloads/Slides/Test/";

//Instantiate a Presentation class that represents the PPTX file
Presentation pres = new Presentation(dataDir + "Presentation1.pptx");
		 
//Access the first slide
ISlide sld = pres.getSlides().get_Item(0);
		 
//Create a full scale image
BufferedImage image = sld.getThumbnail(1f, 1f);
		 
//Save the image to disk in JPEG format
ImageIO.write(image,"jpeg",new File(dataDir + "/img/" + "theme 1 img 4.jpg"));

Thanks,
Saquib Shaikh.

@saquibs,

Thanks for sharing requested information. Can you please try to use Aspose.Slides latest version 19.11 on your end.