Gimp-Forum.net
Converting photo into raster - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Converting photo into raster (/Thread-Converting-photo-into-raster)

Pages: 1 2


Converting photo into raster - cyclist - 12-18-2023

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.


RE: Converting photo into raster - programmer_ceds - 12-18-2023

(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..."


RE: Converting photo into raster - rich2005 - 12-18-2023

(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

[attachment=10892]

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


RE: Converting photo into raster - cyclist - 12-18-2023

Thank you!

This helps a lot...


RE: Converting photo into raster - Ofnuts - 12-18-2023

(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(*):

[attachment=10893]

Script here: https://sourceforge.net/projects/gimp-tools/files/scripts/

Doc here:  https://gimp-tools.sourceforge.net/tools.shtml

(*) Published on 2013-12-18, so exactly 10 years ago...



RE: Converting photo into raster - cyclist - 12-18-2023

(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]


RE: Converting photo into raster - rich2005 - 12-18-2023

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-luminosity-tiler-0-1-Error?pid=28792#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.

[attachment=10896]


RE: Converting photo into raster - Ofnuts - 12-18-2023

(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:

[attachment=10897]

You go from this:

[attachment=10898]

to this (click for full scale):

[attachment=10899]

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


RE: Converting photo into raster - cyclist - 12-18-2023

(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!


RE: Converting photo into raster - Ofnuts - 12-18-2023

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