Free Support Forum - aspose.com

Issue: Image DPI is not changed when converting PNG to JPG

Hi Aspose supporter,

My team have an issue when use Aspose converter about to “Image DPI is not changed when converting PNG to JPG

Reference issue posted before: Image DPI is not changed when converting PNG to JPG

Please help us.

Regards,
Tuan

@slmspsvietnamvn,

I have observed the thread shared by you and like to share that an issue with ID IMAGINGJAVA-1504 has already been created 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 notified once the issue will be fixed.

@mudassir.fayyaz,

Do you have any update for this ticket?

Regards,
Tuan Nguyen

@slmspsvietnamvn,

I have verified the issue status from our issue tracking system. We request for your patience till the time the issue gets resolved.

Hi @mudassir.fayyaz,

The ticket IMAGINGJAVA-1504 still is New after 22 days ago.
Can you share more plan for me because it impact to our business.

Regards,
Tuan Nguyen

@slmspsvietnamvn,

We have internally observed requirements and suggest you to please try using following sample code on your end and see if this help or not.

RasterImage image = (RasterImage)Image.load("change-space.png");

JpegOptions opts=new JpegOptions();

ResolutionSetting settings = new ResolutionSetting(20, 20);

opts.setResolutionSettings(settings);
opts.setResolutionUnit((byte)ResolutionUnit.Inch);

image.save("output.jpg", opts);

Thank @mudassir.fayyaz,
My team already used your suggestion and it work.
Many thank!

@slmspsvietnamvn,

Thank you for your feedback.

The issues you have found earlier (filed as IMAGINGJAVA-1504) have been fixed in this update.