Converting PSD to TIF - Current layer can not be exported to raster format

Hello,


I’m trying to convert a PSD to a Tif, following these code examples:

Convert Images using Java Image Processing Library|Documentation

Manipulating TIFF Images|Documentation

The first example produces a black image.

The second example throws the following exception:

Exception in thread “main” class com.aspose.imaging.coreexceptions.imageformats.PsdImageException: Current layer can not be exported to raster format. This could be caused by one of the reasons: it is grouping layer, it is mask layer.
com.aspose.imaging.fileformats.psd.layers.Layer.j(Unknown Source)
com.aspose.imaging.fileformats.psd.layers.Layer.save(Unknown Source)
com.rei.marketingtech.AsposeTest.main(AsposeTest.java:52)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
at com.aspose.imaging.fileformats.psd.layers.Layer.j(Unknown Source)
at com.aspose.imaging.fileformats.psd.layers.Layer.save(Unknown Source)
at com.rei.marketingtech.AsposeTest.main(AsposeTest.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

Here is the file:

https:// drive.google.com/open?id=0B8FrShLAYpOEOFFmYmVMc2hlems

How can I convert this PSD to a TIF?

Thank you,

Jonathan

Hi Jonathan,

Thank you for your inquiry and sharing sample.

This is to update you that we have investigated the issue at our end. Initial investigation shows that the issue persists. The issue has been logged into our issue tracking system with ID IMAGINGJAVA-629. Our product team will further look into it and provide feedback. We will update you with the feedback via this forum thread.

Thanks Ikram.


Looking forward hearing more info.

I have a 30 day license to see if this will be a good fit for my companies workflow. If it turns out not to be possible, let me know if there are any suggested alternatives to how the PSD is configured.

Thanks,

Jonathan


Hi Jonathan,

Thank you for writing us back.

We will let you know as soon as we receive updates from our product team. Please note, the aforesaid ticket is currently pending for analysis and is in the queue with other priority tasks therefore we will require some time for investigation after the ticket is scheduled for analysis.

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


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Thanks, I’ll give it a try.

Hello,


I tested the update and a tif image was created, but the transparency wasn’t retained. I used the same image as above:

https:// drive.google.com/open?id=0B8FrShLAYpOEOFFmYmVMc2hlems

My code is:

public static void convertPsdToTiff(){

String path = “/path/to/pack.psd”;
Image image = Image.load(path);
PsdImage psdImage = (PsdImage) image;
TiffOptions tiffOptions = new TiffOptions(TiffExpectedFormat.TiffLzwRgba);
psdImage.save("/path/to/pack2.tiff", tiffOptions);
}

Is it possible to preserve the transparency when converting to Tif?

Thanks,

Jonathan
Hi Jonathan,

Thank you for your inquiry.

This is to update you that we have investigated the said issue. Initial investigation shows that the issue persists. We have shared the details with our product team. We will update you in this thread as soon as we receive any feedback on this.

Thanks for investigating, appreciate it.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.