Switch to full style
Post all your Gimp artwork and designs here
Post a reply

Re: Results of my "photo to cartoon" plugin

Mon Apr 26, 2021 11:09 am

cli345 wrote:Hello, :)

Thank you racer-x, mahvin, mackenzieh, lula, level_0, Nidhogg for your valuable feedback.
Thank you mahvin for your assistance to users in installing the plug-in and for making it available on gimpscripts.net. :bigthup
Thank you again Nidhogg for your translation. :clap
:tyspin


Thank you for your contribution!

Re: Results of my "photo to cartoon" plugin

Thu Apr 29, 2021 7:51 am

Hello,

On some photos, I like when an emboss effect is applied after the "cartoon" effect.

Here is an example:
small_farm_k7862-1_bd_emboss2.jpg
small_farm_k7862-1_bd_emboss2.jpg (869.84 KiB) Viewed 4536 times

Enjoy!

Re: Results of my "photo to cartoon" plugin

Sun May 02, 2021 10:34 am

I've made it this way:
  • Open image
  • Convert image : Image -> Precision -> 32 bits integer
  • Duplicate Layer
  • Apply "Comic book" filter
  • Duplicate Layer
  • G'MIC -> Colors -> Curves (Colorspace=Lch) : lower Chroma to 0 everywhere, add a point (32,255) on Lightness
  • Filters -> Blur -> Gaussian blur
  • Filters -> Distorts -> Emboss (Azimuth=135 (or 315), Depth=6)
  • Colors -> Curves : lower the (85%, 85%) point (or (219, 219) point) to (85%, 50%) (resp. to (219, 128))
  • Change layer mode to "grain merge"

Re: Results of my "photo to cartoon" plugin

Sun May 02, 2021 11:41 am

Thank you so much cli345 for sharing your steps in the process. :tyspin
I have to try it too. :bigthup
The results are great! :coolthup

Re: Results of my "photo to cartoon" plugin

Mon May 03, 2021 12:31 am

Thank you so much cli345 for your nice job to get this effect.
My first results.

Re: Results of my "photo to cartoon" plugin

Mon May 03, 2021 2:11 pm

Really nice, Issabella!

Re: Results of my "photo to cartoon" plugin

Tue May 04, 2021 8:50 am

I am wanting to try this script but I have recently upgraded computers and OS and am trying to get this to work but I am getting the following error. I have installed gmic via synaptic as well as downloading it and placing it in the gimp folder with permission to execute but still cannot get it to work. I have forgotten to do something which I forgot, :) any advice on getting this to work?

Re: Results of my "photo to cartoon" plugin

Tue May 04, 2021 11:21 am

:) Congrats, Issabella, for your artistic results. :clap :coolthup

Re: Results of my "photo to cartoon" plugin

Tue May 04, 2021 11:25 am

Nixnine, I think you have to install gimp-gmic (not gmic) (It's not the same package).

Re: Results of my "photo to cartoon" plugin

Tue May 04, 2021 12:30 pm

@nixnine
Is this an upgraded ubuntu studio ? Which version (based on ubuntu) 20.04 or a latest 21.something. There is a gimp-gmic package in the 20.04 repo but it is old, gmic_gimp_qt 2.4.5 If installed it should still show up bottom if the filter menu providing you have QT5 installed.

The default Gimp for 20.04 is Gimp 2.10.18 Is that the version you have ? If you have, say, a Gimp 2.10.24 then it is probably a flatpak, since that comes with python support, which you obviously have, but then that needs a flatpak version of gmic_gimp_qt.

All sorts of permutations and combinations. A bit of that extra information would help.

Re: Results of my "photo to cartoon" plugin

Tue May 04, 2021 12:56 pm

Hi Gimp users
I like "photo to cartoon".
This is an excellent plugin.

Thanks
Doron

Re: Results of my "photo to cartoon" plugin

Tue May 04, 2021 8:12 pm

rich2005 wrote:@nixnine
Is this an upgraded ubuntu studio ? Which version (based on ubuntu) 20.04 or a latest 21.something. There is a gimp-gmic package in the 20.04 repo but it is old, gmic_gimp_qt 2.4.5 If installed it should still show up bottom if the filter menu providing you have QT5 installed.

The default Gimp for 20.04 is Gimp 2.10.18 Is that the version you have ? If you have, say, a Gimp 2.10.24 then it is probably a flatpak, since that comes with python support, which you obviously have, but then that needs a flatpak version of gmic_gimp_qt.

All sorts of permutations and combinations. A bit of that extra information would help.


I am now running a fresh install of Mint 20.1

Gimp version is 2.10.24

gimp-gmic 2.4.5-1.1 is installed.

Re: Results of my "photo to cartoon" plugin

Wed May 05, 2021 1:00 am

nixnine wrote:I am now running a fresh install of Mint 20.1

Gimp version is 2.10.24

gimp-gmic 2.4.5-1.1 is installed.


Mint/Ubuntu 20 uses python 3, Gimp isn't yet python 3 ready.
There's a workaround but I rather use MX Linux, so I won't tell you to install python 2.7 and make it default.

Re: Results of my "photo to cartoon" plugin

Wed May 05, 2021 3:05 am

nixnine wrote:I am now running a fresh install of Mint 20.1
Gimp version is 2.10.24
gimp-gmic 2.4.5-1.1 is installed.


Narrows it down a bit. As far as I know the default Gimp is 2.10.18 and 2.10.24 is installed.
Where does 2.10.24 come from ?
(1) It could be the ubuntuhandbook1/gimp PPA but that comes without python2 support and you have a python plugin running. So maybe not that.
(1a) If you have a regular installation and python2 installation, QT 5 might be missing. Often the case with lightweight desktops such as Xfce.
(2) It could be a snap version of Gimp, at the moment no info on that but I will get it.
(3) It could be the flatpak version of Gimp. In a terminal enter flatpak list and see what you get, something or nothing.
If it is a Gimp flatpak then you install the gmic_gimp_qt flatpak version 2-40 for Gimp 2.10.24 Enter the relevant number and follow the directions.

flatpak.jpg
flatpak.jpg (178.86 KiB) Viewed 9974 times


A little bit more digging from you, but getting there.

Re: Results of my "photo to cartoon" plugin

Thu May 13, 2021 12:40 pm

Thanks Nixnine, Doronf2, Nidhogg and Rich2005 for your very valuable feedback. :tyspin
(I hope Nixnine will come back and tell us more on the problem.)


Note that the result depends on the size of the photo.

If you want rougher lines,
  • Scale down
  • Apply "Comic Book for 2.10"
  • Scale up

If you want thiner lines,
  • Scale up
  • Apply "Comic Book for 2.10"
  • Scale down

Re: Results of my "photo to cartoon" plugin

Thu May 13, 2021 2:29 pm

You can also brighten or add contrast to your images, depending on your line thicknesses...

Re: Results of my "photo to cartoon" plugin

Sat May 22, 2021 12:57 pm

Hello, :)

Thanks, mahvin!

Here is a "groove" plug-in to make this effect.
(it depends on gegl_command.py)

  • Convert image : Image -> Precision -> 32 bits integer
  • Apply "Comic book" filter
  • Apply "Groove" filter

Enjoy!

(I think I should have put this thread into the Scripts and Plugins section.)

Re: Results of my "photo to cartoon" plugin

Sat May 22, 2021 2:16 pm

Linux users need the gegl package from their repo, it is not a Gimp dependency.

Windows users, gegl comes with the samj portable and if you use that there is no problem.
Regular Windows Gimp needs the gegl.exe binary and you can get one here: viewtopic.php?f=9&t=18040&start=20#p256140

Otherwise works fine. example:

gegl.jpg
gegl.jpg (168.88 KiB) Viewed 8642 times

Re: Results of my "photo to cartoon" plugin

Sun May 23, 2021 9:25 am

:tyspin Thanks, Rich2005 for your explanation! :)

Note: On my PC, it works without having installed the gegl package :o (I've only installed "gegl_command.py")
(I've installed Gimp 2.10 by flatpak on Linux).

Re: Results of my "photo to cartoon" plugin

Sun May 23, 2021 11:50 am

cli345 wrote:Note: On my PC, it works without having installed the gegl package :o (I've only installed "gegl_command.py") (I've installed Gimp 2.10 by flatpak on Linux).


Apologies, you are correct. Something broken in my Win10 VM installation. Must investigate.
Post a reply