Jump to content
How to Install Plugins ×

OpenRaster Filetype


Zagna

Recommended Posts

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 by Zagna

sig2024.jpg.4c3dd6a1ed919373afa78c73a19ed629.jpg

Link to comment
Share on other sites

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 by Reptillian

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

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. 

sig2024.jpg.4c3dd6a1ed919373afa78c73a19ed629.jpg

Link to comment
Share on other sites

  • 1 year later...

@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 by Reptillian

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

  • 4 years later...

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 ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

 

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?

  • Thanks 1

sig2024.jpg.4c3dd6a1ed919373afa78c73a19ed629.jpg

Link to comment
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...