It is currently Fri Jun 12, 2026 9:11 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 810 posts ]  Go to page Previous  1 ... 11, 12, 13, 14, 15, 16, 17 ... 41  Next
Author Message
 Post subject: Re: Playing with my photos
PostPosted: Sat Jun 10, 2023 9:50 am  (#271) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2014
Posts: 875
@Issabella,

Perhaps you might like to try the latest variation. I have modified the Picture to Line Art plug-in to include the option to set a paper-colour.
(Apologies to Tim for mutilating his script yet again!!!)

Attached is the script. Comments, suggestions and criticisms are most welcome!

Attachment:
picture_to_line_art.zip [2.06 KiB]
Downloaded 29 times


Edit: The file is now updated to the latest version.
The changes:
1. If there is a pre-existing selection it is saved to a channel for future use.
2. Added the option to select an "ink" colour in addition to the "paper" colour.
3. The layers have been renamed, hopefully to something more meaningful.

Altering the opacity of any of the layers (except the base layer) can create a wide range of effects.


Last edited by david on Mon Jun 12, 2023 11:23 am, edited 1 time in total.

Top
 Post subject: Re: Playing with my photos
PostPosted: Sat Jun 10, 2023 10:24 am  (#272) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14020
Location: Spain, Aragón
Thank you so much David. My comment; It's easier and practical your plug-in. Nice results.
Of course, Thanks Tin. I love this effect so much.
Thanks to both of you. :tyspin


Attachments:
river-view_David_Picture_Line_Art.jpg
river-view_David_Picture_Line_Art.jpg [ 959.2 KiB | Viewed 696 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: Playing with my photos
PostPosted: Sat Jun 10, 2023 10:57 pm  (#273) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 734
Very nice river view lineart Issabella.

Lyle and Issabella, Thank you for your nice comments :)

David, I too like your line art made from image IMG_5611

Thank you for the picture_to_line_art plugin. I tried the version you uploaded to post #271 with IMG_5611 but it made the first copy layer all black.

After comparing with an older version of the plugin I think it's caused by this line:
pdb.gimp_drawable_curves_spline(layer_copy, HISTOGRAM_VALUE, 6, [0, 0, 157, 110, 255, 255])

which was this in the older version that worked for me:
pdb.gimp_curves_spline(layer_copy, HISTOGRAM_VALUE, 6, [0, 0, 157, 110, 255, 255])

I took a guess and tried the following which gave a result like the old version:
pdb.gimp_drawable_curves_spline(layer_copy, HISTOGRAM_VALUE, 6, [0.0, 0.0, 0.615, 0.431, 1.0, 1.0])

I don't know why that is in my case when it's working for you and Issabella.


Top
 Post subject: Re: Playing with my photos
PostPosted: Sun Jun 11, 2023 1:56 am  (#274) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14020
Location: Spain, Aragón
Sorry. I must clarify that I did my test with David's plug-in having previously removed Tim's. The two plug-ins were not together in my folder when I did my test.
Teapot, try to remove Tim's plug-in and leave David's to do your test.

_________________
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: Playing with my photos
PostPosted: Sun Jun 11, 2023 2:21 am  (#275) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2014
Posts: 875
@teapot,

Thanks for your valuable feedback. The reason for the difference, I believe, is that your colour selector is set to specify colours as floating-point numbers, whereas mine uses the range 0-255.

I am working on a solution, but don't hold your breath!!!

I also discovered that I had forgotten in the script to convert greyscale images to RGB, which results in the paper-colour not appearing. This will be corrected in the next revision.


Top
 Post subject: Re: Playing with my photos
PostPosted: Sun Jun 11, 2023 7:23 am  (#276) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2014
Posts: 875
@teapot,

Despite spending most of the day on this problem, I have not yet been able to come up with a solution!

I have attached my latest version which, at least, now works for greyscale images.

Attachment:
picture_to_line_art.zip [1.67 KiB]
Downloaded 29 times


Edit: See #271 (above) for the latest version.


Last edited by david on Mon Jun 12, 2023 11:25 am, edited 1 time in total.

Top
 Post subject: Re: Playing with my photos
PostPosted: Sun Jun 11, 2023 7:26 am  (#277) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2014
Posts: 875
Two more photos - these are ones that I found difficult to achieve the result I wished for.

Attachment:
IMG_5581_1.JPG
IMG_5581_1.JPG [ 2.68 MiB | Viewed 650 times ]


Attachment:
IMG_5603_1.JPG
IMG_5603_1.JPG [ 5.23 MiB | Viewed 650 times ]


Top
 Post subject: Re: Playing with my photos
PostPosted: Sun Jun 11, 2023 8:45 am  (#278) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14020
Location: Spain, Aragón
You got it! David. The green plant took relevance with the background. The little bird is nicer. :hi5
I post these tw more photos.
One, it is part of the facade of the Cathedral of my city.
Other one it's from the garden of a friend of mine.
Last one it is a result with David's plug-in ( I love it)


Attachments:
IMG_7847.jpg
IMG_7847.jpg [ 618.71 KiB | Viewed 644 times ]
3db130dd-9347-4170-b6f5-148040117c7a.JPG
3db130dd-9347-4170-b6f5-148040117c7a.JPG [ 358.04 KiB | Viewed 644 times ]
Calle Alfonso-Zaragoza_LineArt_Issa.jpg
Calle Alfonso-Zaragoza_LineArt_Issa.jpg [ 503.44 KiB | Viewed 644 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: Playing with my photos
PostPosted: Sun Jun 11, 2023 9:47 am  (#279) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14831
Location: roma, italy
My plays on your last two photos, Issa.

Attachment:
3db130dd-9347-4170-b6f5-148040117c7a_dn1.jpg
3db130dd-9347-4170-b6f5-148040117c7a_dn1.jpg [ 914.17 KiB | Viewed 640 times ]

Attachment:
IMG_7847_dn1.jpg
IMG_7847_dn1.jpg [ 1.83 MiB | Viewed 640 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: Playing with my photos
PostPosted: Sun Jun 11, 2023 10:08 am  (#280) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14831
Location: roma, italy
...or
Attachment:
3db130dd-9347-4170-b6f5-148040117c7a_dn2.jpg
3db130dd-9347-4170-b6f5-148040117c7a_dn2.jpg [ 1.14 MiB | Viewed 636 times ]

Attachment:
IMG_7847_dn2.jpg
IMG_7847_dn2.jpg [ 1.09 MiB | Viewed 636 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: Playing with my photos
PostPosted: Sun Jun 11, 2023 11:32 am  (#281) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2014
Posts: 875
I like this plug-in, but it is not mine - the credit for it must go to Tim. I have made only small modifications.

Attachment:
Calle Alfonso-Zaragoza_LineArt_Issa_1.jpg
Calle Alfonso-Zaragoza_LineArt_Issa_1.jpg [ 972.61 KiB | Viewed 853 times ]


Attachment:
3db130dd-9347-4170-b6f5-148040117c7a_1.JPG
3db130dd-9347-4170-b6f5-148040117c7a_1.JPG [ 701.39 KiB | Viewed 853 times ]


Attachment:
IMG_5632_1.JPG
IMG_5632_1.JPG [ 3.56 MiB | Viewed 853 times ]


Top
 Post subject: Re: Playing with my photos
PostPosted: Sun Jun 11, 2023 11:34 am  (#282) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2014
Posts: 875
Attachment:
IMG_5636_1.JPG
IMG_5636_1.JPG [ 3.05 MiB | Viewed 853 times ]


Attachment:
IMG_5637_1.JPG
IMG_5637_1.JPG [ 1.6 MiB | Viewed 853 times ]


Attachment:
IMG_7847_1.jpg
IMG_7847_1.jpg [ 1.04 MiB | Viewed 853 times ]


Top
 Post subject: Re: Playing with my photos
PostPosted: Sun Jun 11, 2023 1:45 pm  (#283) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 734
Loving the lineart from everyone :jumpclap

david wrote:
@teapot,

Despite spending most of the day on this problem, I have not yet been able to come up with a solution!

Thank you for looking into this. I have just now asked for help here:
https://www.gimp-forum.net/Thread-gimp- ... ints-range


Top
 Post subject: Re: Playing with my photos
PostPosted: Sun Jun 11, 2023 3:35 pm  (#284) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1837
Went to Bermuda last year and used G'mic B/W pencil:
Attachment:
Bermuda.JPG
Bermuda.JPG [ 458.77 KiB | Viewed 834 times ]

Attachment:
Bermuda-bw.JPG
Bermuda-bw.JPG [ 644.58 KiB | Viewed 834 times ]


Top
 Post subject: Re: Playing with my photos
PostPosted: Mon Jun 12, 2023 3:05 am  (#285) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12775
OK; got Impressionist plugin to work in GIMP again (have to, from time to time, edit the PSPI.ini file and hope it sticks). Thought I would use my Van Gogh present and then bumped up a notch via G'MIC and a few other things. :)


Attachments:
vg.jpg
vg.jpg [ 2.2 MiB | Viewed 807 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Playing with my photos
PostPosted: Mon Jun 12, 2023 3:11 am  (#286) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2014
Posts: 875
@teapot,

Thank you for your efforts in resolving this problem.

This morning I changed to your values - pdb.gimp_drawable_curves_spline(layer_copy, HISTOGRAM_VALUE, 6, [0.0, 0.0, 0.615, 0.431, 1.0, 1.0]) - the result was almost identical to the 255 based numbers. (Actually with your numbers the colour was slightly more intense. Perhaps from rounding errors in the conversion.)

If we can confirm that the floating-point values work for other people, I will change the plug-in.


Top
 Post subject: Re: Playing with my photos
PostPosted: Mon Jun 12, 2023 6:24 am  (#287) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2014
Posts: 875
@Issabella,
Could you please try the attached version of picture to line art and tell me if it works OK for you.

@teapot,
The attached version uses your values for the histogram, so it should work for you as it does for me.

If this script is OK for the three of us, I will follow it with a cleaned-up and extended version which I am testing today.

Attachment:
picture_to_line_art.zip [1.7 KiB]
Downloaded 28 times


Edit: #271 of this thread updated to the latest version.


Last edited by david on Mon Jun 12, 2023 11:27 am, edited 1 time in total.

Top
 Post subject: Re: Playing with my photos
PostPosted: Mon Jun 12, 2023 10:10 am  (#288) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14020
Location: Spain, Aragón
:paint :coolthup Congrats David. I see even better result, I think.
It works great for me. Paper ffff00 as you said.


Attachments:
mountains-Lake_David's Art Line.jpg
mountains-Lake_David's Art Line.jpg [ 1.54 MiB | Viewed 783 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: Playing with my photos
PostPosted: Mon Jun 12, 2023 10:52 am  (#289) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14020
Location: Spain, Aragón
Dinasset, David and Lyle, Thanks for your outcomes. :clap
David, I have your last version. and the previous one


Attachments:
IMG_5657.JPG
IMG_5657.JPG [ 4.87 MiB | Viewed 779 times ]
IMG_5645.JPG
IMG_5645.JPG [ 1.67 MiB | Viewed 779 times ]
IMG_5655.JPG
IMG_5655.JPG [ 3.26 MiB | Viewed 779 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.


Last edited by Issabella on Mon Jun 12, 2023 10:56 am, edited 1 time in total.
Top
 Post subject: Re: Playing with my photos
PostPosted: Mon Jun 12, 2023 10:55 am  (#290) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2014
Posts: 875
Issabella,

Many thanks for testing the plug-in.

Now we can have the new version which I have been testing:
1. It now has the option to change the colour of the ink as well as the paper.
2. I have renamed the layers, I hope, to something more meaningful.
3. If there is a selection in the original image, it is removed and saved to a channel.

Here is a silly example from the testing - green ink on blue paper!

Attachment:
strange_colours.jpg
strange_colours.jpg [ 382.79 KiB | Viewed 779 times ]


And the new version.

Attachment:
picture_to_line_art.zip [2.06 KiB]
Downloaded 35 times


Edit: #271 of this thread also updated to the latest version.


Last edited by david on Mon Jun 12, 2023 11:28 am, edited 1 time in total.

Top
Post new topic Reply to topic  [ 810 posts ]  Go to page Previous  1 ... 11, 12, 13, 14, 15, 16, 17 ... 41  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group