dragon66 / java-psd-library Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/java-psd-library
License: GNU Lesser General Public License v3.0
Automatically exported from code.google.com/p/java-psd-library
License: GNU Lesser General Public License v3.0
Requires two types of layers (LayerType.OPEN_FOLDER and
LayerType.CLOSED_FOLDER) instead of LayerType.FOLDER.
See "Section divider setting (Photoshop 6.0)" at
http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/
In the class psd.parser.layer.additional.LayerSectionDividerParser replace the
code from
--
switch (dividerType) {
case 1:
case 2:
type = LayerType.FOLDER;
break;
case 3:
type = LayerType.HIDDEN;
break;
}
--
to
--
switch (dividerType) {
case 1:
type = LayerType.OPEN_FOLDER;
break;
case 2:
type = LayerType.CLOSED_FOLDER;
break;
case 3:
type = LayerType.HIDDEN;
break;
}
--
and change psd.model.AbstractPsd.makeLayersHierarchy(layers) method.
When you open some files (probably from the Adobe Photoshop CS5) see the error:
Exception in thread "AWT-EventQueue-0" java.util.NoSuchElementException
at java.util.LinkedList.remove(LinkedList.java:788)
at java.util.LinkedList.removeFirst(LinkedList.java:134)
at psd.model.AbstractPsd.makeLayersHierarchy(AbstractPsd.java:95)
at psd.model.AbstractPsd.<init>(AbstractPsd.java:71)
at psd.model.Psd.<init>(Psd.java:11)
Original issue reported on code.google.com by [email protected]
on 5 Apr 2012 at 10:24
From zxg1127:
>
> hello,i find some problem about java-psd-library project,may be there are
bugs.
>
> when i run PsdDemo and load a psd file, the Original image tab show correct
result,but the Image by layers tab show the wrong result,i think that the
layers order is wrong.
Original issue reported on code.google.com by [email protected]
on 29 Nov 2010 at 10:10
I would like to join this project, but I'm not able find how. I don't have any
experience with google code projects and joining it. On People page is info,
that I have to contact owner via mail list if I want join project. I don't see
any mail list or discuss group in this project.
Original issue reported on code.google.com by [email protected]
on 12 Oct 2010 at 7:39
I have created a Eclipse/SWT Plugin of the java-psd-library, which I use for
Designerator. For testing I made a little modification and added support for
SWT by subclassing PsdLayer. What do you think of it?
Example of calling from SWT:
FileInputStream stream;
try {
stream = new FileInputStream(file);
PsdImage psdFile = new PsdImage(stream,true);//true==swt
stream.close();
PsdLayer baseLayer = psdFile.getBaseLayer();
if (baseLayer instanceof PsdSWTLayer) {
ImageData imageData = ((PsdSWTLayer) baseLayer).getImageData();
if (imageData!=null) {
sourceImage=new Image(display, imageData);
return sourceImage;
}
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
You find the plugin of your project in the cvs repository of my
project:http://code.google.com/p/designerator/
I plan on creating an extensionpoint for image readers so that the
java-psd-library plugin can added without any ties to designerator or eclipse.
I thank you for the great job you have done. I have attached one file.
Original issue reported on code.google.com by [email protected]
on 1 Jun 2011 at 7:28
Attachments:
Hi.
I'm actually not sure how to email dima.belsky
I just wanted to get a list of features or api calls available.
I'll download the library and see how far it gets.
R
Original issue reported on code.google.com by [email protected]
on 7 Oct 2011 at 3:25
Hi,
do you know anything about layer comps in PSD file format?
It would be awesome to read layer comps e use that information programmatically.
Original issue reported on code.google.com by mliberato
on 9 Feb 2011 at 6:00
Create a constructor of Psd class with a parameter InputStream type, instead
File type.
version: 0.0.1
Original issue reported on code.google.com by [email protected]
on 27 Sep 2011 at 2:23
We would like to have support for layer effects.
We started working on this in a branch in our git fork here :
https://github.com/inevo/java-psd-library/tree/layer_effects
If you wish we can provide a patch for this.
Original issue reported on code.google.com by [email protected]
on 21 Apr 2011 at 11:54
Hi there,
I am using this library to write my thesis that makes PSD files to HTML
automatically. I found it very helpful and it it very well written. There is
one problem I can't seem to fix myself:
Photoshop before CS5 allowed nesting of 5 groups, but CS5 and higher allows 10
groups nesting. But whenever I nest 6 groups in each other I get this exception:
java.util.NoSuchElementException
at java.util.LinkedList.remove(LinkedList.java:788)
at java.util.LinkedList.removeFirst(LinkedList.java:134)
at psd.model.Psd.makeLayersHierarchy(Psd.java:93)
at psd.model.Psd.<init>(Psd.java:70)
Do you have any idea what I need to change to get deeper nesting working?
Original issue reported on code.google.com by [email protected]
on 29 Apr 2012 at 1:28
We have added simple maven support to java-psd-library
You can review the changes in our Git fork here :
https://github.com/inevo/java-psd-library/tree/maven
This work is based on the v2 branch
Original issue reported on code.google.com by [email protected]
on 21 Apr 2011 at 11:52
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.