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.
![[image]](http://mowser.com/img?url=http%3A%2F%2Fgimp-registry.fargonauten.de%2Ffiles%2FAsia000.jpg)
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
You are viewing a mobilized version of this site...
View original page here
Comments
New version contactsheet (smallscreen) v2.16 (v2.11)
Unfortunatly v2.15 has a bug for some Linux users, not for windows users. This is corrected in v2.16. This bug was found in the contactsheet smallscreen version and also this plugin has been updated to v2.11. Use smallscreen when the height of your screen is less then about 900 px
Both can only be downloaded from my website (www.sullockenzlin.demon.nl --> gimp).
For more possibilities use v3.xx instead (http://registry.gimp.org/node/24503).
Edit (16/12):
RGilham has now updated the registry with the latest vesrion of Contactsheet.
New version contactsheet v2.15
Unfortunatly version 2.14 has a bug for Linux users, not for windows users. This is corrected in v2.15. You can only download it from my website (www.sullockenzlin.demon.nl --> gimp).
For more possibilities use v3.xx instead (http://registry.gimp.org/node/24503).
Indexprint V3.20 released
Just released a new version of indexprint with several new options and improvements. If you still use V2.xx I recommend to switch to v3.xx. Contactsheet v2.xx is only in bugfix mode now. No new features will be added anymore.
# ADDED: exif date and time (pyexiv2 should be installed!!).
# ADDED: title on each page.
# ADDED: background color can be changed.
# CHANGE: pagenumber from top to bottom; you can give a start pagenumber.
# CHANGE: new Dutch translations.
# Fixed: "not reading foreign characters" now also for Linux users.
# Fixed: "not remembering last state for Linux users" now also for Linux users.
# Fixed: custom papersize is now working.
Remember that for using the exif option pyexiv2 must be installed !! For users with problems installing pyexiv2 there is a version without exif.
Latest release is now V3.30
Latest release indexprint/contactsheet is now V3.30 with RAW and more exif support.
You will find it here: http://registry.gimp.org/node/24503
New version contactsheet v2.14
I have updated the old contactsheet plugin to 2.14 with the following:
1. fixed reading foreign characters, they are now read without any problem.
2. fixed reading non image files with image extensions, they are now skipped. Gimp gives a warning.
3. Pagecounter now equal to filecounter (request G.Sprik)
Download v2.14 from my website: www.sullockenzlin.demon.nl --> gimp.
If you still use the old contactsheet plugin I recommend to update to v3.xx (http://registry.gimp.org/node/24503). The latter is also updated to V3.10
Enjoy and feel free to give feedback.
New version of contactsheet V3.xx
I have posted a new version of contact sheet and I have also renamed it to index print (http://registry.gimp.org/node/24503).
Differences between V2.xx and V3.xx:
1. using Glade for the GUI instead of PF-widgets
2. No problem anymore with small screens.
3. You can now choose one or more image types to include, not possible in v2.xx
4. You can now choose a size or ratio for the images, not possible in v2.xx
5. uses tooltips, not possible in v2.xx
6. rotate images, not possible in v2.xx
7. include or exclude filename extension, not possible in v2.xx
Known problems/limitations (V2 and V3):
Look at http://registry.gimp.org/node/24503
Why not updating this registry entry? Because I am not the owner of this entry and therefore cannot update this entry on regular base. This plugin (v2.12 and later) will be maintained by me you will find the updates on my website (www.sullockenzlin.demon.nl --> gimp). Updating this registry entry point depends on RGilham.
new version of contactsheet v2.12
The latest version of contactsheet is v2.12. Works with winXP SP3 and GIMP v2.6.8. It is released in janaury 2010 and has several new options including a French and Dutch translation. Thanks to Herve for the French translation. You can find the latest release (including the translation files and manual) on my website (I don't have admin rights for this plugin to modify). There is also a contactsheet plugin for download for small screens.
From ingo (jan2008): Is it possible to crop all picture to be square, so that the index is regular? Yes with my photoprint plugin you can (not yet published, see my website for download). Note: photoprint will be integrated in v3 of contactsheet (if possible).
contactsheet update
Please post a link to your website that contains the new version. I could not find it using the obvious search.
May I suggest that you start a new thread here with the latest version? (Since you don't have rights to update this version.) ( I assume that the original author is no longer maintaining it.)
The version in this thread has problems with its registration. I believe the registration parameters were copied from an outdated (but still working?) plugin that uses deprecated (no longer recommended, but still supported) forms of parameters.
Should not the plugin register with label="Contact Sheet" and menu="(Image)/File/Create". (I actually used menu=(Image)/Filters to get it to install.) ???
I tried label="Contact Sheet" and menu="Save" but got the error:
attempted to install Save procedure "python-fu-contact-sheet" which does not take the standard Save Plug-In arguments: (INT32, IMAGE, DRAWABLE, STRING, STRING). ( I elided the less than, greater than chars from the above.)
I think the problem is: Contact Sheet is not a Save plugin, its a Load plugin. It creates an image. The fact that it loads from many other files is a complication. It might mean that you can't register like other Load plugins.
From your other posts, it seems like you are doing a major rewrite. May I suggest that you look at what is done in other imaging programs, for contact sheet like functions. I can't believe it has not already been done for Gimp, or if not, there might be a discussion somewhere about why it hasn't been done or about what it should look like.
Good luck
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
Dialogue Window Size
Dialogue Window Size
Dialogue Window Size
Dialogue Window Size
If you want a different
If you want a different
UTF-8 codification?
UTF-8 codification?
Works just fine in my XP SP2 + Gimp 2.6.6
Xp
How to use plugin in linux?
How to use plugin in linux?
Use in GIMP 2.4.7
Debian Lenny comes with GIMP 2.4.7. I have tried different versions of this plug-in, including v.3 and the one for small screens, but none has worked. Does anyone have experience of using the same software?
Use in GIMP 2.4.7
I don't know why version 2.xx is not working on Gimp 2.4 (it should work, although I have not tested it) perhaps others have other experiences. I can only imagine that some modifications I made -in the first version- are not backwards compatible. I remember the following, changed the following line in the code:
ThumbsPerSheet = int(num_col*num_rows) #added 'int' for python v2.6
Only adding "int" to the code makes contactsheet working in Gimp version 2.6, but is this working in 2.4??? Should I remove this for version 2.4?? I don't know, perhaps people can tell me.
But I know the following:
Version 3.xx needs GTK+ v2.16 or newer. This GTK+ version is provided by Gimp version 2.6. If you planned to use contactsheet v3.xx you must install Gimp 2.6.
So the best thing I can advise is to upgrade the Gimp version to the latest one (2.6.10)
will be better install a
will be better install a recent version of gimp, ..good chances that most of the deb packages will work as example that from getdeb, even if they were created for Ubuntu..that anyway is based on debian
If that doesn't work (no risk , just you will get a error message trying to install the the package ,) you may search in other Deb repository
Thank you. Looks like I may
Thank you. Looks like I may have to try that.
window resize and mouse problem
Unfortunately I don't know
Preview of most the plugin
window resize and mouse problem
sorry-- an addition
sorry-- an addition
Crash in Gimp 2.6
Crash in Gimp 2.6: TypeError
Hello, When do you plan to
Hello, When do you plan to
thank
Crash in Gimp 2.6
Crash in Gimp 2.6
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?
Mod for US Paper Sizes
elif (contact_size == "Letter"): width,height = (216,279) elif (contact_size == "Legal"): width,height = (216,356) elif (contact_size == "Tabloid"): width,height = (279,432)Next, edit the register() section at the bottom, change the radio button options for contact_size like so:(PF_RADIO, "contact_size", "Contact page sheet size:", "A4", (("A4 (20.9x29.7 cm)", "A4"), ("Jumbo (10.2x15.2 cm)", "Jumbo"), ("6x8 (15.2x20.3 cm)", "6x8"), ("8x10 (20.3x25.4 cm)", "8x10"), ("Letter (8.5x11 in)", "Letter"), ("Legal (8.5x14 in)", "Legal"), ("Tabloid (11x17 in)", "Tabloid"))),Save the file and restart GIMP. - Dannice one
Thanks for the comment