It is currently Fri Jun 28, 2024 12:21 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Sat Sep 22, 2012 2:34 pm  (#1) 
Offline
New Member

Joined: Sep 22, 2012
Posts: 1
Hi All, I'm new to the forum and to GIMP. I need to convert a lot of color photographs to line drawings. It seems there must be a plug-in or something that would make this an easy process in GIMP. I can't be the only person who has ever needed to do this! Any help would be greatly appreciated.
Dan


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: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Sat Sep 22, 2012 2:44 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2011
Posts: 1764
HI astromandan. Welcome to GIMP chat...theres lots of ways to do this but I am sure the wise owls here will be able to help you out with some tutorial suggestions.


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Sat Sep 22, 2012 3:11 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Sep 03, 2012
Posts: 171
Isn't there an option to do this in the Gmic plugin?

_________________
“For man, as for flower and beast and bird, the supreme triumph is to be most vividly, most perfectly alive.” David Herbert Lawrence


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Sat Sep 22, 2012 3:24 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 07, 2012
Posts: 41
Location: Detroit, MI
When you have your image, duplicate that image. Highlight the 'bottom' copy and go to Filters - emboss. Leave on default settings and 'OK'. Then highlight the 'top' layer and up above the layers is a dropdown menu labelled Mode: Normal. Change Normal to Dodge. I'm sure after you finish several images it will go quickly.


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Sat Sep 22, 2012 3:29 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Sep 03, 2012
Posts: 171
Hey, brucepr5150, here's what I got. I'm not sure if that's what astromandan was looking for, but I like it!

Image

_________________
“For man, as for flower and beast and bird, the supreme triumph is to be most vividly, most perfectly alive.” David Herbert Lawrence


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Sat Sep 22, 2012 3:51 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Sep 07, 2012
Posts: 41
Location: Detroit, MI
Or, if you want a b/w line drawing effect you can simply go to Colors menu and choose Threshold.


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Sat Sep 22, 2012 4:07 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
GMIC has many different sketch settings in Artistic menu.Try a few of those also. :)

By the way welcome to Gimp Chat!

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Sat Sep 22, 2012 4:25 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Here's a couple
quick-sketch.scm
http://registry.gimp.org/node/5921

lasm-line-art.scm (with no texture)
http://gimpfx-foundry.sourceforge.net/b ... ne-art.scm

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Tue Dec 28, 2021 3:46 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
Odinbc wrote:
Here's a couple
quick-sketch.scm
http://registry.gimp.org/node/5921

lasm-line-art.scm (with no texture)
http://gimpfx-foundry.sourceforge.net/b ... ne-art.scm


The line art script throws these errors:
Image


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Tue Dec 28, 2021 6:03 pm  (#10) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13068
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Using the approach described below.
I managed to get this result.
Your mileage may vary.

Attachment:
sample_oo.png
sample_oo.png [ 408.98 KiB | Viewed 2175 times ]



Image To Line Art

Duplicate image 2 times.

Top layer: Reduce saturation to -100.
Set layer mode to saturation.

Middle layer: Set layer mode to dodge.
Invert color, Gaussian Blur image.
Note: Image size determines the amount of blur.

Bottom Layer: Adjust color levels as desired.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Wed Dec 29, 2021 2:09 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 06, 2020
Posts: 343
Location: The Netherlands
If you have G'mic then you can get this result at Artistic> Comic book.


Attachments:
comic book.png
comic book.png [ 62.64 KiB | Viewed 1758 times ]
Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Wed Dec 29, 2021 5:55 am  (#12) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2435
A fix for the more obvious syntax changes, script attached. Originally for Gimp 2.4

What does not work? gimpressionist - maybe someone can find out why. Even the script says
Tip: If you do not have a good Gimpressionist preset, simply hit cancel at the Gimpressionist dialog window, and you will still get a good greyscale line-art." So best way is just disable that option.

No doubt it can be broken in use, but a quick demo. https://i.imgur.com/6l9uADh.mp4

...but as pointed out, there are plenty of other options.


Attachments:
lasm-line-art-updt.scm [20.49 KiB]
Downloaded 65 times

_________________
Image
Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Wed Dec 29, 2021 6:06 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12705
Location: Spain, Aragón
I post my way if someone is interested in it. :paint


Attachments:
Photo_To_Art_Line by Issa.pdf [1.41 MiB]
Downloaded 93 times
B&W_Art_Line_Result.jpg
B&W_Art_Line_Result.jpg [ 285.16 KiB | Viewed 1734 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Wed Dec 29, 2021 8:49 am  (#14) 
Offline
GimpChat Member

Joined: Dec 19, 2018
Posts: 158
Just indicating another option among the many available:

Tim Tran's Plugin - Picture To Liene Art
Plugin Picture To Line Art
https://gimplearn.net/viewtopic.php?p=3522#p3522

It has worked on all the latest versions of Gimp I've used and even on this current one 2.10.28


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Wed Dec 29, 2021 1:42 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
rich2005 wrote:
A fix for the more obvious syntax changes, script attached. Originally for Gimp 2.4

What does not work? gimpressionist - maybe someone can find out why. Even the script says
Tip: If you do not have a good Gimpressionist preset, simply hit cancel at the Gimpressionist dialog window, and you will still get a good greyscale line-art." So best way is just disable that option.

No doubt it can be broken in use, but a quick demo. https://i.imgur.com/6l9uADh.mp4

...but as pointed out, there are plenty of other options.


I downloaded the updated version but it doesn't show up in FX Foundry-->Artistic or in Script-Fu->Lasm's FX Effects->Line Art as the script states when looking into the code. I'm using gimp 2.10.30 on windows 10 64 bit.


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Thu Dec 30, 2021 11:19 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Aug 27, 2021
Posts: 13
Location: Chesterfield, UK
If it is not necessary to strictly keep to line only: allowing representation of tonal values for example by stippling, there are more options, this being a good retro one:
https://wiki.evilmadscientist.com/Produ ... _with_Gimp

and more to be found by searching on this site and wider

it is difficult to match drawing for line, even with artificial intelligence, occasionally something original and better than a drawing or a good inspiration for a drawing can be created using digital photo manipulation

I am a believer in if you can write you can draw or if you can talk you can sing but most people haven't got the time for the learning curve, often because they are busy helping other people

for me Matisse, Picasso and Japanese sumi-e set the bar high


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Thu Dec 30, 2021 4:52 pm  (#17) 
Offline
GimpChat Member

Joined: Apr 19, 2021
Posts: 121
Location: France
Hello! :)
Here is yet another way:
  • Filters -> G'Mic -> Artistic -> Comic Book
  • Filters -> G'Mic -> Various -> Custom Code [Global]
    and paste
    fx_blackandwhite. 0.299,0,0.587,0,0.114,0,0,0,0,0,0,0,0,0,2,0,0,0,16,4,0,0,0,50,50
    otsu. 4 n. 0,255

Here are examples:
Attachment:
giraffe_photo_small_lineArt2.jpg
giraffe_photo_small_lineArt2.jpg [ 78.58 KiB | Viewed 1636 times ]

Attachment:
wolf_on_ridge_small_lineArt2.jpg
wolf_on_ridge_small_lineArt2.jpg [ 66.45 KiB | Viewed 1636 times ]

Attachment:
kitten_white_sitting_small_lineArt2.jpg
kitten_white_sitting_small_lineArt2.jpg [ 72.76 KiB | Viewed 1636 times ]

Hope this helps!

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


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Fri Dec 31, 2021 11:02 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12705
Location: Spain, Aragón
Thank you so much cli345; it works great! :coolthup


Attachments:
87383dd1bee11c1bb_Art_Line_by cli345's code.jpg
87383dd1bee11c1bb_Art_Line_by cli345's code.jpg [ 160.38 KiB | Viewed 1604 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Sat Jan 08, 2022 2:57 pm  (#19) 
Offline
GimpChat Member

Joined: Apr 19, 2021
Posts: 121
Location: France
Happy to help and thanks also for your way! :)

Here is yet another way:
  • Filters -> G'Mic -> Artistic -> Comic Book
  • Filters -> G'Mic -> Various -> Custom Code [Global]
    and paste
    if s==4 split_opacity. rm. fi
    +colormap. 8
    index.. [-1],0,1
    rm.
    rgb2hsl. split. c
    n. 0,1
    append c hsl2rgb
    fx_blackandwhite. 0.299,0,0.587,0,0.114,0,0,0,0,0,0,0,0,0,2,0,0,0,16,4,0,0,0,50,50
    fx_curves_interactive. 7,0,1,"7","0,0,20,80,100,100,-1,0,0,100,0,-1,0,0,100,100,-1,0,0,100,100,-1"

Here are examples:
Attachment:
examplesLineArt.jpg
examplesLineArt.jpg [ 199.41 KiB | Viewed 1530 times ]

Hope this helps!

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


Top
 Post subject: Re: Convert Color Photo to Line Art (Plug-in or instructions)
PostPosted: Sun Jan 09, 2022 3:34 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12705
Location: Spain, Aragón
cli345, thanks again. Yes, the second code helps a lot. I see the lines being thinner with a nice result. :coolthup :tyspin


Attachments:
Original_Art_Line_2nd_code.jpg
Original_Art_Line_2nd_code.jpg [ 291.58 KiB | Viewed 1505 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Calling GIMP Plug-in From Command Line - on Windows

0

No new posts Attachment(s) How to restore the photo with more black color

23

No new posts Attachment(s) How to restore color and increase sharpness on old photo

0

No new posts Attachment(s) convert a gbr bristles to abr

2

No new posts Attachment(s) GEGL Color Light Fusion (12 blend modes for color overlay)

9



* Login  



Powered by phpBB3 © phpBB Group