Jump to content

taoyue

Members
  • Posts

    87
  • Joined

  • Last visited

Posts posted by taoyue

  1. 2 hours ago, dd1 said:

     

     

    does it have kalidescope?

     

     

     

    Kaleidoscope is not a feature of the PSD file format.

     

    If the kaleidscope plugin in Photoshop is just rendering copies of the base image to new layers, then they will appear.  If it is using layer effects to change the lighting on certain layers, then those layer effects will not appear.

  2. On 12/7/2022 at 11:32 AM, john2000 said:

    I recently downloaded the psd extension to paint.net version 4.3.12 and got an error message when opening a psd file. Any help in fixing this error?

     

    Exception:

    PhotoshopFile.PsdInvalidException: Unrecognized layer section type.
       at PhotoshopFile.PsdFile.VerifyLayerSections()
       at PaintDotNet.Data.PhotoshopFileType.PsdLoad.Load(Stream input)
       at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src_4_3_x\Data\FileType.cs:line 498
       at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src_4_3_x\Base\Functional\Func.cs:line 158

     

    Please send me a copy of the PSD file so that I can investigate.  My email address is at the top of the page at the PSD Plugin website: https://www.psdplugin.com/

  3. On 10/17/2022 at 3:48 PM, aalex7764 said:

    i downloaded the extension and when i tried opening up a psd file i got this. Anyone know how to fix this?

     

    Every layer is giving the same error.  There's something about the file that makes the plugin think the channels are incomplete.

     

    Please send me a copy of the PSD file so that I can investigate.  My email address is at the top of the page at the PSD Plugin website: https://www.psdplugin.com/

  4. On 7/10/2022 at 11:08 AM, virusaxe said:

    I recently downloaded the psd plugin and i realised that it only opens some psd files and not all of them, how can i fix this?

     

    Do it load incorrectly, or does it not load at all?

     

    If it loads incorrectly, not every feature of Photoshop is supported.  Please see:  Compatibility with Photoshop

     

    If it gives an error message, then that should not happen.  Please send me the PSD file so I can investigate.  My email address is at the top of the page: https://www.psdplugin.com/

  5. 2 hours ago, otuncelli said:

    @taoyue This plugin is affected by a behavior change in .NET 6.0: 

    https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/partial-byte-reads-in-streams

     

    Couldn't open these files:

    https://github.com/psd-tools/psd-tools/raw/main/tests/psd_files/32bit.psb

    https://github.com/psd-tools/psd-tools/raw/main/tests/psd_files/32bit.psb

     

    Both give this error.

      Reveal hidden contents
    Exception:
    
    System.AggregateException: One or more errors occurred. (ZIP stream was not fully decompressed.) (ZIP stream was not fully decompressed.) (ZIP stream was not fully decompressed.)
     ---> System.Exception: ZIP stream was not fully decompressed.
       at PhotoshopFile.Compression.ZipImage.Read(Byte[] buffer)
       at PhotoshopFile.Compression.ZipPredict32Image.Read(Byte[] buffer)
       at PhotoshopFile.Channel.DecodeImageData()
       at PhotoshopFile.PsdFile.<>c.<DecompressImages>b__64_1(Channel channel)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
    --- End of stack trace from previous location ---
       at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
       at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
       at System.Threading.Tasks.TaskReplicator.Replica.Execute()
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
       at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
    --- End of stack trace from previous location ---
       at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)
       at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
       at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
       at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
       at PhotoshopFile.PsdFile.DecompressImages()
       at PhotoshopFile.PsdFile.Load(Stream stream, LoadContext loadContext)
       at PhotoshopFile.PsdFile..ctor(Stream stream, LoadContext loadContext)
       at PaintDotNet.Data.PhotoshopFileType.PsdLoad.Load(Stream input)
       at PaintDotNet.Data.PhotoshopFileType.PhotoshopFileType.OnLoad(Stream input)
       at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src_4_3_x\Data\FileType.cs:line 498
       at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src_4_3_x\Base\Functional\Func.cs:line 158
     ---> (Inner Exception #1) System.Exception: ZIP stream was not fully decompressed.
       at PhotoshopFile.Compression.ZipImage.Read(Byte[] buffer)
       at PhotoshopFile.Compression.ZipPredict32Image.Read(Byte[] buffer)
       at PhotoshopFile.Channel.DecodeImageData()
       at PhotoshopFile.PsdFile.<>c.<DecompressImages>b__64_1(Channel channel)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
    --- End of stack trace from previous location ---
       at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
       at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
       at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---
    
     ---> (Inner Exception #2) System.Exception: ZIP stream was not fully decompressed.
       at PhotoshopFile.Compression.ZipImage.Read(Byte[] buffer)
       at PhotoshopFile.Compression.ZipPredict32Image.Read(Byte[] buffer)
       at PhotoshopFile.Channel.DecodeImageData()
       at PhotoshopFile.PsdFile.<>c.<DecompressImages>b__64_1(Channel channel)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
    --- End of stack trace from previous location ---
       at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
       at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
       at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---

     

     

    I've created a PR on GitHub.

     

    Thanks for investigating.  Please see my comments on Github.

    • Like 2
  6. On 6/17/2022 at 12:52 PM, biglooping said:

    hello,

    please find this file that is used to define texture for FS2020 plane?

     

    https://www.dropbox.com/s/x3p0r688p7uhi9i/AS33 Paintkit.psd?dl=0

    file size is around 100Mo

    I got memory exception.

     

    Exception:

    System.OutOfMemoryException: Insufficient memory to continue the execution of the program.

     

    Please see the "Insufficient memory due to too many layers" section: https://www.psdplugin.com/docs/compatibility-with-photoshop/

     

    This file has dimensions of 8192x8192 and 90 layers, so it requires 24.7 GB of memory to load into Paint.NET.  I tested it, and the file loads successfully on a computer with more than that much memory.

    • Upvote 1
  7. 4 hours ago, Amy said:

    Hello, I have a trouble to place this plugin inside of the FileType, it said it need the permission from administrator. I really need to use this plugin, so please help

     

    Thank you.

     

    You can use the alternative installation location for non-administrators: https://www.getpaint.net/doc/latest/InstallPlugins.html

     

    Halfway down the page, there is a yellow box that says "Note: In the Windows Store version of paint.net ..."  It actually works for the non-Windows Store version as well.  Create the folder structure exactly as shown in the screenshot, and then copy the DLL file into This PC > Documents > paint.net App Files > FileTypes. 

  8. On 8/17/2021 at 2:44 PM, choin said:

    The plugin suffers from the same issue as GIMP, described here https://gitlab.gnome.org/GNOME/gimp/-/issues/5438

     

    This PSD file has clipping masks, which are not available in Paint.NET.

     

    In general, the PSD plugin only implements PSD features that also exist in Paint.NET.  However, masks have long been an exception to the rule.  Masks are a heavily-used feature in PSD files, and discarding the masks would cause a lot of files to look wrong.

     

    Clipping masks are similar to layer masks, and they're even in the same menu group as the layer masks in the Photoshop UI.  This argues strongly for adding clipping masks to the PSD plugin.

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

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

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

  13. 1 hour ago, jimp888 said:

    It simply doesn't recognize psd files. Wont load them and wont save them as psd. Ive downloaded the 2.5.0 and the dll is in the file type folder but it does nothing!

     

    There is not enough information yet to diagnose the problem.

     

    Please post screenshots of File Explorer, opened to the following directories.  Use Detail mode, and maximize the window so we can see filesize and timestamp.

    • C:\Program Files\paint.net
    • C:\Program Files\paint.net\Effects
    • C:\Program Files\paint.net\FileTypes
       
  14. On 5/12/2018 at 7:04 PM, iAviator said:

    i'm getting an error as follows:

     

    PhotoshopFile.PsdInvalidException: Unrecognized layer section type.
       at PhotoshopFile.PsdFile.VerifyLayerSections()
       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

     

    This is not a common error message.  Please send me the PSD file so I can investigate the problem further.  Use the email address at the top of the PSD Plugin web page: https://www.psdplugin.com/

     

    If the file is larger than about 20 MB, please upload it to OneDrive instead and share it with me using that email address.

  15. 2 hours ago, Gerboa said:

    I've definitely had it working before but not on this PC.  I just want to save a PDN file with layers as something I can open in another editor (Affinity Designer).

     

    Windows 7 Enterprise 64-bit

    Paint.Net 4.0.19

    PSD Plugin 2.5.0

     

    I've copied the DLL to the filetypes folder but Photoshop PSD files aren't listed when opening or saving files.

     

    We need some more information to diagnose this problem.

     

    Please post screenshots of Windows Explorer, opened to the following directories.  Use Detail mode, and maximize the window so we can see filesize and timestamp.

    • C:\Program Files\paint.net
    • C:\Program Files\paint.net\Effects
    • C:\Program Files\paint.net\FileTypes
  16. On 2/7/2017 at 5:26 PM, aragond said:

    PSD file is 15.4 MB consisting of several layers of 3,892 x 3528, but I am pretty sure it is all vector layers (not that I'm certain that would make a difference)

    So, that would be 164,771,712 bytes required, right guise?

     

    Well, I have 24GB of memory. I don't think I am likely to run out.

     

     

    It would be 164,771,712 bytes if the file has one layer.

     

    PSD files can contain thousands of layers, so that file could require hundreds of GB of memory to load into Paint.NET.

     

    The problem is that Photoshop has partial layers and Paint.NET doesn't.  Because layers are cheap in Photoshop, graphic designers can use layers like candy.  They'll create a new layer for a 10x10 image element.  When the file is loaded into Paint.NET, that 10x10 layer turns into a full 3892 x 3528 layer.

    • Upvote 1
  17. Codeplex has finally taken action, and files can now be downloaded successfully on Chrome and Firefox.

     

    Due to the quick reporting from users, the PSD Plugin was one of the first projects on Codeplex to workaround the problem.  I also have reason to believe that the operators of Codeplex took action based directly on my recommendations.  Therefore, every project on Codeplex owes a debt of gratitude to the users of the PSD Plugin.  Thank you!

     

    • Upvote 1
  18. It has come to my attention that Codeplex downloads are being blocked in many browsers, including Chrome.  Every download on Codeplex.com is being blocked -- even Microsoft programs like the Windows USB/DVD Download Tool!

     

    If you are running Windows 10, the Edge browser can still download the PSD Plugin successfully.  If you are not using Windows 10, you can download the latest version of the PSD Plugin here: http://www.psdplugin.com/

     

  19. 23 hours ago, DigiScraps said:

    After I downloaded, and unzipped the new plugin files, Windows defender alerted me that it found Malware/Trojan whatever. I immediately quarantined and removed the issue, then deleted the plugin zip files.

     

    Has anyone else ran into this problem? I really need to be able to open my photoshop files in paintnet.

     

    Windows Defender does not alert on PSDPlugin-2.5.0.zip.  VirusTotal also gives it a clean bill of health at 55 different malware scanners: https://www.virustotal.com/en/file/309c44f2ceec555b0efddda81679a54a0bb89fccc38b784cc4c8609e87e4327e/analysis/

     

    The problem may be caused by a browser add-on.  I would suggest using a different web browser to download the plugin.  Windows 10 Edge would be a good choice because it has very few add-ons available.  However, any web browser will do except the one that you normally use.  Make sure to copy-paste the direct link to the download: http://psdplugin.codeplex.com/downloads/get/1606282

     

    If you continue to have this problem even with a different web browser, please do NOT delete the file.  Submit the file to VirusTotal for analysis, and post the URL here.

  20. 12 hours ago, Djisves said:

    I think the timestamp depends on each user's time zone and date format preferences. On my PC it says: 12/09/16 ‏‎05:35

    You're better off advising users to check the version number through the dll properties.

     

    BTW, thank you, taoyue, for as great plugin that I use a lot.

     

    The timestamp check is actually not just to verify the file version, but also to check for side effects.  As we saw above, third-party ZIP tools can have trouble with things that work correctly using the Windows built-in ZIP handler.

     

    The built-in ZIP handler in Windows always extracts files with the time set to the local time zone.  No matter which time zone the user is in, the same times will be displayed in Windows Explorer.  I just tried with my system set to Cyprus time (Eastern European time zone), and it shows the correct time.

  21. 17 hours ago, pn66 said:

    Hopefully these errors will pinpoint the problem.
     

     

    Those errors only appear if you have PSD Plugin 2.4.1 or earlier installed.  If it is showing up, then PSD Plugin 2.5.0 is not installed properly

     

    People seem to be having trouble because upgrading requires that the old version be overwritten.  You don't have to do this on fresh installs, so this problem doesn't come up.

     

    The best workaround is to first delete the old version:

    1. Restart the computer.
    2. Delete Photoshop.dll from C:\Program Files\paint.net\FileTypes
    3. Start Paint.NET and make sure that it cannot open or save PSD files.
    4. Close Paint.NET.

     

    Once this has been done, you can then do a fresh install of PSD Plugin 2.5.0:

    1. Download a fresh copy of PSD Plugin 2.5.0 from: http://psdplugin.codeplex.com/downloads/get/1606282
    2. Right-click the ZIP file and select "Extract All ..."
    3. Make sure PhotoShop.dll has the timestamp: 9/11/2016 10:35 PM
    4. Copy PhotoShop.dll into C:\Program Files\paint.net\FileTypes
  22. DanceERB sent me email separately with the error message.  I am posting here so that you're not left in suspense about the resolution.

     

    The problem was caused by using 7-Zip to extract Photoshop.dll directly into C:\Program Files\paint.net\FileTypes.  This folder requires administrative privileges to write to it.  However, 7-Zip runs as an unprivileged user and does not try to elevate itself to admin.  It just gives an error message.

     

    The workaround is to do a two-stage copy.  First, use 7-Zip to extract the ZIP file to another directory.  Then use Windows Explorer to copy the DLL into C:\Program Files\paint.net\FileTypes.  Windows Explorer will prompt to elevate, so the second copy operation will work.

     

    Incidentally, this is the sort of corner case that third-party utilities often miss.  The ZIP handler that's built-into Windows will prompt to elevate if the user does not have permission to write to a directory.

  23. Version 2.5.0 of the Paint.NET PSD Plugin has been released: http://psdplugin.codeplex.com/

     

    This version requires Paint.NET 4.0.11.

     

    Changes:

    • Faster saving of files with few layers.
    • Loading of PhotoDeluxe files with channel length of 0.
    • Support for PSB Large Documents:
      • Each channel must be smaller than 2,147,483,647 bytes.
      • Although PSB files can go up to 300,000 pixels in either dimension, Paint.NET images are limited to 65,535 pixels.
      • PSB files are automatically saved if either dimension exceeds the 30,000 limit for a PSD file. However, the user must manually change the filename extension from .PSD to .PSB.

    Changes for developers using the PSD Plugin as a library:

    • Saving of 16-bit and 32-bit depth images
    • Image compression using ZIP and ZIP-with-prediction
    • Upvote 4
×
×
  • Create New...