我在本地运行时从 ImagesService 调用 applyTransform() 时遇到问题。当部署到 GAE 时,图像转换得很好,在本地我得到一个 500 错误,但有以下异常:
java.lang.IllegalArgumentException: Failed to read image
at com.google.appengine.api.images.ImagesServiceImpl.convertApplicationException(ImagesServiceImpl.java:397)
at com.google.appengine.api.images.ImagesServiceImpl.applyTransform(ImagesServiceImpl.java:88)
at com.google.appengine.api.images.ImagesServiceImpl.applyTransform(ImagesServiceImpl.java:65)
...
我正在从 tiff 转换为 png,我尝试添加各种库作为依赖项,但无济于事(jai-imageio,tom gibara's,javaVP8)。我继续收到此警告:
Nov 26, 2012 6:30:37 PM com.google.appengine.api.images.dev.LocalImagesService init
WARNING: No image reader found for format "tif". An ImageIO plugin must be installed to use this format with the DevAppServer.
关于如何在 GAE 环境之外进行这项工作的任何建议?