Hi,
My company looking for a solution to convert documents and generate thumbnails.
I am trying to generate thumbnails using Groupdocs.Conversion for java.
It worked very well with pdf, doc, ppt, xls, etc.
However, when I convert an image(jpg, gif,tif, etc) to image(png), the resolutions which I set to ImageSaveOptions seem like don’t work.
The output file’s size does not much changed.
I’m wondering if I missed something.
Could you please help me out with this problem?
Here is my codes:
ImageSaveOptions imagesaveOption = new ImageSaveOptions();
imagesaveOption.setConvertFileType(ImageSaveOptions.ImageFileType.PNG);
imagesaveOption.setPageNumber(1);
imagesaveOption.setNumPagesToConvert(1);
imagesaveOption.setHeight(120);
imagesaveOption.setWidth(120);
imagesaveOption.setHorizontalResolution(30);
imagesaveOption.setVerticalResolution(30);
Groupdocs version: 18.12 for java
os: Mac OS High Sierra
IDE: eclipse
Java: 1.8
Thanks,
James