Unable to open file which contain asian characters using Aspose.Imaging for .NET

Hi,
it seems that the issue is still repro, but issue " How to write \ character to PSD file" is fixed - can you please recheck it?

Hi rlaskowski.sdl,

I suggest you to please try using following sample code on your end to verify the issue using latest Aspose.Imaging for .NET 18.8.

string filePath = @"test.psd";            
            string outputFilePath = "result.psd";

        using (Image image = Image.Load(filePath))
        {
            if (!(image is PsdImage))
            {
                return;
            }

            PsdImage psdImage = (PsdImage)image;
            Layer[] layers = psdImage.Layers;

            for (int index = layers.Length - 1; index >= 0; index--)
            {
                Layer layer = layers[index];

                if (!(layer is TextLayer))
                {
                    continue;
                }

                TextLayer textLayer = (TextLayer)layer;
                textLayer.UpdateText(@"\\()");
            }

            PsdOptions imageOptions = new PsdOptions(psdImage);


            psdImage.Save(outputFilePath, imageOptions);
      }

HI,
but this particular issue is talking about specific Asian characters, not \ - so what is fixed in 18.8?
Based on our testing \ issue is fixed, but Asian characters are still causing issues.

@rlaskowski.sdl,

Can you please provide the generated output using above code and sample and Aspose.Imaging 18.8 so that we may investigate the issue further on our end.

HI,
using following code:
using (var image = Image.Load(filePath))
{
if (!(image is PsdImage)) return;

            var psdImage = (PsdImage)image;
            var layers = psdImage.Layers;

            for (var index = layers.Length - 1; index >= 0; index--)
            {
                var layer = layers[index];

                if (!(layer is TextLayer)) continue;

                var textLayer = (TextLayer)layer;
                textLayer.UpdateText("展 就");
            }

            var imageOptions = new PsdOptions(psdImage);

            var fileName = Path.GetFileName(filePath);
            var outputFilePath = Path.GetDirectoryName(filePath) + "\\target_" + fileName;
            psdImage.Save(outputFilePath, imageOptions);
        }

You will get attached file which fails to open in Photoshop
target_SimpleText.zip (13.8 KB)

@rlaskowski.sdl,

I have observed PSD shared and there is a blank PSD when I open it in PSD Viewer. Can you please provide Photoshop version and snapshot of errr so that I may update ticket accordingly.

error.png (2.3 KB)
Error, attached.
The Photoshop version is CC 2018 (19.1.3 Release).
Characters you should see are 展 就

@rlaskowski.sdl,

I have observed issue shared by you. An issue with ID IMAGINGNET-3023 has been created in our issue tracking system to investigate and resolve the issue.

Hi,
do you have any estimate when this issue will be solved? I will be fine to test any pre-release version.
Regards

@rlaskowski.sdl,

I have verified from our issue tracking system and like to share that the issue is tentatively going to get resolved in upcoming Aspose.Imaging for .NET 18.10. We will share the feedback with you as soon as the issue will be fixed.

HI,
I tested the issue with 18.11 - thing is that it only solves very small subset of problematic characters, namely Chinese Simplified. Full solution needs to address all Asian characters, please look into these (there could be others as well:

  1. 20941 characters from the CJK Unified Ideographs block.
    Code points U+4E00 to U+9FCC.

U+4E00 - U+62FF
U+6300 - U+77FF
U+7800 - U+8CFF
U+8D00 - U+9FCC
2) 6582 characters from the CJKUI Ext A block.
Code points U+3400 to U+4DB5. Unicode 3.0 (1999).

  1. 42711 characters from the CJKUI Ext B block.
    Code points U+20000 to U+2A6D6. Unicode 3.1 (2001).

U+20000 - U+215FF
U+21600 - U+230FF
U+23100 - U+245FF
U+24600 - U+260FF
U+26100 - U+275FF
U+27600 - U+290FF
U+29100 - U+2A6DF
3) 4149 characters from the CJKUI Ext C block.
Code points U+2A700 to U+2B734. Unicode 5.2 (2009).

  1. 222 characters from the CJKUI Ext D block.
    Code points U+2B740 to U+2B81D. Unicode 6.0 (2010).

  2. CJKUI Ext E block.

@rlaskowski.sdl,

I have observed your comments and request you to please provide the source file, generated output and used sample along with snapshot describing the remaining issues. We will be able to investigate the issue further on our end on provision of requested information.

It’s still the same file, same code as when I started the thread - not sure what else you need. I specified which characters are causing issues and defined their Unicode ranges.
Note - without this working, the library is quite unusable.

@rlaskowski.sdl,

I have observed the information shared and like to shared by you and have created an issue with ID IMAGINGAINET-74 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.

Hi,
do you have any update about this issue?
Regards

@rlaskowski.sdl,

I have observed your comments. I regret to inform that issue is still unresolved. We will share feedback regarding ETA soon. I request for your patience.

Hello, on the same problem, do you have any indication when a complete fix will be issued? (to make sure all Asian characters are safe to include in the text)
This is preventing us from going into production with our software which uses Aspose.

@Rares_V,

I have verified from our issue tracking system and regret to share that at present the issue is still unresolved. We request for your patience till the time the issue gets resolved.

Thank you for your response but by question was about “WHEN” Aspose thinks this will be resolved (I realize a commitment is hard to give, but at least an indication of current plans would be adequate).

Also, can you confirm or infirm if this issue is present in Aspose.PSD for .NET?

@Rares_V,

I like to inform this issue is present in Aspose.PSD and that is going to be resolved tentatively in Aspose.PSD 19.4. I request for your patience until issue get resolved.