GithubHelp home page GithubHelp logo

java-psd-library's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

java-psd-library's Issues

Requires two types of layers (LayerType.OPEN_FOLDER and LayerType.CLOSED_FOLDER) instead of LayerType.FOLDER

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

Image by layers is not shown correctly

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

Join project problem

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

Eclipse Plugin

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:

Summary of features?

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

Layer Comps

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

Add layer effects support

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

Library doesn't allow nesting of more than 5 groups

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

Add maven support

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.