null54 745 Posted January 13, 2019 Report Share Posted January 13, 2019 24 minutes ago, sorcered said: Can someone explain me what's wrong? It appears that the PSB file may be corrupt. Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint 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
taoyue 18 Posted January 14, 2019 Author Report Share Posted January 14, 2019 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/ Quote Link to post Share on other sites
sorcered 0 Posted January 16, 2019 Report Share Posted January 16, 2019 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) Quote Link to post Share on other sites
taoyue 18 Posted January 17, 2019 Author Report Share Posted January 17, 2019 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. Quote Link to post Share on other sites
HyReZ 438 Posted January 17, 2019 Report Share Posted January 17, 2019 Were the properties of the file checked to see it has been assigned a read-only or a blocked attribute status? Quote Link to post Share on other sites
Ievgen Naida 2 Posted January 27, 2019 Report Share Posted January 27, 2019 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. 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. Quote Link to post Share on other sites
Ego Eram Reputo 2,750 Posted January 28, 2019 Report Share Posted January 28, 2019 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. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to post Share on other sites
Rick Brewster 1,749 Posted January 29, 2019 Report Share Posted January 29, 2019 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. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to post Share on other sites
taoyue 18 Posted January 29, 2019 Author Report Share Posted January 29, 2019 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. 1 Quote Link to post Share on other sites
Ievgen Naida 2 Posted January 30, 2019 Report Share Posted January 30, 2019 (edited) @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 January 30, 2019 by Ievgen Naida Quote Link to post Share on other sites
Ego Eram Reputo 2,750 Posted January 30, 2019 Report Share Posted January 30, 2019 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. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to post Share on other sites
Ievgen Naida 2 Posted January 30, 2019 Report Share Posted January 30, 2019 Thanks, just did. 1 Quote Link to post Share on other sites
Mohan 0 Posted April 10, 2019 Report Share Posted April 10, 2019 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. Quote Link to post Share on other sites
taoyue 18 Posted April 11, 2019 Author Report Share Posted April 11, 2019 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. Quote Link to post Share on other sites
CutesieClaire 0 Posted March 2, 2020 Report Share Posted March 2, 2020 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? Quote Link to post Share on other sites
HyReZ 438 Posted March 3, 2020 Report Share Posted March 3, 2020 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. Quote Link to post Share on other sites
Ego Eram Reputo 2,750 Posted March 3, 2020 Report Share Posted March 3, 2020 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? Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to post Share on other sites
Anisoft 0 Posted March 8, 2020 Report Share Posted March 8, 2020 (edited) 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 March 10, 2020 by Anisoft Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.