Image saving/conversion issue - getting blank image

We are currently using Aspose.cells, Aspose.word, Aspose.pdf and Aspose.pdfkit in our software development environment. We are trying to use Aspose.imaging for image processing in our application.

We are using Java 1.6 on linux. Details below:

java version “1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)

I downloaded build/WEB-INF/lib/aspose-imaging-1.7.0-jdk15.jar and installed it in the appropriate tree.

Here is my java file where I am trying to convert image from one format to another:

import com.aspose.imaging.;
import com.aspose.imaging.imageoptions.
;

import java. io.*;

public class AsposeImageOperations
{
public static void main(String[] args)
throws Exception
{
String fileName = args[0];
int position = fileName.lastIndexOf(”.");
String extn = fileName.substring(position + 1);
String targetType = args.length == 1 ? extn : args[1];
String target = fileName.replaceAll(extn, targetType);
com.aspose.imaging.Image image = com.aspose.imaging.Image.load(args[0]);
if (“bmp”.equals(args[1])) {
image.save(target, new com.aspose.imaging.imageoptions.BmpOptions());
}
else if (“gif”.equals(args[1])) {
image.save(target, new com.aspose.imaging.imageoptions.GifOptions());
}
else if (“jpg”.equals(args[1])) {
image.save(target, new com.aspose.imaging.imageoptions.JpegOptions());
}
else if (“png”.equals(args[1])) {
image.save(target, new com.aspose.imaging.imageoptions.PngOptions());
}
else if (“tiff”.equals(args[1])) {
image.save(target, new com.aspose.imaging.imageoptions.TiffOptions());
}
}
}

Any image I supply and any format I chose, I keep getting the same small black/transparent plain image.

Any idea what is going on?

Hi Sarathy,


Thanks for your inquiry. Are you getting the issue with some specific image? Can you please share your sample image here? So we will test it at our end and provide you more information accordingly.

Sorry for the inconvenience faced.

Best Regards,

Hi Tilal
thanks for the response.
Its happening with any image.

will attach a couple of samples.
Sarathy

attachments here.

Hi Sarathy,

Sorry for the inconvenience faced. I’ve managed to reproduce the issue at my end and logged it as IMAGING-33433 in our bug tracking system for further investigation and resolution. You will be notified via this thread as soon as it is resolved.

Best Regards,

Hi Tilal
any idea how long it will take? we kind of need this immediately.
Thanks
Sarathy

Hi Sarathy,


I’m afraid we are unable to share any ETA at the moment. As we have recently noticed the issue and we will be in a good position to share any time line after completion of analysis phase. However, I’ve shared your concern with development team and will keep you updated regarding issue progress via this forum thread.

Thanks for your patience and cooperation.

Best Regards,