© 2007 Donncha O Caoimh

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!

26 Comments

  1. Marco Raaphorst
    Posted October 23, 2007 at 9:45 pm | #

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

  2. Posted October 24, 2007 at 12:28 pm | #

    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
    Posted October 24, 2007 at 11:40 pm | #

    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
    Posted October 25, 2007 at 9:44 am | #

    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
    Posted October 26, 2007 at 7:09 am | #

    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. Posted October 26, 2007 at 4:32 pm | #

    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.

  7. Posted October 26, 2007 at 5:18 pm | #

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

  8. Wayne
    Posted October 26, 2007 at 7:29 pm | #

    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
    Posted October 27, 2007 at 1:20 am | #

    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. Posted October 27, 2007 at 8:47 pm | #

    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!

  11. mustangrider
    Posted December 24, 2007 at 11:28 pm | #

    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. Posted December 25, 2007 at 6:37 am | #

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

  13. Bruno
    Posted December 26, 2007 at 11:32 pm | #

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

  14. Posted February 14, 2008 at 3:16 pm | #

    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!

  15. Marlon
    Posted June 8, 2008 at 2:43 pm | #

    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!

  16. elsamuko
    Posted August 12, 2008 at 4:10 pm | #

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

  17. Posted August 12, 2008 at 8:11 pm | #

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

  18. Marco Raaphorst
    Posted August 12, 2008 at 8:25 pm | #

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

  19. elsamuko
    Posted August 14, 2008 at 1:41 pm | #

    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/

  20. Marco Raaphorst
    Posted August 14, 2008 at 1:50 pm | #

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

  21. elsamuko
    Posted August 14, 2008 at 2:31 pm | #

    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.

  22. elsamuko
    Posted August 15, 2008 at 1:10 am | #

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

  23. lomo gimp photoshop
    Posted March 8, 2009 at 7:16 pm | #

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

  24. Cassidy
    Posted January 30, 2010 at 8:40 am | #

    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!

  25. jahzz13
    Posted June 11, 2010 at 10:42 pm | #

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

  26. Muad'Dib
    Posted July 2, 2010 at 12:57 pm | #

    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

34 Trackbacks

  1. By Donncha’s Friday Links at Holy Shmoly! on October 26, 2007 at 10:13 am

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

  2. By Daffodils in the sky - In Photos dot org on November 5, 2007 at 9:42 am

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

  3. By Mythical Creatures « Tech Explorer on December 3, 2007 at 1:08 am

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

  4. By GIMP Lomo Plugin at Holy Shmoly! on December 5, 2007 at 4:20 pm

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

  5. By Top 40+ GIMP plugins on December 23, 2007 at 1:09 pm

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

  6. By DogSolitude › Top 40+ GIMP plugins on December 27, 2007 at 4:44 am

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

  7. By » I 40 plugin più utili per gimp Geekissimo on December 28, 2007 at 3:24 pm

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

  8. By Quaranta plugin per The Gimp | ILaRia LaB on December 28, 2007 at 4:02 pm

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

  9. By 40 plugin utili per GIMP « Rafanto’s Blog on December 28, 2007 at 8:16 pm

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

  10. By Power up GIMP with plug-ins and GIMPshop on January 12, 2008 at 4:46 am

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

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

  12. By :: luen.org :: » Efecto Lomo con Gimp on January 25, 2008 at 11:31 am

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

  13. By Plugin per Gimp « Soluzioni Tecnografike on February 1, 2008 at 12:32 am

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

  14. By Creativity? fun, at least « Linux Photography on February 14, 2008 at 8:39 am

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

  15. By GIMP Lomo Plugin on February 17, 2008 at 10:42 pm

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

  16. By .: matteommDesignPRO | grafica e tecnologia :. on February 29, 2008 at 7:05 am

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

  17. By links for 2008-04-14 « RabiFoot on April 14, 2008 at 10:38 pm

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

  18. By Lomografía en Gimp « Keep Walking on May 8, 2008 at 4:04 am

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

  19. [...] Lomo: Hace las fotos limpias,nitidas y vivas. Especialmente indicado para fotos exteriores. [...]

  20. [...] There is a great resource I’ve used in the past to touch up photos with the GIMP, that I’m constantly recommending to people, and while I was out at LugRadio, someone introduced me to Lomo. Well, at least Lomo effects with the GIMP. [...]

  21. By Restaurant on August 17, 2008 at 7:53 pm

    [...] you’re going to hate it. This is an experiment with the newly enhanced GIMP Lomo plugin I had originally updated to work with GIMP 2.4. Elsamuko has added a few nice [...]

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

  23. [...] the incredible lomo plugin [...]

  24. [...] Lomo: Rende le foto chiare e distinte, specialmente quelle scattate in ambienti esterni; [...]

  25. By I migliori 40+ plugins per The GIMP | Creattivamente on September 5, 2008 at 1:32 pm

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

  26. By www.zeit-im-bild.com » Lomographie simulieren!!! on December 6, 2008 at 6:37 pm

    [...] Gimp gibt es das Plugin „gimplomo.scm“, mit dem man Lomographie simulieren kann. Auf der Seite inphotos.org findet Ihr einen kostenlosen Download und eine Installationsanleitung. Einige Beispielsbilder sind [...]

  27. By Lomografias con Gimp | Metsu 3.0 on January 10, 2009 at 3:42 pm

    [...] y un mundo por explorar desde la perspectiva del retoque fotográfico mediante el uso de Gimp y este plugin. Una forma de ver el mundo a través de la fotografía que me ha resultado muy curioso, habia oido [...]

  28. By :: miguelmonroy/studio on March 7, 2009 at 11:54 pm

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

  29. [...] Lomo: è un plugin ideale per le immagini all’aperto, in quanto le rende molto chiare [...]

  30. By Relic » Goddess, I Am. on January 18, 2010 at 4:16 pm

    [...] rare free day, so I thought I'd give it a try. It was a lot easier than I thought, thanks to a Gimp lomo script that I found. (Yes, I use [...]

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

  32. By Lomo Effekt mit GIMP | on May 24, 2010 at 5:59 pm

    [...] Plugin kann man hier herunterladen. Einfach auf den Link gehen > rechte Maustaste > Ziel speichern unter und als [...]

  33. [...] auch ein Plugin für den Lomo – Effekt, welches ich nicht vorenthalten will. Dieses können Sie hier bei inphotos.org herunterladen. Das Plugin wird im Gimp – Programmordner im Unterordner Scripts [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

In Photos dot Org is Stephen Fry proof thanks to caching by WP Super Cache