It is currently Tue Jun 25, 2024 1:04 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Legacy Mosaic in Gimp 2.10 because GEGL's version is so slow
PostPosted: Thu Jun 30, 2022 9:43 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1446
I took the binary of the mosaic from Gimp 2.4 and put in in Gimp 2.10's plugins and now I have the legacy mosaic filter.

Image

I recommend others follow as the current mosaic filter is WAY TO SLOW!


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: Legacy Mosaic in Gimp 2.10 because GEGL's version is so slow
PostPosted: Mon Jul 11, 2022 6:57 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 787
Location: SEA - South East Asia
Can you share it please, I'm very interested in it (I'm on Linux)

_________________
Patrice


Top
 Post subject: Re: Legacy Mosaic in Gimp 2.10 because GEGL's version is so slow
PostPosted: Mon Jul 11, 2022 8:45 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1446
By the GPL's regulations I have to link the source code which is in here somewhere when you search for mosaic.
https://download.gimp.org/pub/gimp/v2.4/

UPDATE-Source Code for 2.4's Mosaic is here.
https://cdn.discordapp.com/attachments/ ... 9/mosaic.c

Now here is the binary that only works on Linux. It goes in the normal plugins folder.
https://cdn.discordapp.com/attachments/ ... 196/mosaic


Top
 Post subject: Re: Legacy Mosaic in Gimp 2.10 because GEGL's version is so slow
PostPosted: Mon Jul 11, 2022 3:23 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4750
contrast_ wrote:
By the GPL's regulations I have to link the source code which is in here somewhere when you search for mosaic.
https://download.gimp.org/pub/gimp/v2.4/

UPDATE-Source Code for 2.4's Mosaic is here.
https://cdn.discordapp.com/attachments/ ... 9/mosaic.c

Now here is the binary that only works on Linux. It goes in the normal plugins folder.
https://cdn.discordapp.com/attachments/ ... 196/mosaic


Why did you take the 2.4 one? The 2.8 one should also work and its history says:

2013-09-22 Bug 677275 - Mosaic Filter produces ugly artifacts

This 2013 date is contemporaneous with the 2.8 versions (2012-2015).

Edit: Some Git magic shows that the latest fix is in 2.8.8.

The source of the latest 2.8 is here. On Linux you can likely download it and compile/install it with the gimptool utility.

_________________
Image


Top
 Post subject: Re: Legacy Mosaic in Gimp 2.10 because GEGL's version is so slow
PostPosted: Mon Jul 11, 2022 6:02 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1446
I have a chroot of Gimp 2.4 on my Linux machine that I made using a tool called CDE (Code Data Environment) back in 2019. I tried porting Gimp 2.8 using CDE and it failed. Only 2.4 worked.


CDE is like an ancient mid 2000s precursor to flatpak and appimage


Top
 Post subject: Re: Legacy Mosaic in Gimp 2.10 because GEGL's version is so slow
PostPosted: Tue Jul 12, 2022 1:54 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 787
Location: SEA - South East Asia
contrast_ wrote:
By the GPL's regulations I have to link the source code which is in here somewhere when you search for mosaic.
https://download.gimp.org/pub/gimp/v2.4/

UPDATE-Source Code for 2.4's Mosaic is here.
https://cdn.discordapp.com/attachments/ ... 9/mosaic.c

Now here is the binary that only works on Linux. It goes in the normal plugins folder.
https://cdn.discordapp.com/attachments/ ... 196/mosaic

Thanks for the binary, it's working fine :tyspin
Although it's way faster it has the exact same behavior -> the shadows hard to remove,
more to study for me => on everything opaque single color it draws the grid by making transparency (kind of color erase mode)... but if I check then uncheck it does it black even if my FG/BG are all white :puzzled .

ofnuts wrote:
The source of the latest 2.8 is here. On Linux you can likely download it and compile/install it with the gimptool utility.

Thanks, that nice, but how do you do that (compile)?

_________________
Patrice


Top
 Post subject: Re: Legacy Mosaic in Gimp 2.10 because GEGL's version is so slow
PostPosted: Tue Jul 12, 2022 3:23 am  (#7) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4750
PixLab wrote:
contrast_ wrote:
By the GPL's regulations I have to link the source code which is in here somewhere when you search for mosaic.
https://download.gimp.org/pub/gimp/v2.4/

UPDATE-Source Code for 2.4's Mosaic is here.
https://cdn.discordapp.com/attachments/ ... 9/mosaic.c

Now here is the binary that only works on Linux. It goes in the normal plugins folder.
https://cdn.discordapp.com/attachments/ ... 196/mosaic

Thanks for the binary, it's working fine :tyspin
Although it's way faster it has the exact same behavior -> the shadows hard to remove,
more to study for me => on everything opaque single color it draws the grid by making transparency (kind of color erase mode)... but if I check then uncheck it does it black even if my FG/BG are all white :puzzled .

ofnuts wrote:
The source of the latest 2.8 is here. On Linux you can likely download it and compile/install it with the gimptool utility.

Thanks, that nice, but how do you do that (compile)?


AFAIK gimptool handles the compilation, it identifies the particulars of the local gimp installation and calls GCC with the adequate options...

_________________
Image


Top
 Post subject: Re: Legacy Mosaic in Gimp 2.10 because GEGL's version is so slow
PostPosted: Tue Jul 12, 2022 3:48 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 787
Location: SEA - South East Asia
ofnuts wrote:
PixLab wrote:

AFAIK gimptool handles the compilation, it identifies the particulars of the local gimp installation and calls GCC with the adequate options...


And in English, like normal English, not programmer English, what do I need to do? :mrgreen:

_________________
Patrice


Top
 Post subject: Re: Legacy Mosaic in Gimp 2.10 because GEGL's version is so slow
PostPosted: Tue Jul 12, 2022 5:55 am  (#9) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2435
A Gimp 2.8 version ? I have one of those tucked away. From Gimp 2.8.22 Unzip, pop it into your user profile plugins folder. Find it bottom of Filters -> Distorts along with the other non-GEGL filters

Attachment:
old-mosaic.jpg
old-mosaic.jpg [ 146.31 KiB | Viewed 866 times ]


Attachments:
linux-64bit-mosaic.zip [20.34 KiB]
Downloaded 22 times

_________________
Image
Top
 Post subject: Re: Legacy Mosaic in Gimp 2.10 because GEGL's version is so slow
PostPosted: Wed Jul 13, 2022 9:11 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 787
Location: SEA - South East Asia
rich2005 wrote:
A Gimp 2.8 version ? I have one of those tucked away. From Gimp 2.8.22 Unzip, pop it into your user profile plugins folder. Find it bottom of Filters -> Distorts along with the other non-GEGL filters

Thanks a lot rich2005

I did many tries and comparison, with the 2.4, the 2.8 and the GEGL...
The 2.8 is capable of drawing (while triangle is selected) and horizontal transparent line with the other black or white... :puzzled

2.4 and 2.8 are faster than GEGL, but can have some unexpected behavior depending on what color it is drawing, and may have some bug (like need to deactivate then activate again the FG/BG to get the right color) where GEGL is consistent and feel bug-less .
The drawing itself is the same as GEGL (that tiny shadow for example) but with GEGL you have more options which can "trick" that shadow to not appear.

In the end I did remove 2.4/2.8 as GEGL might be a little bit slower, but IMO it's a big improvement compared to 2.4, and 2.8... like night and day :bigthup
In all case thanks a lot @contrast_ and @rich2005 for providing these version, it was very useful to me for these tests :tyspin

_________________
Patrice


Top
 Post subject: Re: Legacy Mosaic in Gimp 2.10 because GEGL's version is so slow
PostPosted: Sat Jul 16, 2022 12:17 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I still use the large preview Filters>Distorts>Mosaic filter and it works fine in Gimp-2.10.32 :bigthup

Attachment:
Large-Preview_Mosaic-2022-07-16_011125.jpg
Large-Preview_Mosaic-2022-07-16_011125.jpg [ 136.56 KiB | Viewed 568 times ]


If anyone is interested i will upload the zip here.

_________________
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 new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GEGL Textured Mosaic (in development)

3

No new posts Attachment(s) a new filter "Simple Mosaic", version 1.1.0 and 1.1.1 (_33)

17

No new posts Change all layer modes from Legacy to Default

9

No new posts The difference between Layer modes Legacy and Default

1

No new posts Attachment(s) For No Good Reason-Doodles With the Legacy Kaleidoscope Filter

6



* Login  



Powered by phpBB3 © phpBB Group