Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting photo into raster
#1
Hi all,

I have been using GIMP for quite a while now and I wonder if there is an easy way to use GIMP to convert a photo into a raster image like this:

360_F_109303385_SYkYXG0sfIVWwCNhEplURlxxyIh4i2M0.jpg (647×360) (ftcdn.net)

Any help will be appreciated.
Reply
#2
(12-18-2023, 03:12 PM)cyclist Wrote: Hi all,

I have been using GIMP for quite a while now and I wonder if there is an easy way to use GIMP to convert a photo into a raster image like this:

360_F_109303385_SYkYXG0sfIVWwCNhEplURlxxyIh4i2M0.jpg (647×360) (ftcdn.net)

Any help will be appreciated.

You could try "Filters/Distorts/Newsprint..."
Reply
#3
(12-18-2023, 03:56 PM)programmer_ceds Wrote:
(12-18-2023, 03:12 PM)cyclist Wrote: Hi all,

I have been using GIMP for quite a while now and I wonder if there is an easy way to use GIMP to convert a photo into a raster image like this:

360_F_109303385_SYkYXG0sfIVWwCNhEplURlxxyIh4i2M0.jpg (647×360) (ftcdn.net)

Any help will be appreciated.

You could try "Filters/Distorts/Newsprint..."

The effect is called half-toning - in Gimp 2.10 it is that Newsprint GEGL filter

   

There are others, the gimp_gmic_qt plugin http://www.gmic.eu  also has a half-tone filter that gives a slightly different effect.
Reply
#4
Thank you!

This helps a lot...
Reply
#5
(12-18-2023, 03:12 PM)cyclist Wrote: Hi all,

I have been using GIMP for quite a while now and I wonder if there is an easy way to use GIMP to convert a photo into a raster image like this:

360_F_109303385_SYkYXG0sfIVWwCNhEplURlxxyIh4i2M0.jpg (647×360) (ftcdn.net)

Any help will be appreciated.

Exactly what I wrote my luminosity-tiler script for(*):

   



(*) Published on 2013-12-18, so exactly 10 years ago...
Reply
#6
(12-18-2023, 06:16 PM)Ofnuts Wrote:
(12-18-2023, 03:12 PM)cyclist Wrote: Hi all,

I have been using GIMP for quite a while now and I wonder if there is an easy way to use GIMP to convert a photo into a raster image like this:

360_F_109303385_SYkYXG0sfIVWwCNhEplURlxxyIh4i2M0.jpg (647×360) (ftcdn.net)

Any help will be appreciated.

Exactly what I wrote my luminosity-tiler script for(*):





(*) Published on 2013-12-18, so exactly 10 years ago...
I don't know how to use your script. I have installed it correctly (in de plugins directory), it shows up in Filters > Artistic > Tiles from Luminosity...
Then it asks for a tiles image. I created a test.png of 4x4 pixels all black:
[Image: test.png]
After I click OK it shows a popup window saying: 'There should be at least two tiles'.

I get the same error with a black and white test2.png with two black squares of 8x8 pixels in it:
[Image: test2.png]
Reply
#7
The error is because the plugin dates back to Gimp 2.8 and uses the Gimp 2.8 pixelize plugin Wink

...you can find one for Windows here: https://www.gimp-forum.net/Thread-lumino...2#pid28792

...also needed is a stack of tiles, as an example tiles-1.xcf attached

I assume it still works with Windows, this (multi-window-mode) in linux.

   


Attached Files
.xcf   tiles-1.xcf (Size: 4.57 KB / Downloads: 98)
Reply
#8
(12-18-2023, 06:48 PM)cyclist Wrote:
(12-18-2023, 06:16 PM)Ofnuts Wrote:
(12-18-2023, 03:12 PM)cyclist Wrote: Hi all,

I have been using GIMP for quite a while now and I wonder if there is an easy way to use GIMP to convert a photo into a raster image like this:

360_F_109303385_SYkYXG0sfIVWwCNhEplURlxxyIh4i2M0.jpg (647×360) (ftcdn.net)

Any help will be appreciated.

Exactly what I wrote my luminosity-tiler script for(*):





(*) Published on 2013-12-18, so exactly 10 years ago...
I don't know how to use your script. I have installed it correctly (in de plugins directory), it shows up in Filters > Artistic > Tiles from Luminosity...
Then it asks for a tiles image. I created a test.png of 4x4 pixels all black:
[Image: test.png]
After I click OK it shows a popup window saying: 'There should be at least two tiles'.

I get the same error with a black and white test2.png with two black squares of 8x8 pixels in it:
[Image: test2.png]

You need to also open in Gimp an image that provides the tiles. For instance with a tiles  images that contains this:

   

You go from this:

   

to this (click for full scale):

   

And yes, there appear to have been a small change in the pixellize plugin in 2.10, so :

  • I fixed that problem in the script
  • I repackaged the script as ofn-luminosity-tiler.zip (same place)
  • The ZIP contain the script (.py), the doc (.html), and a directory of sample tiles image

Enjoy
Reply
#9
(12-18-2023, 09:14 PM)Ofnuts Wrote:
(12-18-2023, 06:48 PM)cyclist Wrote:
(12-18-2023, 06:16 PM)Ofnuts Wrote: Exactly what I wrote my luminosity-tiler script for(*):





(*) Published on 2013-12-18, so exactly 10 years ago...
I don't know how to use your script. I have installed it correctly (in de plugins directory), it shows up in Filters > Artistic > Tiles from Luminosity...
Then it asks for a tiles image. I created a test.png of 4x4 pixels all black:
[Image: test.png]
After I click OK it shows a popup window saying: 'There should be at least two tiles'.

I get the same error with a black and white test2.png with two black squares of 8x8 pixels in it:
[Image: test2.png]

You need to also open in Gimp an image that provides the tiles. For instance with a tiles  images that contains this:



You go from this:



to this (click for full scale):



And yes, there appear to have been a small change in the pixellize plugin in 2.10, so :

  • I fixed that problem in the script
  • I repackaged the script as ofn-luminosity-tiler.zip (same place)
  • The ZIP contain the script (.py), the doc (.html), and a directory of sample tiles image

Enjoy

I tried you repaclaged script and tiles and YES, it works great now Smile

Thank you very much!
Reply
#10
(12-18-2023, 09:46 PM)cyclist Wrote:
(12-18-2023, 09:14 PM)Ofnuts Wrote:
(12-18-2023, 06:48 PM)cyclist Wrote: I don't know how to use your script. I have installed it correctly (in de plugins directory), it shows up in Filters > Artistic > Tiles from Luminosity...
Then it asks for a tiles image. I created a test.png of 4x4 pixels all black:
[Image: test.png]
After I click OK it shows a popup window saying: 'There should be at least two tiles'.

I get the same error with a black and white test2.png with two black squares of 8x8 pixels in it:
[Image: test2.png]

You need to also open in Gimp an image that provides the tiles. For instance with a tiles  images that contains this:



You go from this:



to this (click for full scale):



And yes, there appear to have been a small change in the pixellize plugin in 2.10, so :

  • I fixed that problem in the script
  • I repackaged the script as ofn-luminosity-tiler.zip (same place)
  • The ZIP contain the script (.py), the doc (.html), and a directory of sample tiles image

Enjoy

I tried you repaclaged script and tiles and YES, it works great now Smile

Thank you very much!

Thanks for the confirmation.
Reply


Forum Jump: