String outputFile=fileName+"_Output.jpg";
String fulloutputFilePath=outputDirpath+"/"+outputFile;
FileInputStream inputstream = new FileInputStream(fullfilePath);
ImageSaveOptions options = new ImageSaveOptions(ImageFormat.Jpeg);
options.setVerticalResolution(Resolution.to_Resolution(2000));
options.setHorizontalResolution(Resolution.to_Resolution(2000));
com.aspose.html.converters.Converter.convertMHTML(inputstream, options, fulloutputFilePath);
Exception in thread "main" class com.aspose.html.utils.ms.System.ArgumentException: An element with the same key already exists in the dictionary.
com.aspose.html.utils.ms.System.Collections.Generic.Dictionary.addItem(Unknown Source)
com.aspose.html.utils.Sd.<init>(Unknown Source)
com.aspose.html.utils.Sb.<init>(Unknown Source)
com.aspose.html.utils.Sc.<init>(Unknown Source)
com.aspose.html.utils.Sd.<init>(Unknown Source)
com.aspose.html.utils.Sb.<init>(Unknown Source)
com.aspose.html.utils.Sc.<init>(Unknown Source)
com.aspose.html.rendering.MhtmlRenderer.a(Unknown Source)
com.aspose.html.rendering.MhtmlRenderer.render(Unknown Source)
com.aspose.html.rendering.MhtmlRenderer.render(Unknown Source)
com.aspose.html.utils.hK.a(Unknown Source)
com.aspose.html.utils.hK.b(Unknown Source)
com.aspose.html.utils.hK.b(Unknown Source)
com.aspose.html.converters.Converter.convertMHTML(Unknown Source)
If possible, could you please share the HTML in .zip format with us by uploading it to Google Drive or Dropbox? We will test the scenario in our environment and address it accordingly.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): HTMLJAVA-1896
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
The issue has just been logged in our issue management system and it will be prioritized on a first come first serve basis. As soon as we make some progress towards its resolution, we will inform you via this forum thread. Please be patient and spare us some time.
The issues you have found earlier (filed as HTMLJAVA-1896) have been fixed in this update. This message was posted using Bugs notification tool by pavel.terechshenkov
@divine1@asad.ali@aspose.notifier Even with the latest Aspose-html- Version 24.12.2 the image conversion is not happening correctly, Conversion of the files ran infinetely (did not seem to end even after 30 minutes).
Are you saying that you are facing the issue with the same files @divine1 uploaded here? If you are using different files and facing same exception, we request you please share them as we will investigate against specific problematic files.
We are afraid that we do not have any update about the issue investigation yet. However, we will surely inform you once we have some news about it. Please spare us some time.
this ticket is not relevant for now, as we are looking into mht to pdf conversion.
the reported issue is reported on mht to jpg conversion, we are not interested in this conversion anymore.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.