寻找Java库以使用PSD格式 [英] looking for java library to work with PSD format

查看:692
本文介绍了寻找Java库以使用PSD格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个可以使用PSD格式(Photoshop)的Java库.有什么想法吗?

I'm looking for a java library to work with PSD format(Photoshop). Any ideas?

推荐答案

可能很晚,但是由于搜索"java psd库"时此页面在google上排名很高,我将分享我的经验.

Probably very late, but as this page is pretty high ranked on google when searching "java psd library" I'll share my experience.

-正如鲍里斯(Boris)所说,java-psd-library是只读的. 读取最新的CS4格式时遇到问题.如果您发现打开psd文件时出错,请在Gimp 2.8中将其打开并再次保存将可能解决此问题.

-As Boris said the java-psd-library is read only. It has trouble reading recent CS4 format. If you ever find yourself with an error opening a psd file, opening it in Gimp 2.8 and saving it again will probably fix the issue.

-由于我需要处理分层的图形文件,因此花了一些时间来寻找替代方案. PSD格式是专有的,访问规范似乎受到限制. 我发现OpenRaster格式是一种很好的选择: http://en.wikipedia.org/wiki/OpenRaster 它具有开放的规范,而且非常简单.这是一个压缩文件,其中包含作为png的图层和一个描述符文件. Gimp很好地处理了这种格式,并且很容易将psd文件导出到ora文件. 您可以找到一些Java工具来对其进行操作.这是一个仍在Alpha中的更广泛的项目的一部分: https://code.google.com/p/mediaz/

-As I needed to work on layered graphic files, I took time to search for an alternative. The PSD format is proprietary and access to specs seems restricted. I found that the OpenRaster format is a pretty good alternative : http://en.wikipedia.org/wiki/OpenRaster It has open specs and it's really simple. It's a zipped file containing layers as png and a descriptor file. Gimp handles this format quite well and it's easy to export a psd file to an ora file. You can find some Java tools to manipulate them. It's a part of a more vast project which is still in Alpha : https://code.google.com/p/mediaz/

希望它会对人们有所帮助.

Hope it'll help people.

这篇关于寻找Java库以使用PSD格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆