Zagna Posted February 9, 2019 Author Share Posted February 9, 2019 (edited) 1 hour ago, Reptillian said: Here's the name info inside stack.xml in .ora, and it's not they made the patch. I made the patch actually. I'm thinking…. when saving, save either svg:x or pdn:x. When loading, if svg:x fails, split the op at the ':' and then try to load it so that for example krita:glow gets split, ('krita','glow'), ignore the first part and try to load pdn:string[1]. And you could add pdn:glow, pdn:negation & pdn:reflect to Krita's kis_open_raster_stack_load_visitor.cpp? OpenRaster4Test.zip Edited February 9, 2019 by Zagna Quote Link to comment Share on other sites More sharing options...
Reptillian Posted February 9, 2019 Share Posted February 9, 2019 (edited) With that update, only XOR didn't get loaded from Krita ora. I could try to add those to the cpp file whenever I get the chance. Edited February 9, 2019 by Reptillian Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Zagna Posted February 9, 2019 Author Share Posted February 9, 2019 12 minutes ago, Reptillian said: With that update, only XOR didn't get loaded from Krita ora. I could try to add those to the cpp file whenever I get the chance. Krita is saving it as krita:xor instead of svg:xor since XOR is missing from kis_open_raster_stack_save_visitor.cpp. Quote Link to comment Share on other sites More sharing options...
Reptillian Posted February 16, 2020 Share Posted February 16, 2020 (edited) @Zagna I don't know if you're aware of this, but there has been talks on changing the ORA file format specification. You could add your input to any of these links pertaining to .ora file format. I did mentioned about XOR, and Reflect, Glow Blending Modes to InkLab. https://old.reddit.com/r/GIMP/comments/eu0vrq/discussion_on_ora_format_standard_changes/ https://old.reddit.com/r/krita/comments/eu182w/discussion_on_ora_format_standard_changes/ https://krita-artists.org/t/call-for-help-assist-development-of-ora-format-providing-kra-psd-or-other-source-files/3482 Edited February 16, 2020 by Reptillian Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Awing Posted June 10 Share Posted June 10 Does this plugin still work ? I have trouble opening .ora file. If not could the source code of the extension be put in a remote repository like github/gitlab, i'm open to work to repair it but starting from scratch would be a pain ? Quote Link to comment Share on other sites More sharing options...
Tactilis Posted June 10 Share Posted June 10 47 minutes ago, Awing said: I have trouble opening .ora file. You haven't said exactly what "trouble" are you having. Please post any diagnostic text you get when opening fails and post a link to the failing .ora file. 50 minutes ago, Awing said: could the source code of the extension be put in a remote repository like github/gitlab, i'm open to work to repair it but starting from scratch would be a pain ? The source code is provided. Look back through the posts in the thread. Quote Link to comment Share on other sites More sharing options...
Zagna Posted June 10 Author Share Posted June 10 3 hours ago, Awing said: Does this plugin still work ? I have trouble opening .ora file. If not could the source code of the extension be put in a remote repository like github/gitlab, i'm open to work to repair it but starting from scratch would be a pain ? https://github.com/Zagna/openraster_pdn 1 Quote Link to comment Share on other sites More sharing options...
Awing Posted June 14 Share Posted June 14 On 6/10/2024 at 7:03 PM, Tactilis said: You haven't said exactly what "trouble" are you having. Please post any diagnostic text you get when opening fails and post a link to the failing .ora file. Hey, okay sorry. The exception starts by : Exception: System.ArgumentException: Parameter is not valid. at OpenRasterFileType.OraFileType.getBitmapFromOraLayer(Int32 xofs, Int32 yofs, Stream inStream, Int32 baseWidth, Int32 baseHeight) at OpenRasterFileType.OraFileType.OnLoad(Stream input) at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src_5_0_x\Data\FileType.cs:line 491 at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src_5_0_x\Fundamentals\Functional\Func.cs:line 60 here is the link to the file on a drive https://drive.google.com/file/d/1Q9G3dtUd6_DY05jMCXMpQ-HW9N1zaeS7/view?usp=sharing The file was made via GIMP as a way to share it to other image editor while preserving layers. Open it back into GIMP rise no issue with the file itself. Quote Link to comment Share on other sites More sharing options...
Zagna Posted June 15 Author Share Posted June 15 21 hours ago, Awing said: Hey, okay sorry. The exception starts by : Exception: System.ArgumentException: Parameter is not valid. at OpenRasterFileType.OraFileType.getBitmapFromOraLayer(Int32 xofs, Int32 yofs, Stream inStream, Int32 baseWidth, Int32 baseHeight) at OpenRasterFileType.OraFileType.OnLoad(Stream input) at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src_5_0_x\Data\FileType.cs:line 491 at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src_5_0_x\Fundamentals\Functional\Func.cs:line 60 here is the link to the file on a drive https://drive.google.com/file/d/1Q9G3dtUd6_DY05jMCXMpQ-HW9N1zaeS7/view?usp=sharing The file was made via GIMP as a way to share it to other image editor while preserving layers. Open it back into GIMP rise no issue with the file itself. OpenRasterFileType.zip Try this latest version? 1 Quote Link to comment Share on other sites More sharing options...
Awing Posted June 15 Share Posted June 15 3 hours ago, Zagna said: OpenRasterFileType.zip 7.71 kB · 1 download Try this latest version? It now works, thanks ! Quote Link to comment Share on other sites More sharing options...
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.