GIMP Lomo Plugin

October 23rd, 2007 by Donncha

This is a slighly modified version of an old plugin I’ve used for ages that will now work with the new 2.4 release thanks to some advice I remembered reading on the 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 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 .-2.4/scripts/ folder and restart the . It will appear as Image->Filters->Light and Shadow->.

Example Images

Below are two before and after examples of what the 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 images

Why the change to Script-fu?

Script-fu in 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!

Tags: , , , , , , , ,

Further Reading:

Add This Post To: Del.icio.us |  digg |  Fark |  Slashdot |  StumbleUpon |  TailRank |  Yahoo |  

This entry was posted on Tuesday, October 23rd, 2007 at 9:03 pm and is filed under Gimp, Photography, Words, lomo. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


32 Responses to “GIMP Lomo Plugin”

  1. Marco Raaphorst Says:

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

  2. Donncha O Caoimh Says:

    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!

  3. Andrew Says:

    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!

  4. Marco Raaphorst Says:

    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.

  5. matt Says:

    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

  6. Donncha’s Friday Links at Holy Shmoly! Says:

    [...] Photub for linking to the GIMP lomo plugin I released a few days [...]

  7. Lloyd Budd Says:

    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.

  8. Donncha O Caoimh Says:

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

  9. Wayne Says:

    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…

  10. Nick Says:

    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.

  11. Donncha O Caoimh Says:

    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!

  12. Daffodils in the sky - In Photos dot org Says:

    [...] day I shot these daffodils! The image has been sitting in my WIP folder for months but after my gimp lomo post I decided to post this in a larger [...]

  13. Mythical Creatures « Tech Explorer Says:

    [...] Either I had my camera on the wrong settings, or I wasn’t taking into account the strong morning light, because all of the photos had a washed out look. To “fix” this I used either this technique, or the GIMP Lomo plugin. [...]

  14. GIMP Lomo Plugin at Holy Shmoly! Says:

    [...] Here is a GIMP Lomo plugin that works in GIMP [...]

  15. Top 40+ GIMP plugins Says:

    [...] Lomo: Make photos clear, sharp and crisp. Especially useful for outdoor photographs. [...]

  16. mustangrider Says:

    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?

  17. Donncha O Caoimh Says:

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

  18. Bruno Says:

    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! :-)

  19. DogSolitude › Top 40+ GIMP plugins Says:

    [...] 40+ GIMP plugins. My favorite: Lomo This was written by rob. Posted on Wednesday, December 26, 2007, at 8:43 pm. Filed under [...]

  20. » I 40 plugin più utili per gimp Geekissimo Says:

    [...] Lomo: Per avere delle foto chiare e nitide. Indicato per le immagini all’ aperto [...]

  21. Quaranta plugin per The Gimp | ILaRia LaB Says:

    [...] Lomo: Per avere delle foto chiare e nitide. Indicato per le immagini all’ aperto [...]

  22. 40 plugin utili per GIMP « Rafanto’s Blog Says:

    [...] Lomo: Per avere delle foto chiare e nitide. Indicato per le immagini all’ aperto [...]

  23. Power up GIMP with plug-ins and GIMPshop Says:

    [...] Lomo is a plug-in that automatically oversaturates an image, taking its name from the popular Russian camera with the same effect. It works well, but it also highlights a drawback of many GIMP plug-ins: they often lack preview capabilities, making it hard to determine what exactly your changes have wrought. [...]

  24. επεξεργασία εικόνας με το GIMP « ΑΛΕΞΙΚΕΡΑΥΝΟ Says:

    [...] Lomo: Κάνει τις εικόνες ωραίες και καθαρές- για φωτογραφίες εξωτερικών χώρων. [...]

  25. :: luen.org :: » Efecto Lomo con Gimp Says:

    [...] topado con un interesante artículo en el que hablan de un plugin para Gimp para atribuir a nuestras fotos el efecto de una cámara [...]

  26. Plugin per Gimp « Soluzioni Tecnografike Says:

    [...] Lomo: Per avere delle foto chiare e nitide. Indicato per le immagini all’ aperto [...]

  27. Creativity? fun, at least « Linux Photography Says:

    [...] Gimp script which mimicks the “lomo effect” on your picture. You can get it from inphoto.org. Just copy the gimplomo.scm file into your Gimp script folder, restart Gimp; you should find [...]

  28. Donncha Says:

    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!

  29. GIMP Lomo Plugin Says:

    [...] GIMP Lomo Plugin [...]

  30. .: matteommDesignPRO | grafica e tecnologia :. Says:

    [...] Lomo: Make photos clear, sharp and crisp. Especially useful for outdoor photographs. [...]

  31. links for 2008-04-14 « RabiFoot Says:

    [...] GIMP Lomo Plugin (tags: gimp photo plugin) [...]

  32. Lomografía en Gimp « Keep Walking Says:

    [...] Tuxinga Inphotos [...]

Leave a Reply

Please vote for me at photoblogs.org if you like what you see.

Don't like adverts? Leave a comment and they disappear.