It is currently Tue May 07, 2024 12:17 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 35 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 11:35 am  (#21) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2425
The 2.10.25 AppImage (with plugins) still uses the old 2.9.2 gmic_gimp_qt plugin. Which version ? Apart from top of the gmic window, hover the mouse over the gmic menu entry (with an open image).

Attachment:
appimage.jpg
appimage.jpg [ 24.21 KiB | Viewed 2646 times ]


I think you updated recently to 'buntu 20.04. Get the ubuntu 20.04 zip from http://www.gmic.eu
https://www.fosshub.com/GMIC.html?dwl=g ... _amd64.zip
Unzip it and put it in your Gimp user profile ~/.config/GIMP-AppImage/2.10/plug-ins/

Attachment:
297.png
297.png [ 63.11 KiB | Viewed 2646 times ]


That is what I am using here. If still on 'buntu 18.04 then you need the plugin I compile. Let me know which version.

_________________
Image


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 11:38 am  (#22) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 199
Thanks @rich2005

As per the method described before it showed 2.9.6

I will try the zip to plugin folder. So nice of you to help :)


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 11:45 am  (#23) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 199
rich2005 wrote:
The 2.10.25 AppImage (with plugins) still uses the old 2.9.2 gmic_gimp_qt plugin. Which version ? Apart from top of the gmic window, hover the mouse over the gmic menu entry (with an open image).

Attachment:
appimage.jpg


I think you updated recently to 'buntu 20.04. Get the ubuntu 20.04 zip from http://www.gmic.eu
https://www.fosshub.com/GMIC.html?dwl=g ... _amd64.zip
Unzip it and put it in your Gimp user profile ~/.config/GIMP-AppImage/2.10/plug-ins/

Attachment:
297.png


That is what I am using here. If still on 'buntu 18.04 then you need the plugin I compile. Let me know which version.


Hi, this is a new 20.04 installation on a desktop I have. I unzipped and added it to 2.10 > plug-in folder. Sadly, the old GMIC qt is also gone from the menu. I am not sure how to proceed. Thanks.

PS :It is set as executable.

PS 2 : Looks like it is a permission issue. Should I try 644 ?

Update 1 - I set the permission to 644 and the menu entry under filters is back. But upon hovering, it says 2.9.2.


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 11:56 am  (#24) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2425
It is probably a QT5 issue. The required lib files not installed. Easier for me since I use kubuntu and QT5 is already there. Try

sudo apt install libqt5core*  libqt5widgets5*


should pull in the required dependencies.

Your chmod should be 747 (644 marks it non-executable ;) )

_________________
Image


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 12:35 pm  (#25) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 199
Tried the command and used 777. There is no entry for gmic at all under Filters :(

Thanks.

PS : I installed a deb package for 2.9.7 gmic from FOSSHub and can open it through Activities.

Update 1:

$ ./gmic_gimp_qt
./gmic_gimp_qt is a GIMP plug-in and must be run by GIMP to be used


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 2:01 pm  (#26) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 199
The owner of the file is Me

I tried using

sudo chown username gmic_gimp_qt


But the owner is still Me

Then I tried sudo bash and used the above command. Sadly, the owner is still Me.


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 2:09 pm  (#27) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2425
If you are using an appimage, you can not install gmic_gimp_qt from a deb. It installs to /usr/lib/GIMP/...something-or-other and probably tries to install a regular Gimp as well. As with any other Gimp plugin, you can not run it on its own, only via the Gimp menu structure.

I am trying to switch from kubuntu 18.04 to kubuntu 20.04 (new laptop) and for some reason everything seems a problem with 20.04 Beginning to hate ubuntu.

The Gimp 2.10.25 appimage does use the ubuntu 18.04 plugin. The regular one does give errors. All to do with the QT5 versions. I should have remembered that, a similar problem came up recently.

You can get gmic_gimp_qt 2.9.8 from here on my storage:
https://u.pcloud.link/publink/show?code ... lGrJGFii8V
This is the latest from a couple of days ago.

This a demo of the appimage + the gmic plugin + the comicbook plugin. Very basic and short.

https://youtu.be/HAUF_YKJQg4 Might help

edit: definitely packing in for the day, had enough ;)

_________________
Image


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 6:17 pm  (#28) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Thanks rich2005 for the compiled version of gmic_gimp_qt 2.9.8. Works fine for PPA version of Gimp, but still reports errors on AppImage of Gimp even though it works correctly.

BTW, here's my version of B/W comic drawing of original image:

Attachment:
Bike16.jpg
Bike16.jpg [ 808.33 KiB | Viewed 2592 times ]


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sun May 02, 2021 1:56 am  (#29) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 199
Now everything is working fine. Except for the pencil-like line art style. I tried the G'MIC > Curve option but it taking a life time to convert the comic like output and it never ends.

Thanks for your time.


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Jun 25, 2021 2:37 am  (#30) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 199
cli345 wrote:
Here is a less tall version:
(Warning: this is not a zip file, please remove the 'zip' extension)


Hi, I got everything working. But today, I got an error while using the plugin

Quote:
Traceback (most recent call last):
File "/tmp/tmp.Yn1vXJkgGt/gimp/2.0/python/gimpfu.py", line 740, in response
dialog.res = run_script(params)
File "/tmp/tmp.Yn1vXJkgGt/gimp/2.0/python/gimpfu.py", line 361, in run_script
return apply(function, params)
File "/home/myPC/.config/GIMP-AppImage/2.10/plug-ins/bede2.10.py", line 34, in bd
pdb.plug_in_gmic_qt(img, layer, 1, 0, '-fx_curves_interactive 7,0,1,7,0,0,'+pointLum+',100,100,-1,0,0,'+pointSat+',100,100,-1,0,0,100,100,-1,0,0,100,100,-1,')
RuntimeError: cancelled


If possible, please help me solve it.


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Jun 25, 2021 3:38 am  (#31) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2425
I can reproduce that error with the linux appimage.

First, I hope you are using an up-to-date gmic_gimp_qt plugin (for appimage QT5 version) You can get one from https://www.gimp-forum.net/Thread-gmic- ... untu-18-04

After latest compile (18 June), I noticed that the updated, update298.gmic (4,563,169 B) breaks some filters.

Fortunately had a backup of the old file. (4,515,900 B)
Download this https://u.pcloud.link/publink/show?code ... ObzX1Hfxm7
Unzip and replace the file in ~/.config/gmic Still the same number of filters, 568.

If you have gmic set for automatic updates (daily / weekly...) my advice, turn it off. Look in gmic Settings -> Other -> Internet Updates You still have the option to update manually (but do not do it for the moment ;) )

_________________
Image


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Jun 25, 2021 10:28 pm  (#32) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 199
Hi @rich2005 Thanks. I have been using the same app image for around 3 months now. Does AppImage and plugins used get auto updated ? Everything was working fine.

Edit : Not my doing. But the update is set as " Weekly "


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat Jun 26, 2021 4:20 am  (#33) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2425
See: the previous post #31 You need to replace the current update298.gmic which is causing problems with this one. https://u.pcloud.link/publink/show?code ... ObzX1Hfxm7

_________________
Image


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Jul 02, 2021 2:58 am  (#34) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 776
Location: SEA - South East Asia
meetdilip wrote:
But today, I got an error while using the plugin

Quote:
Traceback (most recent call last):
File "/tmp/tmp.Yn1vXJkgGt/gimp/2.0/python/gimpfu.py", line 740, in response
dialog.res = run_script(params)
File "/tmp/tmp.Yn1vXJkgGt/gimp/2.0/python/gimpfu.py", line 361, in run_script
return apply(function, params)
File "/home/myPC/.config/GIMP-AppImage/2.10/plug-ins/bede2.10.py", line 34, in bd
pdb.plug_in_gmic_qt(img, layer, 1, 0, '-fx_curves_interactive 7,0,1,7,0,0,'+pointLum+',100,100,-1,0,0,'+pointSat+',100,100,-1,0,0,100,100,-1,0,0,100,100,-1,')
RuntimeError: cancelled


If possible, please help me solve it.


some python file using G'MIC will need to be updated for G'MIC 2.9.8

https://discuss.pixls.us/t/bug-latest-g ... 7?u=pixlab

From David Tschumperle:
Quote:
That’s because with 2.9.8, the correct filter command is :

fx_curves_interactive 7,0,1,7,"0,0,40,60,100,100,-1,0,0,30,70,100,100,-1,0,0,100,100,-1,0,0,100,100,-1,-1,0,0,100,100"

(note the double quotes).


also from grosgood in the same thread

Quote:
-fx_curves_interactive changed such that the two numeric parameters before the final double-quoted parameter should be removed.


which mean that Line 35 should be changed there https://github.com/cl4cnam/gimp_cartoon ... ede2.10.py to reflect the G'MIC changes

_________________
Patrice


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Jul 02, 2021 4:07 am  (#35) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2425
Current stable gmic_gimp_qt 2.9.7 users should not worry it is a pre-release 2.9.8 issue.

That fixes it for the pre-release gmic_gimp_qt 2.9.8 because of the nested quotes you need a mix of single and double.

   pdb.plug_in_gmic_qt(img, layer, 1, 0, "fx_curves_interactive 7,0,1,'7','0,0,'+pointLum+',100,100,-1,0,0,'+pointSat+',100,100,-1,0,0,100,100,-1,0,0,100,100'")


That leading dash as in -fx no longer required. It is a problem using gmic in a gimp plugin, gmic evolves rapidly and what works today might not tomorrow. I would not be all that surprised if gmic version 3.0 arrives soon.

_________________
Image


Top
Post new topic Reply to topic  [ 35 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts merging two pencil drawings

11

No new posts The Pencil feature does not work...

11

No new posts Attachment(s) Pencil drawing style

1

No new posts Attachment(s) Color or B&W pencil drawing effect

6

No new posts Edit stroke made by pencil tool

3



* Login  



Powered by phpBB3 © phpBB Group