Image convert issue

I am converting a docx file that contain images. but after after converting images gets blurry and in document it’s clear and readable…

@nciuwq34i

When converting a DOCX file that contains images to PDF, it’s not uncommon to encounter issues with image quality, such as blurriness. Here are some steps you can take to improve the image quality during the conversion process:

  1. Check Image Resolution: Ensure that the images in your DOCX file are of high resolution. Low-resolution images will appear blurry when converted to PDF.

  2. Use Appropriate Save Options: When converting documents, you can specify save options that may help maintain image quality. For instance, using the PdfSaveOptionsData class allows you to set various parameters that can affect the output quality.

  3. Test with Different Formats: If the issue persists, consider converting the document to other formats (like HTML or TIFF) to see if the image quality improves. This can help identify if the problem is specific to the PDF conversion.

  4. Review Conversion Code: Ensure that your conversion code is correctly implemented. For example, using the ConvertDocument method from the API can be done as follows:

    using (var requestDocument = File.OpenRead("path/to/your/document.docx"))
    {
        var request = new ConvertDocumentRequest(
            document: requestDocument,
            format: "pdf"
        );
        var actual = await this.WordsApi.ConvertDocument(request);
    }
    
  5. Update Library: Make sure you are using the latest version of the Aspose.Words library, as updates may include improvements and bug fixes related to image handling during conversions.

If you continue to experience issues, consider reaching out to Aspose support or checking the documentation for additional options that may help enhance image quality during the conversion process.

For further assistance, you might want to explore related discussions in the forum that address similar image conversion issues.

Sources:
[1]: ConvertDocumentTests.cs

I am using PHP and below is my code, after converting document images are getting blurry
$wordsApi = new Aspose\Words\WordsApi(‘792837423-234234-23434’, ‘werwerwerwerwer’); // Development
$request = new Aspose\Words\Model\Requests\ConvertDocumentRequest($file_path.$inputFile, “html”);
$convert = $wordsApi->convertDocument($request)->getPathName();

Please share your document for analysis.

MOCK TEST - 05.docx (1.6 MB)

It’s the document and I have more similar documents which includes images. in docyment images are clear but after converting docx to html images are getting blurry… above mentioned code I have used

What you can try is use SaveAsOnline method, which requires SaveOptionsData there you can use HtmlSaveOptionsData with field “ExportImagesAsBase64” set to true, here is the result I get using this approach
saved.zip (1.5 MB)

yes but images are getting blured, attaching screenshot from your file
image.png (68.4 KB)

image.png (83.8 KB)

@nciuwq34i
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): WORDSCLOUD-2907

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.

I already using paid version of this API, before images were not blurred but from last 15 days images are getting blurred after converting, please do it asap as our clients are facing this issue very much

The issue is under analysis; I will reach out to you once we better understand why images are blurred now.