null54

G'MIC (06-15-2020)

Recommended Posts

@null54 I know that if I need to recreate one of my filters and convert it to pdn plugin, I'd do it from scratch. However, I'm wondering if it is possible to wrap gmic code within codelab. That would make it so much easier to convert filters in theory.

Share this post


Link to post
Share on other sites
1 hour ago, Reptillian said:

However, I'm wondering if it is possible to wrap gmic code within codelab. That would make it so much easier to convert filters in theory.

 

It should be possible to write a C++ DLL that uses libgmic, but you would have to call G'MIC in CodeLab's PreRender method.

 

I considered doing that when I wrote this plugin, but I decided it was easier to use G'MIC-Qt.

Writing the automatic UI generation code required for Paint.NET to natively use the G'MIC filters would be complicated.

Share this post


Link to post
Share on other sites
15 hours ago, null54 said:

 

It should be possible to write a C++ DLL that uses libgmic, but you would have to call G'MIC in CodeLab's PreRender method.

 

I considered doing that when I wrote this plugin, but I decided it was easier to use G'MIC-Qt.

Writing the automatic UI generation code required for Paint.NET to natively use the G'MIC filters would be complicated.

 

Yes, I was thinking of using PreRender method to call G'MIC-QT for converting filter. I'm not concerned with the user interface code as that's way easier to deal with. I'm more concerned with being able to access commands from g'mic-qt itself and using g'mic-qt commands.

Share this post


Link to post
Share on other sites

I hope someone can tell me what I'm doing wrong. I tried to use the plugin for the first time. Most of the filters work fine but I cannot get the Stylize filter to work.

 

I understand that I need to copy one layer to the clipboard and then apply the filter on another layer. As per @null54's instructions here, I copied the bottom layer and applied the filter on the top layer. I tried with a small image (180*198 px) of just two layers. I also tried it as per @Pixey's short video here, i.e. copied the top layer and applied the filter on the bottom layer. I tried all the combinations of copying one and working on the other, including switching between the "top" and "bottom" options on the filter's "Style" dropdown list.

 

Every time I get this:

75xKJdR.png

 

Share this post


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

I hope someone can tell me what I'm doing wrong

 

You need to switch the input layers to All for G'MIC to be able to recognize the second layer.

  • Upvote 1

Share this post


Link to post
Share on other sites

Incoming update 2.9.1 tommorow.

 

Quote

Hello folks,


I’ve added a new command in the standard library of G’MIC 2.9.1, and I think this could interest some of the G’MIC script writers here. I’m pretty sure this could lead to fun experimentations
Release of stable G’MIC 2.9.1 is planed for tomorrow.

 

Source: https://discuss.pixls.us/t/new-interesting-command-rbf-to-interpolate-1d-2d-3d-data/18663

Edited by Reptillian

Share this post


Link to post
Share on other sites

Hi @null54 I hope all is well with you, wherever you are :)

 

I have a question about opening two images in G'MIC.  I was trying help someone with a question earlier, so I tried to see if I could use the Morph in G'MIC.  I realise one needs to have two images for this, but when I try to do this, I get this:

 

2-roses-question.png

 

 

Share this post


Link to post
Share on other sites

It's a bit confusing, @Pixey. You need to press APPLY for two new windows to open in order to set the morphing anchor points.

 

EDIT: As @ReMake has already said before me  😁 

 

Edited by Djisves
ReMake comment link
  • Upvote 1

Share this post


Link to post
Share on other sites

@Pixey As far as I'm concerned, Paint.NET can only output to the same layer a plugin applies the effect on. So, this means that the filter needs workaround support akin to filters I have made workarounds for Paint.NET such as Non-Isometric Tiler and Tiled Form. I will notify @G'MIC as he is the author of the Morph[Interactive] filter. He can edit the current filter, and please notify the author of another thread asking for help on Morph that I have notified @G'MIC about this issue. So, it would be possible to generate multiple pictures generated from the Morph [Interactive] and output into a folder once this gets addressed.

Edited by Reptillian

Share this post


Link to post
Share on other sites

Hi @Reptillian the OP seemed to suggest that they had managed to use the Morph[interactive] but that they did not know how to save it?  If they got that far, it seems to suggest they got it to work.  A mystery to me.

 

 

 

Share this post


Link to post
Share on other sites
9 minutes ago, Pixey said:

Hi @Reptillian the OP seemed to suggest that they had managed to use the Morph[interactive] but that they did not know how to save it?  If they got that far, it seems to suggest they got it to work.  A mystery to me.

 

 

 

Saving it implies multiple output pictures. On Krita and GIMP, when you work with g'mic-qt filters that generates multiple layers from the interface, you get outputs of multiple layers. That is not possible on Paint.NET. Hence, why I was contacting one of the main maintainer of g'mic-qt to add a option to allow exports into a folder into Morph [Interactive], so @zaffer can save the outputs.

Edited by Reptillian

Share this post


Link to post
Share on other sites
4 minutes ago, Reptillian said:

Saving it implies multiple output pictures. On Krita and GIMP, when you work with g'mic-qt filters that generates multiple layers from the interface, you get outputs of multiple layers. That is not possible on Paint.NET. Hence, why I was contacting one of the main maintainer of g'mic-qt to add a option to allow exports into a folder, so @zaffer can save the outputs.

 

Ahhh - so it's rather like TR's morpher, which produces multiple layers, which then have to be uploaded to PDN to make it animated.

 

It would be nice to do the same in G'MIC too :)  Thanks.

Share this post


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.