A python script that generates a contact sheet or index print containing a configurable number of images. Multiple sheets are generated, the filename can also be included.
Hey if you find this plugin useful or useless send me an email, it has been downloaded 1000's of times but very seldom do I get any feedback.

To install copy to ~/.gimp?-?/plug-ins/ directory or /usr/lib/gimp2-0/plug-ins/ and make executable with chmod +x contactsheet.py
This updated version works with version 2.4 of The Gimp, tiff support is included.
Thanks to Elmar at http://www.sullockenzlin.demon.nl/Gimp.html for the version update and language translations.
Once again thanks the Elmar who has been responsible for all of the updates.
1. Set topmargin at least 5 mm otherwise contactsheet page will not be visible.
2. German characters (ie umlaut) in the filename will not be recognized and gives an error. Plugin stops.
3. Printing with GIMP gives a rightshift of the contactpage for unknown reasons. Use Gutenprint plugin instead.
Updated to latest current version - thanks to Elmar again.
1. Added option to disable the extension to print. Useful if you wish only a name to the photo. I used it to print a lot of passport photographs (classroom of my child) on a single sheet.
2. Added French language pack v1.0. Thanks to Hervé for the French translation.
3. Updated Dutch language pack v1.4.
4. Updated localization file.
1. Added .bmp support.
2. Updated Dutch language pack v1.3.
3. Updated localization file.
1. Added simple printing capabilities. You have to experiment with your printer for the best results. Very important: the plugin uses the default Gimp builtin printer driver (will be changed in future releases). Unfortunatly I cannot set any of the parameters (pagesize, margin, etc) you have to set the parameters of your printer first :(. Set margins in your printerdriver to zero and choose your correct papersize.
2. Added .ps/.eps support. The special .ps/.eps version of contactsheet has been removed. Remember to add ghostview/ghostscript to GIMP if you want to select an .eps/.ps type image otherwise contactsheet refused to work. For this reason selecting "all registered types" in imagetypes will exclude .ep/.eps types of images.
3. FIXED: "Under certain conditions it was possible that not all possible rows were placed on contactsheet". Problem has been solved.
4. Code has been partly rewritten.
1. FIXED: "It is possible that not all possible rows are placed on the contactsheet. These rows are placed on the next contactsheet." A miscalculation has been corrected. It was only visible when a large number of images per row was choosen without the filename option.
2. Margin round the image can now be changed in tenth of a mm.
3. Maximum number of images per row has been increased to 256.
4. Maximum number of rows has been increased to 256.
5. Maximum number of DPI has been increased to 1000.
1. A little 'error' (a testlog command has not been set to off) has been corrected, nothing else has been changed. Look for "../tmp/gimp.log" on your system, delete this file.
1. FIXED: "Set topmargin at least 5 mm otherwise contactsheet page will not be visible." Topmargin can now be as low as possible. It is the user responsebility to take care of the printable margin. For instance my printer (HP CP1700d) the left-right margin should be set at least 5mm otherwise that part of the image wil not be printed.
2. FIXED: "Textfile (if option is checked) is not emptied wih each batch run so it will grow to infinity. You have to manually empty/delete this file." Textfile is now emptied before information is written.
1. Margin round the image can now be changed from zero on.
2. Added "sorted images" as option.
3. Updated Dutch language pack to v1.2.
4. Updated localization file.
5. FIXED: "Files with an extension .j .jp .jpe .p .pc .t .ti .x .xc .pn , will be seen as images. If it is not a imagefile the plugin stops. Remove/move/rename all files with those extensions." It is not longer necessary to remove these files.
1. Margin round the image can now be changed
2. Font size can now be choosen. Be aware that fontsize automatically will be scaled down to fit the image width
3. added .XCF support
4. added a choice to save a text filelist from the printed images with the directory name where the image is located. Useful if you have a lot of images in several directory's. Name is the same as the contactpage name but with the .TXT extension
5. code has partly been rewritten
1. Dutch language pack added
1. now possible to make contactsheet of a whole directory including subdirs
2. two radiobuttons replaced by option buttons
3. added several paperformats
4. images are sorted in the way the systems sort the images
5. added extension in the filename
6. added support for pcx format
7. added making contactsheets of all registered formats in one batch
8. number of rows is now limited to paperheight (automatic scaled down if necessary)
The plugin works on the following system:
Windows XP pro SP3
GIMP v2.6.6
Python version 2.6.2c1 (r262c1:71369, Apr 7 2009, 18:44:00)
pygtk-2.12.1-3.win32-py2.6
pygobject-2.14.2-2.win32-py2.6
pycairo-1.4.12-2.win32-py2.6
Note for installation on Windows.
First install Python -> restart
Install pygtk, pygobject, pycairo -> restart
(Re)install GIMP
Unzip the language pack (newer versions at Elmar's site)
Install language pack (contactsheet.mo) in the GIMP locale directory ([drive]:\Program Files\GIMP-2.0\share\locale\[your language dir]\contactsheet.mo
Install your plugin in: [drive]:\Documents and Settings\[user]\.gimp-2.6\plug-ins\contactsheet.py. The plugin is now only available for you.
Install python
Copy the script contactsheet.py to /home//.gimp-2.6/plug-ins/
make the script executable with chmod +x /home//.gimp-2.6/plug-ins/contactsheet.py
Translations, not certain how to do this with linux yet will update when figured out
| Attachment | Size |
|---|---|
| 298.32 KB | |
| 252.23 KB | |
| 23.49 KB | |
| 252.23 KB | |
| 261.65 KB | |
| 27.88 KB |
Comments
Re: contactsheet update
If you look just below the photographs you will find a link to my website.
The original author is a busy man and I have still contact with him. He was trying to give me some admin rights for this plugin but he doesn't know how to do that. As far as I know he has contacted Ingo but I'm no sure.
The version on this site is rearly old and one shouldn't use it anymore.
Use menu="(Image)/File/Create" is a great idea. That should be a better place for this plugin I've thought about this already in the past but never changed it.
Contactsheet has one major problem: the GUI has been grown out of my screensize (therefore I bought a bigger screen ;-) ). On request I changed contactsheet to a version contactsheet-smallscreen with less options but (read the comments for this node) in the same time I decided to redesign the GUI writing it with Glade (so it's not a major rewrite I think).
There is one other contactsheet on the Gimp registry but that one is not working. Of course there are a lot of other programs on the internet but not integrated within Gimp. Perhaps there is a discussion somewhere I really don't know.
Once I decided rewriting the GUI with Glade the problems began: documentation (API's and so on) and as you have noticed already I'm not the only one. I searched a couple of weeks for information about integrating and registering Glade, Python in Gimp but found nothing useful until I read a german article (from schumaml; http://www.gimpforum.de/showthread.php?t=9287) with a little working example. And than of course your makeshortcut and inspect plugin, nice examples where I was waiting for. But for now I've trouble with Glade itself: chrashing unexpectedly. Why I still don't know, I'm still searching and waiting for the new Glade version 3.7.0. In the mean time I study your plugins try some code, make small examples, reading Glade tutorials and so on.
glade crashing, contact sheet, another app to consider
Do you mean Glade the app crashes, or your app crashes when it uses a Glade produced file? I think Glade the app has crashed just a few times for me, with no harm done. I am on Ubuntu.
Just an idea, but an application that makes another image whose pixels are themselves compressed images seems to me to be very similar to contactsheet. You call the pixelize plugin to compress the original, then choose from a set of other compressed images that you know the average color and brightness of, to replace each pixel. You've seen it, its popular in printed advertising etc. Maybe its already been done for Gimp. As if you need another project to work on.
If you get stumped with Glade or Python, post a question.
Glade chrashing
Glade the app is chrashing. I've build and modified the GUI with Glade and saved it. Next day when I try to reopen the modified GUI, Glade chrashes for unknown reasons. Then I tried several times to read it and suddenly it reopens again without chrashing but all my modifications are gone. Modify it again, save it, close Glade and then try to read the GUI again: no way, chrashing again. You are right I think I post a question on the Glade forum about this. By the way I'm on winXP SP3.
labels appeared to be missing
Small problem - you force the page background to be white and in my most recent work I had been working with a white foreground - thus the text appeared to be missing and I restarted the plugin multiple times trying to sort out why I wasn't getting the text to show (changing margins, etc.)
Once I noticed the white foreground color I changed it and all worked fine - but if you're not going to take *all* the current colors perhaps it should be an option to set the foreground color or at least to note that this is the behaviour.
Otherwise, very nice program and it's working well on 2.6.
labels appeared to be missing
Do you mean with labels the "Include filenames" option?? If yes as far as I know filenames are always printed in black but yours are white???
I have tried to cancel out the fill command and then my backgroud became black and because the filenames are printed black you cannot read the filenames anymore. That is of course correct.
Perhaps you can send me an small example I can play with and update the plugin or make a note. Go to my website (follow the link just below the pictures), nearly at the bottom of that page you will find my emailaddress.
Elmar
No success with Windows XP and Gimp 2.6
No success with Windows XP and Gimp 2.6
So... what do I do with it?
C:\Programme\Graphics\GIMP-2.0\lib\gimp\2.0\plug-insbut I can't seem to find it in the Xtns directory. I have a Python installed, but still this does not seem to be of any help. Any help would be appreciated, this plugin seems to be what I need. Alex Win XP SP2 Gimp 2.4.2 Python 2.3.5 (#62, Feb 8 2005, 16:23:02)Re :So... what do I do with it?
Any plans for U.S. paper size?
Pages