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

@rlaskowski.sdl,

I request you to please share the sample application along with generated output with us. We will be able to investigate the issue further on our end on provision of requested information.

Sample you can find in How to write \ character to PSD file using Aspose.Imaging for .NET - generated outputs were attached in original report

@rlaskowski.sdl,

I have worked with shared sample code and following sample file.

I have generated the attached PSD file after update text on my end. Can you please try opening the same on your end. If you observe issue then as requested earlier, please share the snapshot of error occurring on your end.

target_test.zip (17.7 KB)

Hi,
yes, the file you generated throws error when opening in Photoshop - does it work for you?
In Photoshop I get this error:
Could not complete your request because of a program error.

@rlaskowski.sdl,

As requested earlier, can you please share the snapshot of error when opened in Photoshop.

An issue with ID IMAGINGNET-3052 has been created in our issue tracking system to investigate and resolve the issue.

here you go
upload_thumb.png (12.5 KB)

@rlaskowski.sdl,

Thank you for sharing the information with us.

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

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.