It is currently Fri Apr 19, 2024 2:14 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: Halftone from Greyscale Image Tutorial
PostPosted: Fri Dec 13, 2013 2:53 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
Halftone Image From Greyscale Image Tutorial

I think this might be scriptable if anybody wants to try to do it.

1. Start off with a greyscale image. If you have a color image then do a [Color] [Desaturate] on it first. And then create another layer above it that is all black canvas area. And change the layer mode to Dodge.

Image

2. On the black dodge layer run the [Filter} [Render] [Patterns] [Grid] filter on it. In the grid dialog choose a width for Horizontal and verticle lines of 1 to 4 or so. Choose the spacing between the lines at perhaps 10 to 20. And make the color of the lines white, and click OK.

Image

Now Gausian blur the dodge layer to kind of round off the squares, followed by a [Color] [Auto] [Stretch Contrast] to force the colors to stretch from full black to full white.

Image
Image

4. Then do a [Layer] [New From Visible] and run the [Color] [Threshold] filter on it by moving the slider to the right.

Image

Since this is all being done manually it gives a lot of room for adjustment. You can try to invert one of the layers. You can also use a filter like [Distorts] [Curve Bend] or [iWarp]. Curves can also be used on the layers to make things thicker or thinner in the results. You can also try this with other settings inside of the [Grid] dialog box. You can use the [Grid] ddialog to create only verticle or only horizontal lines etc.

Pegleg


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: Halftone from Greyscale Image Tutorial
PostPosted: Fri Dec 13, 2013 3:59 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
awesome technique , peggsy !
you always bring interesting stuff from an alternative Gimp universe - i love that !

i applied G'MIC -> Recursive Median (Radius 6) on the New From Visible
and then used colour curves, instead of the Threshold because i felt the shapes were kind of ugly

Image


Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Fri Dec 13, 2013 6:55 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
Esper wrote:
awesome technique , peggsy !
you always bring interesting stuff from an alternative Gimp universe - i love that !

i applied G'MIC -> Recursive Median (Radius 6) on the New From Visible
and then used colour curves, instead of the Threshold because i felt the shapes were kind of ugly

[ Image ]


Yes my thoughts are from an alternative universe but I offer them up with free gimp love. And since they are free, you can't hold me responsible if your computer locks up.

Here's another thing you can do with this technique. You can make square halftones.

What I did to get this image below is I kept the line widths in the grid dialog at 1, and instead of blurring the dodge layer I selected the white with fuzzy selection and did a [Select] [Border] of 8 (Half the spacing from the grid dialog) with Feather Boarder checked and filled the selection on the dodge layer with white. Then after streatching contrast the halftone has squares instead of dots.
Image

Interesting effects could be achieved if you were to use the iwarp on the dodge layer before layer from visible and Threashold.

Image

I set the results layer to darken only after creating it.


Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Fri Dec 13, 2013 7:38 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
OK here's the last one for the day.

I was able to get perfect pixel squares with the help of the Height Bevel Script that soulgoode made for me a while back.

Image

What I did is took the dodge layer and used the grid on it with the width set for 7 and the spacing set at 8. This gave me little black dots that are actually shades of grey from the image below it. Then I did a layer from visible and ran the Height Bevel Script on it with a setting of 4. What that did is put a bevel around each dot according to the greyscale value. And when you do a threashold on the resulting image you get varying sizes of black dots.

Here's the code that soulgoode made for the Height Bevel Script:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program; if not, write to the Free Software
;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

(define (script-fu-sg-height-bevel image drawable nb-levels)
  (set! nb-levels (truncate nb-levels))
  (gimp-image-undo-group-start image)
  (gimp-selection-none image)
  (gimp-layer-set-mode drawable DARKEN-ONLY-MODE)
  (let ((levels (let loop ((count (- nb-levels 1))
                           (result '(0)) )
                  (if (zero? count)
                    (cdr (reverse result))
                    (loop (- count 1)
                          (cons (+ (/ 256 nb-levels)
                                   (car result) )
                                result ))))))
    (let loop ((iterations (- nb-levels 1))
               (layers (list drawable)) )
      (if (zero? iterations)
        (map (lambda (layer low-output high-input)
               (gimp-levels layer HISTOGRAM-VALUE 0 high-input 1.0 low-output 255) )
             (cdr (reverse layers))
             levels
             (reverse levels) )
        (let ((layer (car (gimp-layer-copy (car layers) FALSE))))
          (gimp-image-insert-layer image layer 0 -1)
          (gimp-image-lower-layer image layer)
          (gimp-layer-set-mode layer DARKEN-ONLY-MODE)
          (plug-in-vpropagate RUN-NONINTERACTIVE
                              image
                              layer
                              1 ; darker
                              15 ; all channels
                              1.0 ; rate 0-1
                              15 ; all directions
                              0
                              255 )
          (loop (pred iterations) (cons layer layers)) ))))
  (gimp-image-undo-group-end image)
  (gimp-displays-flush)
  )
                           
(script-fu-register "script-fu-sg-height-bevel"
"Height Bevel per Pegleg44..."
"Add beveled layers per Pegleg44"
"Saul Goode"
"Saul Goode"
"July 2013"
"*"
SF-IMAGE    "Image"    0
SF-DRAWABLE "Drawable" 0
SF-ADJUSTMENT "Number of levels" '( 8 2 100 1 5 0 1)
)
(script-fu-menu-register "script-fu-sg-height-bevel"
  "<Image>/Filters/Decor/"
  )


Pegleg


Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Fri Dec 13, 2013 7:54 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Sure is a beautiful horse no matter how many dots it has.

_________________
Image


Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Fri Dec 13, 2013 10:35 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7712
Location: On the other side of this screen
molly wrote:
Sure is a beautiful horse no matter how many dots it has.

I agree

_________________


Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Tue Oct 25, 2016 4:37 pm  (#7) 
Offline
GimpChat Member

Joined: Aug 11, 2016
Posts: 49
I know this is 3 years old but it's awesome! Thanks so much!


Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Tue Oct 25, 2016 9:42 pm  (#8) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Steps in number post #1 has been turned into a script here
-> PegLeg Halftone Script for GIMP

_________________
TinT


Last edited by trandoductin on Tue Nov 27, 2018 2:13 pm, edited 1 time in total.

Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Wed Oct 26, 2016 7:43 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Nice Tran!

Image

_________________
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: Halftone from Greyscale Image Tutorial
PostPosted: Wed Oct 26, 2016 9:08 am  (#10) 
Offline
GimpChat Member

Joined: Aug 11, 2016
Posts: 49
Tran,

Thanks for the heads up. I made a couple the 'hard way' and love them so a script is the cherry on top of the sundae. The code in PegLeg's tut has been very helpful.


Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Tue Jul 03, 2018 9:31 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jul 01, 2018
Posts: 75
Dear PegLeg44,
I just saw your nice tutorial. It is 5 years old but I am just 5 days old in this group.
I copied the horse picture from your tutorial and went through all the steps but the result I got was not
like yours. It was just passable. Only thing I changed was the size because I cropped the picture of the horse and sued it in my attempt. I will be happy and thankful for any advice.
And two: I saw the script you so kindly included in the tutorial. . I copied the text and pasted it in Notepad.
How do iI make it a 'scm' file.
Thank you.
-Eureka


Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Tue Jul 03, 2018 4:45 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jul 01, 2018
Posts: 75
Thanks to the Steps creator PegLeg44 and Plugin creator trandoductin
-Eureka
( A new Member )


Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Tue Jul 03, 2018 7:42 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1332
Eureka said
Quote:
I copied the text and pasted it in Notepad.
How do iI make it a 'scm' file.


If it hasn't been answered yet, save your notepad text with an 'scm' file extension.
Then copy-n-paste or drag and drop into your Gimp 'scripts' folder.
You do the same thing with python scripts (py) and put them in the 'plug-ins' folder. (you may need to make them executable)


Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Wed Jul 04, 2018 5:06 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jul 01, 2018
Posts: 75
Dear Tas_mania,
Thanks for for your guidance.

-Eureka


Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Sat Aug 28, 2021 1:38 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Aug 27, 2021
Posts: 13
Location: Chesterfield, UK
I intended during lockdown to do quite a lot of drawing but ended up doing cooking and working on digital photography



I do appreciate this tutorial though



I thought the gimp head cut/ woodcut plug-in was good I don't know if it is round for later versions



I note people are doing artificial intelligence software for this kind of thing which makes sense as there is often too much information from photos; if done by hand ,drawing, it would be done simpler with some intelligent decisions. That said I used it for a well-known local scene and somebody whose house was on the pictures said they liked my interpretation I will tell her one day it was done from a photo



Artificial intelligence maybe gives more control but in creative things I often like to have less so I wonder if there could be something like the head cut plug-in which randomly simplifies and lots of variations could be tried

if there is another lockdown maybe I ought to go back to programming, not really done any for 20 years, and do a sort of variations filter which randomly simplifies


Attachments:
drawing.png
drawing.png [ 25.35 KiB | Viewed 2032 times ]
Top
 Post subject: Re: Halftone from Greyscale Image Tutorial
PostPosted: Mon Aug 30, 2021 8:19 am  (#16) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7712
Location: On the other side of this screen
There is a half tone filter in GMIC qt. This was done just with default
Image
Not as good as the tutorial by Pat David though for headcut.

_________________


Top
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) 'Equalize' and 'White Balance' makes image greyscale

3

No new posts Attachment(s) Outcomes using Halftone 2024

33

No new posts Attachment(s) inverse halftone filter

6

No new posts Attachment(s) 76 Halftone Grayscale Brushes

29

No new posts Attachment(s) My filters of the year 2024: 5)Halftone v.1.1.0

0



* Login  



Powered by phpBB3 © phpBB Group