taoyue

Photoshop PSD file plugin (newest version: 2.5.0)

Recommended Posts

I get the following error while trying to load a .psb file. Searched for something similar in the thread, couldn't find. Can someone explain me what's wrong? Thanks!

 

Application version: paint.net 4.1.5

PhotoshopFile.PsdInvalidException: LayerInfo signature invalid, must be 8BIM or 8B64.
   at PhotoshopFile.LayerInfoFactory.Load(PsdBinaryReader reader, PsdFile psdFile, Boolean globalLayerInfo)
   at PhotoshopFile.PsdFile.LoadLayerAndMaskInfo(PsdBinaryReader reader)
   at PhotoshopFile.PsdFile.Load(Stream stream, LoadContext loadContext)
   at PaintDotNet.Data.PhotoshopFileType.PsdLoad.Load(Stream input)
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 496
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

Share this post


Link to post
Share on other sites
24 minutes ago, sorcered said:

Can someone explain me what's wrong?

 

It appears that the PSB file may be corrupt.

Share this post


Link to post
Share on other sites
13 hours ago, sorcered said:

I get the following error while trying to load a .psb file. Searched for something similar in the thread, couldn't find. Can someone explain me what's wrong? Thanks!

 

Application version: paint.net 4.1.5

PhotoshopFile.PsdInvalidException: LayerInfo signature invalid, must be 8BIM or 8B64.
   at PhotoshopFile.LayerInfoFactory.Load(PsdBinaryReader reader, PsdFile psdFile, Boolean globalLayerInfo)
   at PhotoshopFile.PsdFile.LoadLayerAndMaskInfo(PsdBinaryReader reader)
   at PhotoshopFile.PsdFile.Load(Stream stream, LoadContext loadContext)
   at PaintDotNet.Data.PhotoshopFileType.PsdLoad.Load(Stream input)
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 496
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

 

Please send me a copy of the PSB file that causes this error.  If the file is too large to email, please upload it to OneDrive and share it to me.

 

My email address is at the top of the PSD Plugin website: https://www.psdplugin.com/

Share this post


Link to post
Share on other sites

Unfortunately, it's work related and NDA-protected, meaning I can't share it. I just needed to make a quick change to a presentation using my home laptop instead of my work one, hence me using Paint.net instead of Photoshop. Anything I should look for? (latest Photoshop loads it without any error messages)

Share this post


Link to post
Share on other sites
16 hours ago, sorcered said:

Unfortunately, it's work related and NDA-protected, meaning I can't share it. I just needed to make a quick change to a presentation using my home laptop instead of my work one, hence me using Paint.net instead of Photoshop. Anything I should look for? (latest Photoshop loads it without any error messages)

 

Can you strip down the file to a minimum repro case?

 

Remove half the layers and see if the PSD Plugin can load it.  If it loads successfully, then the problem was in one of the layers that was deleted.  If it still doesn't load, then the problem can be found in one of the layers that remains.  Keep halving the layers until you're down to one, and then erase the contents of the layer.

 

The error message indicates a parsing error, so I don't need to look at the contents of the file.  The image can be blank.  As long as the file still fails to load in the PSD Plugin, I can take a look at the structure of the file to see what's causing it.

Share this post


Link to post
Share on other sites

Were the properties of the file checked to see it has been assigned a read-only or a blocked attribute status?

Share this post


Link to post
Share on other sites

For people who are struggling without PSD layer groups support you can check the unofficial  fix:

Edit by Rick: Download link removed. See my comment below.

 

Unfortunately, folders are not supported in the Paint.NET so layer names are used to save the folders back.

SO USE IT ON YOUR OWN RISK, while layers marked as "Layer Group:" and "End Layer Group:" will be saved as Folder/Group and your layer data will be lost.

 

In general, if you will load PSD file with groups it can be saved back without folders loss.


Also, it's compatible with SVG import plugin that can save groups structure now with the same naming.  

 

group_example.png

tiger_psd_marked.png

 

P.s. This one cannot be considered as a part of the original plugin while it's not a  wysiwyg approach and you should keep in mind that some layers are really folder markers and you cannot draw on them.

Share this post


Link to post
Share on other sites

Yeah you should work with @taoyue to get a feature integrated. Otherwise I can't let you publish this here as an "official" 2.5.1.

 

I've removed the download link from your post. You two can work together to figure out what to do, but the final call is @taoyue's as far as what gets published here with his code.

Share this post


Link to post
Share on other sites

Ievgen actually contacted me a couple weeks ago, and I explained that I couldn't take the changes.

 

There are a lot of issues with the approach that he has taken.  It's using the layer name as a form of markup, but the text is actually localized.  Paint.NET can't view or edit the layer groups, and most of the blend modes will not work correctly.  You'd be able to save a file, but you wouldn't know what it looked like until you load it into Photoshop.  You also wouldn't know if you'd screwed up the layer groups until you'd already overwritten your original file.  It's just very problematic to do this in a filetype plugin.

 

Layer groups are really an image editing feature.  Whenever Paint.NET gets layer groups, I will update the PSD Plugin to load and save layer groups.  But not before.

  • Upvote 1

Share this post


Link to post
Share on other sites

 @Ego Eram Reputo 

Yes, we have talked and agreed that it cannot be a part of the original plugin while it's not intuitive that layers with a specific name are "saved" as groups (paint image layer data is lost, plugin works only with the regular groups).

 

So it's not a WYSIWYG approach but for me it's important to have a workaround now, and if someone else is searching for that and understands the consequences you have an option.

 

P.s. I have added those notes to the release description.

P.s.s. @Rick Brewster Looks like for the groups you don't even need a tree structure so it should be possible to integrate folders with a current flat layers without huge efforts. Only the big issue here, that I can suggest, is a blend modes and groups UI representation. 

 

Edited by Ievgen Naida

Share this post


Link to post
Share on other sites
2 hours ago, Ievgen Naida said:

but for me it's important to have a workaround now, and if someone else is searching for that and understands the consequences you have an option.

 

Sounds like a strong argument to release this in the Developers Section.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.