Hello Team,
We are experiencing an issue with .ai
file conversion using Aspose.PSD version 25.7 this issue is from long time and it was also in past version of psd package.
During conversion, layers are missing in the output files.
Additionally, some of the converted image are far from actual image.
This results in a visual layout that differs significantly from the source .ai
file.
The conversion fails to retain the original design structure and accuracy.
We have attached the original .ai
files along with the converted versions.
Comparison images are also included to highlight the missing layers and inaccurate rendering.
The problem is consistent across multiple .ai
files.
Please review the attachments and advise on a fix or workaround.
This issue is blocking accurate rendering of AI assets in our application.
AI file sample.zip (9.8 MB)
@VinayakaP619
Cause
The issue you’re experiencing with missing layers and inaccurate rendering during the conversion of .ai
files using Aspose.PSD is likely due to limitations in the current version of the library. Certain features or layer types in Adobe Illustrator files may not be fully supported, leading to discrepancies in the output.
Solution
To address this issue, please follow these steps:
-
Update Aspose.PSD: Ensure you are using the latest version of Aspose.PSD. There may have been improvements or bug fixes related to .ai
file handling in newer releases.
-
Check Layer Types: Review the types of layers in your .ai
files. Some complex layer types or effects may not be supported, which could lead to missing content.
-
Simplify the AI File: If possible, simplify the .ai
files by flattening layers or reducing complexity before conversion. This can help retain more content during the conversion process.
-
Use Alternative Formats: If the issue persists, consider exporting your .ai
files to a different format that is better supported by Aspose.PSD, such as .psd
or .png
, and then convert from there.
Code
Here’s a simple code snippet to load and save an .ai
file using Aspose.PSD:
using Aspose.PSD;
using Aspose.PSD.ImageOptions;
// Load the AI file
using (var image = Image.Load("input.ai"))
{
// Save the image in a different format
image.Save("output.png", new PngOptions());
}
Next Steps
If the problem continues after trying the above solutions, please provide additional details about the specific layers or effects that are missing. Sharing a sample .ai
file would also be beneficial for further investigation. This information will help us identify the root cause and provide a more tailored solution.
Thank you for your patience, and I look forward to your response!
Thanks for your response.
I’m already using Aspose.PSD version 25.7, and the sample .ai files are attached. The issue with missing layers and inaccurate rendering still persists, even with standard vector content.
@VinayakaP619
We made a big amount of work to support different types of Shading in Winebox.png. But in this file is still a lot of work ahead. It has very wide variety of Shadings.
I’ve additionally created 2 new tasks for Pattern and Foodbox files. They look like can be fixed quickly. Also, in the 25.8 will be additional upgrade for rendering the Winebox file
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): PSDNET-2523,PSDNET-2524
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.