When I tried to change the resolution (dpi ) of an image, the file size is not changing and remains the same. I tried changing the resolution as 50 dpi, 300 dpi, 1000 dpi. In all the 3 cases the file size is same. Is this an issue or a normal behaviour? I have attached the samples for reference.
samples.zip (1.0 MB)
Can you please share the sample code that you have used on your end. We will be able to proceed further with investigation on our end on provision of requested inforamtion.
Hi @mudassir.fayyaz ,
This is the sample code which I used for resizing the image.
Image image = Image.load("sample.jpg"); JpegOptions jpgOptions = new JpegOptions(); jpgOptions.setResolutionSettings(new ResolutionSetting(50,50)); java.io.OutputStream imageStream = new java.io.FileOutputStream("resized.jpg"); image.save(imageStream, jpgOptions);
I have added a ticket with ID IMAGINGJAVA-1973 in our issue tracking system to further investigate and resolve the issue on our end as it needs investigation. We will share the good news with you as soon as the issue will be fixed.
Does any of the older version of aspose.imaging jar changes the file size when resolution is changed? If so please let me know so that we can use it for time being.
I am sorry, I may not be able to share this. However, I have added ticket based on latest version and we will share the good news with you as soon as the issue will be addressed.
Any update regarding this issue?
We have a requirement for the dpi level conversions.
I regret to share that at present the issue is unresolved. We request for your patience and will share the good news with you as soon as the issue will be fixed.