"Unable to render RenderedOp for this operation" when get TIFF width
Hi Everyone, I am try to get the TIFF(with annotation) image width by using the following source:
PlanarImage image = JAI.create("fileload", path);
int imgWidth = pi.getWidth();
int imgHeight = pi.getHeight();
the program can run well in local. But When I put the program to server . I will get the following error message:
java.lang.RuntimeException: - Unable to render RenderedOp for this operation.
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java(Compiled Code))
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java(Compiled Code))
at javax.media.jai.RenderedOp.getWidth(RenderedOp.java(Compiled Code))
The same TIFF file without annotation can work well.Any one could give some suggestion about this? thanks in advance.