Jump to content

Photoshop PSD file plugin (newest version: 2.5.0)


Recommended Posts

24 minutes ago, sorcered said:

Can someone explain me what's wrong?

 

It appears that the PSB file may be corrupt.

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

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/

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)

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.

Link to post
Share on other sites
  • 2 weeks later...

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.

Link to post
Share on other sites

Did you talk to @taoyue before releasing this? This plugin is still being actively developed. Maybe the two of you can work together to solve the issues.

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.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

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
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
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.

Link to post
Share on other sites
  • 2 months later...

Hi,

 

I am trying to open psd file but not able to open it .

I got error which is mentioned below.

 

Application version: paint.net 4.1.6

System.NullReferenceException: Object reference not set to an instance of an object.
   at PhotoshopFile.PsdFile.DecompressImages()
   at PaintDotNet.Data.PhotoshopFileType.PsdLoad.Load(Stream input)
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 495
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

 

Any help would be appreciated.

Link to post
Share on other sites
On 4/9/2019 at 11:02 PM, Mohan said:

System.NullReferenceException: Object reference not set to an instance of an object.
   at PhotoshopFile.PsdFile.DecompressImages()
   at PaintDotNet.Data.PhotoshopFileType.PsdLoad.Load(Stream input)
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 495
   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 PSD file, and I'll take a look at it.

 

My email address is listed here: https://www.psdplugin.com/

 

If the file is too big to fit in an email, please upload it to OneDrive and share the file to my email.

Link to post
Share on other sites
  • 10 months later...

Hey I'm having a problem opening a PSD a friend has sent me.  
To be more clear, I have Photoshop CS6 Extended and a friend of mine was designing a project in Paint.net, they used the PSD filetype plugin to save as a PSD and send to me to complete my half of the project, but I was unable to open it in photoshop.  I then downloaded Paint.net and this plug in but I keep getting "PhotoshopFile.PsdInvalidException: Unknown image compression method." rather than opening the file.

 

Has anyone seen this before?

Link to post
Share on other sites

No, but why not have the friend see if he can open the original file on their end using PDN, and if the can have them put the image in a compressed archive (like a .zip folder) and re-send it.


 

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

"PhotoshopFile.PsdInvalidException: Unknown image compression method."

 

I suspect the file is corrupted. Uploading it and posting the URL to the plugin author might help diagnose the problem.

 

2 hours ago, CutesieClaire said:

a friend of mine was designing a project in Paint.net.....

 

2 hours ago, CutesieClaire said:

I then downloaded Paint.net.....

 

If you've both got PDN - why not swap the *.PDN file?

 

 

Link to post
Share on other sites

Is it possible to receive some sort of modified date or hash/id for changed layers? 

Could help with preventing re-exporting none modified layers.

Edit* I was also curious if it was possible to speed up parsing by downscaling the images being processed when loaded or having files not visible be ignored?

Edited by Anisoft
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.

×
×
  • Create New...