Lomo Effect for 2.9.9 - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: Lomo Effect for 2.9.9 (/Thread-Lomo-Effect-for-2-9-9) |
Lomo Effect for 2.9.9 - dinasset - 03-11-2018 Hi. I'm playing a bit with 2.9.9 and to train myself I started writing some very small filters. This one is not ORIGINAL, i.e. has not been invented by me: I took a couple of two small existing filters (in .scm), combined into just one and ported into python. The original filters are: - Alexia Death's script-fu-lomo-effect and Avi Bercovich's script-fu-lomo Comments, critics, suggestions are welcome. If someone is interested in the originals I attach here also those. They are the versions I have in my folders, menu has been modified, they will appear under BestFilters/Photo/Effects (I do not remember the original menu). My filter will appear under menu="<Image>/Diego/Ancillary2" RE: Lomo Effect for 2.9.9 - Espermaschine - 03-11-2018 How is it different from the G'MIC Lomo effect ? RE: Lomo Effect for 2.9.9 - rich2005 - 03-11-2018 (03-11-2018, 01:23 PM)Espermaschine Wrote: How is it different from the G'MIC Lomo effect ? A comparison in my Gimp 2.9.9, edit: Ran the plugin again with the compat-mode switch off. No errors, so future proof until the Gimp developers throw in some more weird code. RE: Lomo Effect for 2.9.9 - Ofnuts - 03-11-2018 (03-11-2018, 01:00 PM)dinasset Wrote: Hi. **cough** Code: pdb.gimp_context_push() Context push/op operations are designed precisely to avoid saving/restoring colors and other context elements (pattern, font, gradient...) Otherwise, what is specific to 2.9.x in the code? RE: Lomo Effect for 2.9.9 - dinasset - 03-12-2018 Nothing specific, just the way to set the layer's mode is typical of 2.9 About the FG/BG saving/restoring: some times ago I noticed (on 2.8) that the push/pop operations were not enough for them (OK for pattern, font, gradient), hence I specifically added those. Didn't try yet if that was a temporary bug on 2.8. RE: Lomo Effect for 2.9.9 - Ofnuts - 03-12-2018 (03-12-2018, 05:13 AM)dinasset Wrote: Nothing specific, just the way to set the layer's mode is typical of 2.9 Works for me on 2.8.22. Even better, it seems that of you do one context_push() there is an implicit context_pop() at the end: Code: #!/usr/bin/env python RE: Lomo Effect for 2.9.9 - dinasset - 03-12-2018 Very good info ! |