GIMP Lomo Plugin

This is a slighly modified version of an old GIMP Lomo plugin I’ve used for ages that will now work with the new GIMP 2.4 release thanks to some advice I remembered reading on the GIMP User mailing list. The original plugin is by Francois Le Lay but hasn’t been updated since 2005. It’s a basic script but it’s very effective. Just be warned, if you resize your image, make sure you right click on the Vignette layer and click “Layer to image size” before the resize. Otherwise odd things happen!

Download

Download gimplomo.scm.

Install

Installation is easy. Simply copy gimplomo.scm into your .gimp-2.4/scripts/ folder and restart the GIMP. It will appear as Image->Filters->Light and Shadow->Lomo.

Example Images

Below are two before and after examples of what the Lomo plugin does to images. I have also posted fake lomo photos in the past which should give a really good idea of what it’s capable of.


Before and After Lomo images

Why the change to Script-fu?

Script-fu in GIMP 2.4 requires that variables be defined before using them which has broken a lot of Script-fu scripts unfortunately. In theory it’s a great change because it tightens up on sloppy programming but it hurts the end user!


You might also like

If you like this post then please subscribe to my full RSS feed. You can also click here to subscribe by email. There are also my fabulous photos to explore too!

60 Comments

  1. Marco Raaphorst Reply

    I am waiting for the 2.4 release. Not yet right?

    http://www.melodiefabriek.nl

  2. Donncha O Caoimh Reply

    I’m using the GIMP 2.4 pre-release based on 2.3rc3 in Ubuntu Linux and it’s fine so far. All those broken Script-fu scripts are a pain though!

    http://inphotos.org/

  3. Andrew Reply

    I didn’t realize The Gimp still used Scheme for extension. I guess it’s been a while since I’ve looked though. I’ve had the desire to do this for a while but never any real motivation. Thanks!

    http://www.photub.com

  4. Marco Raaphorst Reply

    I am getting an error on 2.4 (official version):
    Error while excuting
    (script-fu-lomo 1 2 1.5 20 20 TRUE)

    Error set!: unbound variable: hvignette

    Can’t use it. Maybe you can find the bug which is causing it.

    http://www.melodiefabriek.nl

  5. matt Reply

    Also using 2.4 and I get the following error on some images….

    Error while executing
    (script-fu-lomo 7 33 1.5 20 20 TRUE)

    Error: set!: unbound variable: endingx

    http://panela.blog-city.com

  6. Lloyd Budd Reply

    For the photo-illiterate like myself, can you give a basic definition of lomo? At first I thought it must be something like LOLcats, but I see that it works some magic in the photos in your example, but I have no idea what is the criteria to apply this magic.

    http://foolswisdom.com/

  7. Donncha O Caoimh Reply

    Lloyd – I thought I had posted a link to the Wikipedia page on Lomography, but no, I hadn’t. Here it is. Lomo cameras were cheap cameras with bad lenses but they created unusual effects when used. They’ve developed quite a cult following!

    Technically, this plugin creates a vignetting effect, it darkens the edges and brightens the center, while increasing the contrast of the image. It has been overused but it still remains a quick way of adding a bit of sparkle to a snapshot. Today’s picture, Dunnes Stores for Better Value has the lomo treatment. If the gradient of the sky is just right it can be attractive, or it can make the sky look all banded because Jpeg doesn’t store enough data in 8 bits ..

    http://inphotos.org/

  8. Wayne Reply

    Marco, Matt
    Got the same error, but semmed to go away if I let gimp change the colour profile to sRGB instead of the camera profile…

  9. Nick Reply

    The endingx error appears to happen if you use a portrait oriented photo, landscape ones are fine, so presumably happens in the section of code that checks for that. From a quick look at the code, it looks to me like endingx goes out of scope when the ‘if’ clause is exited, but I’m certainly no scheme expert.

  10. Donncha O Caoimh Reply

    Marco and Matt – I’ve fixed the script. Nick was right about the if statement. I moved 2 lines of code up before it and everything works!

    http://inphotos.org/

  11. mustangrider Reply

    Why is it that 95% of scripts and plugins won’t work in 2.4? and then most of the fixes are suppose to work but they won’teither? ! If the “pretty” new interface of GIMP is the only thing that works, why the hell bother?

  12. Donncha O Caoimh Reply

    mustangrider – probably because you’re doing something wrong. The script works fine. :)

    http://inphotos.org/

  13. Bruno Reply

    To fix the error on double vigneting I had to change the set! to let* as following:

    from:

    (if (= adv TRUE)
    ( begin
    (set! hvignette (car (gimp-layer-copy vignette 0)))
    (gimp-layer-set-opacity hvignette 80)
    (gimp-image-add-layer img hvignette -1)
    )
    )

    to


    (if (= adv TRUE)
    ( begin
    (let* ((hvignette (car (gimp-layer-copy vignette 0))))
    (gimp-layer-set-opacity hvignette 80)
    (gimp-image-add-layer img hvignette -1)
    )
    )
    )

    Nice filter, thanks! :-)

    http://azulebanana.com/bluey

  14. Donncha Reply

    Bruno – I tried that fix for the double vignette but it did weird things. First of all, the plugin didn’t seem to do anything, then when I clicked on layers it applied the lomo effect, but it was impossible to ctrl-z/undo the lomo effect. I wonder if it would be safer to remove the “double vignette” checkbox altogether. The dark overlay layer can be duplicated to get the same effect anyway!

    http://inphotos.org/

  15. Pingback : GIMP Lomo Plugin
  16. Marlon Reply

    For the life of me, I cannot seem to be able to install Lomo. What am I doing wrong? Heeeeeelp, please. I had 2.0, upgraded to 2.4.

    Thanks!

    http://website

  17. elsamuko Reply

    I ‘repaired’ the script and added some new features.
    http://registry.gimp.org/node/7870

    http://registry.gimp.org/node/7870

  18. Donncha Reply

    Great work elsamuko! I must give it a spin tomorrow.

    http://inphotos.org/

  19. Marco Raaphorst Reply

    thanks a lot elsamuko and Donncha! it’s working very fine under OSX for me.

    http://www.marcoraaphorst.com

  20. elsamuko Reply

    I added a black vignette and simulated film grain, now it looks even more realistic:
    http://www.flickr.com/photos/28653536@N07/2760219991/sizes/o/in/photostream/

    http://registry.gimp.org/node/7870

  21. Marco Raaphorst Reply

    @elsamuko : have you update the script with the film gain effect as well?

    http://www.marcoraaphorst.com

  22. elsamuko Reply

    Film Grain Script is still the first one, because I scripted just a description from gimpguru.com. But if you have any suggestions, make a comment there.

    If u have both scripts u can add
    (script-fu-grain img black_vignette 2 100 128)
    to line 281 of gimplomo.scm. Then the black vignette will be made grainy automatically.

    http://registry.gimp.org/node/8108

  23. elsamuko Reply

    Next little update of the GIMP Lomo Script: Wide Angle Simulation.
    Get it here:
    http://registry.gimp.org/node/7870

    http://registry.gimp.org/node/7870

  24. Pingback : Restaurant
  25. lomo gimp photoshop Reply

    Behind my link, an alternative script-fu for the GIMP to achieve the Lomo effect easily. Comments welcome!

    http://lomo-gimp.berlios.de/

  26. Cassidy Reply

    Hello!
    I love the plug-in. Is there a way to batch edit photos with lomo? Doing them one by one gets to be a bit time-consuming. I added a plug-in for a batch processor, but it does not work for lomo. Any suggestions would be appreciated!

  27. jahzz13 Reply

    Not using your plugin yet, but I will soon, and I just wanted to say “thanks” for this so-cool stuff/idea!!
    jahzz13

  28. Muad’Dib Reply

    Very thanks for script (good job).
    I write tutorial in the Polish language and added links to your scripts. This is link in PL lang http://blog.grzadka.info/2010/07/02/lomografia-w-gimp/, but the right side is a translator for the four other languages.

    Thanks again and good luck

    Muad’Dib

    http://www.grzadka.info

Leave a Reply

Loading Facebook Comments ...
%d bloggers like this: