GIMP Chat
http://gimpchat.com/

Convert Color Photo to Line Art (Plug-in or instructions)
http://gimpchat.com/viewtopic.php?f=15&t=5328
Page 1 of 2

Author:  astromandan [ Sat Sep 22, 2012 2:34 pm ]
Post subject:  Convert Color Photo to Line Art (Plug-in or instructions)

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

Author:  akky [ Sat Sep 22, 2012 2:44 pm ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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.

Author:  mariawendt [ Sat Sep 22, 2012 3:11 pm ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

Isn't there an option to do this in the Gmic plugin?

Author:  brucepr5150 [ Sat Sep 22, 2012 3:24 pm ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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.

Author:  mariawendt [ Sat Sep 22, 2012 3:29 pm ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

Hey, brucepr5150, here's what I got. I'm not sure if that's what astromandan was looking for, but I like it!

Image

Author:  brucepr5150 [ Sat Sep 22, 2012 3:51 pm ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

Or, if you want a b/w line drawing effect you can simply go to Colors menu and choose Threshold.

Author:  Rod [ Sat Sep 22, 2012 4:07 pm ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

GMIC has many different sketch settings in Artistic menu.Try a few of those also. :)

By the way welcome to Gimp Chat!

Author:  Odinbc [ Sat Sep 22, 2012 4:25 pm ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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

Author:  mackenzieh [ Tue Dec 28, 2021 3:46 am ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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

Author:  Wallace [ Tue Dec 28, 2021 6:03 pm ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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 2199 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.

Author:  Jappaloe63 [ Wed Dec 29, 2021 2:09 am ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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 1782 times ]

Author:  rich2005 [ Wed Dec 29, 2021 5:55 am ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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 66 times

Author:  Issabella [ Wed Dec 29, 2021 6:06 am ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

I post my way if someone is interested in it. :paint

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

Author:  Krikor [ Wed Dec 29, 2021 8:49 am ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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

Author:  mackenzieh [ Wed Dec 29, 2021 1:42 pm ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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.

Author:  Chris_x [ Thu Dec 30, 2021 11:19 am ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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

Author:  cli345 [ Thu Dec 30, 2021 4:52 pm ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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 1660 times ]

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

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

Hope this helps!

Author:  Issabella [ Fri Dec 31, 2021 11:02 am ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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 1628 times ]

Author:  cli345 [ Sat Jan 08, 2022 2:57 pm ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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 1554 times ]

Hope this helps!

Author:  Issabella [ Sun Jan 09, 2022 3:34 am ]
Post subject:  Re: Convert Color Photo to Line Art (Plug-in or instructions)

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 1529 times ]

Page 1 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/