我正在尝试转换产生此异常的 PSD 文件(大小为 500+ MB):
java.io.EOFException: Unexpected end of PackBits stream
at com.twelvemonkeys.io.enc.PackBitsDecoder.readFully(Unknown Source)
at com.twelvemonkeys.io.enc.PackBitsDecoder.decode(Unknown Source)
at com.twelvemonkeys.io.enc.DecoderStream.fill(Unknown Source)
at com.twelvemonkeys.io.enc.DecoderStream.read(Unknown Source)
at java.io.DataInputStream.readShort(DataInputStream.java:313)
at com.twelvemonkeys.imageio.plugins.psd.PSDImageReader.read16bitChannel(Unknown Source)
at com.twelvemonkeys.imageio.plugins.psd.PSDImageReader.readImageData(Unknown Source)
at com.twelvemonkeys.imageio.plugins.psd.PSDImageReader.read(Unknown Source)
at javax.imageio.ImageIO.read(ImageIO.java:1448)
at javax.imageio.ImageIO.read(ImageIO.java:1308)
有人可以为此提出解决方案吗?或者,至少,它产生此异常的原因(可能是更新版本的 Photoshop?)。
更新:
这是我使用的 PSD 文件的链接: heavy.psd