Aspose Imaging - PSD save issue

Hi


I have downloaded Aspose Imaging trial version and I am doing some tests with it, but every time I try to save the output in PSD format I get an error. I can save the file to any other format without troubles. Examples of errors are below:

1.Text Update

C:\Aspose\java\jdk1.6.0_45<wbr>bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:61244,suspend=y,server=n -Dfile.encoding=UTF-8 -classpath “C:\Aspose\java\jdk1.6.0_45<wbr>jre\lib\charsets.jar;C:<wbr>Aspose\java\jdk1.6.0_45\jre<wbr>lib\deploy.jar;C:\Aspose\java<wbr>jdk1.6.0_45\jre\lib\ext\dnsns.jar;C:\Aspose\java\jdk1.6.0_45\jre\lib\ext\localedata.jar;C:\Aspose\java\jdk1.6.0_45<wbr>jre\lib\ext\sunjce_provider.jar;C:\Aspose\java\jdk1.6.0_45\jre\lib\ext\sunmscapi.jar;C:\Aspose\java\jdk1.6.0_45<wbr>jre\lib\javaws.jar;C:\Aspose<wbr>java\jdk1.6.0_45\jre\lib\jce.jar;C:\Aspose\java\jdk1.6.0_45\jre\lib\jsse.jar;C:\Aspose<wbr>java\jdk1.6.0_45\jre\lib<wbr>management-agent.jar;C:<wbr>Aspose\java\jdk1.6.0_45\jre<wbr>lib\plugin.jar;C:\Aspose\java<wbr>jdk1.6.0_45\jre\lib\resources.jar;C:\Aspose\java\jdk1.6.0_45\jre\lib\rt.jar;C:\Aspose<wbr>out\production\Aspose;C:<wbr>Aspose\ext\lib\aspose-imaging-17.01-jdk16.jar;E:\installed_progs\IntelliJ IDEA Community Edition 2016.3.4\lib\idea_rt.jar” Main
Connected to the target VM, address: ‘127.0.0.1:61244’, transport: 'socket’
Exception in thread “main” class com.aspose.imaging.coreexceptions.imageformats.PsdImageException: Update text is supported only in licensed mode
com.aspose.imaging.internal.fL.e.updateText(Unknown Source)
com.aspose.imaging.fileformats.psd.layers.TextLayer.updateText(Unknown Source)
Main.main(Main.java:33)
at com.aspose.imaging.internal.fL.e.updateText(Unknown Source)
at com.aspose.imaging.fileformats.psd.layers.TextLayer.updateText(Unknown Source)
at Main.main(Main.java:33)
Disconnected from the target VM, address: ‘127.0.0.1:61244’, transport: 'socket’

Process finished with exit code 1


2.Save As PSD

C:\Aspose\java\jdk1.6.0_45<wbr>bin\java -Didea.launcher.port=7551 “-Didea.launcher.bin.path=E:<wbr>installed_progs\IntelliJ IDEA Community Edition 2016.3.4\bin” -Dfile.encoding=UTF-8 -classpath “C:\Aspose\java\jdk1.6.0_45<wbr>jre\lib\charsets.jar;C:<wbr>Aspose\java\jdk1.6.0_45\jre<wbr>lib\deploy.jar;C:\Aspose\java<wbr>jdk1.6.0_45\jre\lib\ext\dnsns.jar;C:\Aspose\java\jdk1.6.0_45\jre\lib\ext\localedata.jar;C:\Aspose\java\jdk1.6.0_45<wbr>jre\lib\ext\sunjce_provider.jar;C:\Aspose\java\jdk1.6.0_45\jre\lib\ext\sunmscapi.jar;C:\Aspose\java\jdk1.6.0_45<wbr>jre\lib\javaws.jar;C:\Aspose<wbr>java\jdk1.6.0_45\jre\lib\jce.jar;C:\Aspose\java\jdk1.6.0_45\jre\lib\jsse.jar;C:\Aspose<wbr>java\jdk1.6.0_45\jre\lib<wbr>management-agent.jar;C:<wbr>Aspose\java\jdk1.6.0_45\jre<wbr>lib\plugin.jar;C:\Aspose\java<wbr>jdk1.6.0_45\jre\lib\resources.jar;C:\Aspose\java\jdk1.6.0_45\jre\lib\rt.jar;C:\Aspose<wbr>out\production\Aspose;C:<wbr>Aspose\ext\lib\aspose-imaging-17.01-jdk16.jar;E:\installed_progs\IntelliJ IDEA Community Edition 2016.3.4\lib\idea_rt.jar” com.intellij.rt.execution.application.AppMain Main
Exception in thread “main” class com.aspose.imaging.coreexceptions.ImageSaveException: Image export failed. —> java.lang.NullPointerException
— End of inner exception stack trace —
com.aspose.imaging.Image.a(Unknown Source)
com.aspose.imaging.I.a(Unknown Source)
com.aspose.imaging.internal.dN.b.a(Unknown Source)
com.aspose.imaging.internal.dN.c.a(Unknown Source)
com.aspose.imaging.Image.save(Unknown Source)
Main.main(Main.java:32)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
at com.aspose.imaging.Image.a(Unknown Source)
at com.aspose.imaging.I.a(Unknown Source)
at com.aspose.imaging.internal.dN.b.a(Unknown Source)
at com.aspose.imaging.internal.dN.c.a(Unknown Source)
at com.aspose.imaging.Image.save(Unknown Source)
at Main.main(Main.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: java.lang.NullPointerException
at com.aspose.imaging.Graphics$a$a.process(Unknown Source)
at com.aspose.imaging.internal.dP.ay$a.process(Unknown Source)
at com.aspose.imaging.RasterImage$g.process(Unknown Source)
at com.aspose.imaging.internal.eY.a$a.a(Unknown Source)
at com.aspose.imaging.internal.eY.a$a.loadPartialArgb32Pixels(Unknown Source)
at com.aspose.imaging.RasterImage$d.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.RasterImage.loadPixelsInternal(Unknown Source)
at com.aspose.imaging.RasterImage.a(Unknown Source)
at com.aspose.imaging.RasterImage.a(Unknown Source)
at com.aspose.imaging.RasterImage.loadPartialArgb32Pixels(Unknown Source)
at com.aspose.imaging.internal.dP.ay.a(Unknown Source)
at com.aspose.imaging.Graphics$a.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.Graphics.b(Unknown Source)
at com.aspose.imaging.Graphics.fillRectangle(Unknown Source)
at com.aspose.imaging.Graphics.fillRectangle(Unknown Source)
at com.aspose.imaging.internal.ea.E$d.process(Unknown Source)
at com.aspose.imaging.internal.ea.E$c.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.internal.ea.E$b.loadPartialArgb32Pixels(Unknown Source)
at com.aspose.imaging.RasterImage$d.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.internal.dP.aH.a(Unknown Source)
at com.aspose.imaging.RasterImage.loadPixelsInternal(Unknown Source)
at com.aspose.imaging.RasterImage.a(Unknown Source)
at com.aspose.imaging.RasterImage.a(Unknown Source)
at com.aspose.imaging.RasterImage.loadPartialArgb32Pixels(Unknown Source)
at com.aspose.imaging.internal.ea.E.b(Unknown Source)
at com.aspose.imaging.internal.ea.a.a(Unknown Source)
at com.aspose.imaging.internal.ea.a.export(Unknown Source)
… 11 more

Process finished with exit code 1

Best regards
Jarek
Hi Jarek,

Thank you for your inquiry.

This is to update you that we need sample code snippet along with input files. These will help us to reproduce the issue. Please forward us the sample code along with sample input files. We will investigate the issue and update you with our findings.

Hi


I have attached the code that I use to do following things
1) Update Text layer - it fails.
2) Save new PSD file - it fails.

In the zip file you will find the code & the error that I get.

Under the link here:

there is the code + working file (PSD). I was unable to upload it using your tools.

Cheers
Jarek
Hi Jarek,

Thank you for sharing samples with us.

This is to update you that we have investigated the issues. We are unable to reproduce the issues at our end. We tried to SaveAs the sample PSD file; update the text into the text layer of the sample PSD file shared by you. We are able to generate the required output without any issue using the code snippets provided by you. Sample screen shot of the updated text in PSD file is attached for your reference.

Hi


Isn’t the problem caused by the trial license that I use? If so would it be possible for you to send me 7 day full license to confirm that everything I need works?

Cheers
Jarek

Hi Jarek,

Thank you for writing us back.

You can get 30 days temporary license to evaluate our product without any limitation. Please follow the link given below to get temporary license.

Temporary License

Please feel free to contact us for any further assistance.