Reading PSD file format

后端 未结 11 1179
时光说笑
时光说笑 2020-12-04 11:13

I wonder if this is even possible. I have an application that adds a context menu when you right click a file. It all works fine but here is what I\'d like to do:

If

相关标签:
11条回答
  • 2020-12-04 11:54

    ImageMagick.NET - http://imagemagick.codeplex.com/ - is the later version of the link 0xA3 gave, with some slightly different syntax. (Note, this is untested):

    using ImageMagickNET;
    
    public void Test() {
            MagickNet.InitializeMagick();
            ImageMagickNET.Image img = new ImageMagickNET.Image("file.psd");
            img.Resize(new Geometry(100, 100, 0, 0, false, false);
            img.Write("newFile.png");
    }
    
    0 讨论(0)
  • 2020-12-04 11:55

    I've had great success with Aspose's Imaging component which can load and save PSD files without Photoshop: https://products.aspose.com/imaging/net

    0 讨论(0)
  • 2020-12-04 11:57

    This guy do it easier:

    http://www.codeproject.com/KB/graphics/simplepsd.aspx

    With a C# library and a sample project.

    I've tried with PS2 files and works ok.

    0 讨论(0)
  • 2020-12-04 12:00

    Here is my own psd parser and exporter: http://papirosnik.info/psdsplit/. It allows to correctly parse psd with rgb color 8, 16- and 32-bit for channel, process user masks, export selected layers into jpeg, png, jng, bmp, tiff; create xml layout of exported layers and groups and also create a texture atlas and animations set from given layers. It's entirely written in C#. If you want its sources inform me via support link on About dialog in the application.

    0 讨论(0)
  • 2020-12-04 12:01

    I got extraction from psd working. see my answer here

    How to extract layers from a Photoshop file? C#

    may help someone else.

    0 讨论(0)
  • 2020-12-04 12:02

    I have written a PSD parser which extracts raster format layers from all versions of PSD and PSB. http://www.telegraphics.com.au/svn/psdparse/trunk

    0 讨论(0)
提交回复
热议问题