It is currently Sun Jul 07, 2024 11:19 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Photo to simple Pencil drawn
PostPosted: Fri Apr 30, 2021 9:36 am  (#1) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 207
GIMP Version: 2.10.22
Operating System: Linux
OS Version: 20.04
GIMP Experience: Intermediate Level

List any relevant plug-ins or scripts:
NA

List any ERROR messages you received:
NA



Hello, I am wondering whether there is any plugin that can generate pencil drawn or line only output from a normal photo ?

I would more than happy if there is some method which will give an output just like we see in newspapers. Someone drew it with a pen or pencil, with single strokes all over.

If that is not possible, kindly help me get the closest match. I can import it to Inkscape and trace using the Bezier pen. Thanks.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Apr 30, 2021 10:12 am  (#2) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 207
I found a good method by using Filters > Edge Detection > Difference of Gaussians ( legacy )


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Apr 30, 2021 10:40 am  (#3) 
Offline
GimpChat Member

Joined: Apr 19, 2021
Posts: 121
Location: France
Does this kind of results suit your needs ?

Original:
Attachment:
small_farm_k7862-1.jpg
small_farm_k7862-1.jpg [ 220.14 KiB | Viewed 4801 times ]

Result:
Attachment:
small_farm_k7862-1_line.jpg
small_farm_k7862-1_line.jpg [ 314.24 KiB | Viewed 4801 times ]

_________________
Photo to cartoon : https://github.com/cl4cnam/gimp_cartoon_plugin


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Apr 30, 2021 12:19 pm  (#4) 
Offline
GimpChat Member

Joined: Apr 19, 2021
Posts: 121
Location: France
I made it this way:
  • Apply "Comic book for 2.10" filter (= my "photo to cartoon" plugin)
  • G'MIC -> Colors -> Curves (Colorspace=Lch) : lower Chroma to 0 everywhere, add a point (32,255) on Lightness

_________________
Photo to cartoon : https://github.com/cl4cnam/gimp_cartoon_plugin


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Apr 30, 2021 12:32 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
I knew it had to be bédé mod. Thanks for hint, the roof needs bit more detail in my opinion, but that can be achieved with another point.


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Apr 30, 2021 1:47 pm  (#6) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 207
cli345 wrote:
Does this kind of results suit your needs ?

Original:
Attachment:
small_farm_k7862-1.jpg

Result:
Attachment:
small_farm_k7862-1_line.jpg


Awesome !!

Where can I find this : (= my "photo to cartoon" plugin)


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Apr 30, 2021 2:04 pm  (#7) 
Offline
GimpChat Member

Joined: Apr 19, 2021
Posts: 121
Location: France
The French version is on my github (see signature) (for Gimp 2.8 and 2.10) (Gimp gets it in Filters->Artistic->Bédé).
The English version (translated by Nidhogg) is here (for Gimp 2.10 only) (Gimp gets it in Filters->Artistic->Comic book for 2.10).

Enjoy! :)

_________________
Photo to cartoon : https://github.com/cl4cnam/gimp_cartoon_plugin


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Apr 30, 2021 4:26 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Oct 02, 2014
Posts: 4518
Location: Sydney Australia
Tin Tran created a plug-in called picture to line art; It may be of use to you so I have attached it below.


Attachments:
picture_to_line_art.zip [1.64 KiB]
Downloaded 108 times

_________________
Image

Respect should be offered freely but hard earned
Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Apr 30, 2021 9:21 pm  (#9) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 207
cli345 wrote:
The French version is on my github (see signature) (for Gimp 2.8 and 2.10) (Gimp gets it in Filters->Artistic->Bédé).
The English version (translated by Nidhogg) is here (for Gimp 2.10 only) (Gimp gets it in Filters->Artistic->Comic book for 2.10).

Enjoy! :)


Thanks. But I am unable to use because the menu is too tall and extends beyond the Window


Attachment:
Screenshot from 2021-05-01 07-50-24.png
Screenshot from 2021-05-01 07-50-24.png [ 312.03 KiB | Viewed 4707 times ]


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Fri Apr 30, 2021 9:27 pm  (#10) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 207
oldmangrumpy wrote:
Tin Tran created a plug-in called picture to line art; It may be of use to you so I have attached it below.

I have added, but not sure where to find it. Thanks.


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 12:51 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Oct 02, 2014
Posts: 4518
Location: Sydney Australia
Should be under Python-Fu>Picture To Line Art.

_________________
Image

Respect should be offered freely but hard earned


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

Joined: Nov 19, 2019
Posts: 207
Not available. The only entry is " console ". I placed it under > .config > GIMP 2.10 > plugins

Thanks.


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 7:10 am  (#13) 
Offline
GimpChat Member

Joined: Apr 19, 2021
Posts: 121
Location: France
Here is a less tall version:
(Warning: this is not a zip file, please remove the 'zip' extension)


Attachments:
bede2.10.py.zip [4.27 KiB]
Downloaded 84 times

_________________
Photo to cartoon : https://github.com/cl4cnam/gimp_cartoon_plugin
Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 10:19 am  (#14) 
Offline
GimpChat Member

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


Thanks. I added bede2.10.py to plugins folder, but there is no entry in Filters > Artistic like before.


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 10:30 am  (#15) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2439
Did you:
Rename the download bede2.10.py.zip (4371B) to bede2.10.py
Using Linux ? Make it executable.

Attachment:
new.jpg
new.jpg [ 116.41 KiB | Viewed 2638 times ]

_________________
Image


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 10:39 am  (#16) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 207
rich2005 wrote:
Did you:
Rename the download bede2.10.py.zip (4371B) to bede2.10.py
Using Linux ? Make it executable.

Attachment:
new.jpg


Thanks. Making it executable works. Sadly, it works but throws an error as seen below

Quote:
Traceback (most recent call last):
File "/tmp/tmp.XJYXAxRbvA/gimp/2.0/python/gimpfu.py", line 740, in response
dialog.res = run_script(params)
File "/tmp/tmp.XJYXAxRbvA/gimp/2.0/python/gimpfu.py", line 361, in run_script
return apply(function, params)
File "/home/veed/.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


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 10:41 am  (#17) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 207
oldmangrumpy wrote:
Should be under Python-Fu>Picture To Line Art.


Making Executable works here too. Thanks


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 10:54 am  (#18) 
Offline
GimpChat Member

Joined: Apr 19, 2021
Posts: 121
Location: France
Which version of G'MIC do you have ? (You need the 2.9.7.)

_________________
Photo to cartoon : https://github.com/cl4cnam/gimp_cartoon_plugin


Top
 Post subject: Re: Photo to simple Pencil drawn
PostPosted: Sat May 01, 2021 10:57 am  (#19) 
Offline
GimpChat Member

Joined: Nov 19, 2019
Posts: 207
I am using the 2.10.25 App Image with plugins -version.

How can I check the G'MIC version ? Thanks


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

Joined: Apr 19, 2021
Posts: 121
Location: France
See G'MIC -> About -> Release Notes.

_________________
Photo to cartoon : https://github.com/cl4cnam/gimp_cartoon_plugin


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

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