| Attachment | Size |
|---|---|
| 71.62 KB |
GIMP Book is a script for managing multiple pages in the GIMP, it's great for creating comic books, illustrated books, sketch books or similar. It opens a separete window with thumbnails of all your pages, where you can add, delete, sort and rename them. Once you're done you can export your book to various formats, for web or print.
Creating a comic book is a lot of work, work you don't want to loose, so make sure you backup all your files regularly!
Unzip the .zip file, and copy the content into ~/gimp-2.6/plug-ins/. The next time you start the GIMP, you should find it under the Windows menu. GIMP Book is written for Gimp 2.8 (but should work in 2.6) and Python 2.7. If you're using Python 2.5, you need to install the json module manually.
Start by opening the GIMP, and the GIMP Book interface from the Windows>Book... menu. You'll be presented with an empty Book window, in which you can choose File>New Book (Ctrl-N).
In the Create a New Book dialog, enter a name for your book, size and destination. GIMP Book will create a folder at that destination, with the name of your book, a a couple of subfolders for and a *.book file.
When you create a book, you'll see a Template.xcf thumbnail show up in your Book window. This is used as a template for all new pages that you add. You can double click it to open it in the GIMP, and make any adjustments to it you like. It's a good idea to spend some time adjusting the resolution, adding print markings, default layers and any other things you may need for the pages of your book. You can adjust the template at any time later, but changes to it, won't affect existing pages.
The template is always shown as the first page of the book. It is numbered as page zero when exporting, and is not exported by default.
The thumbnails used in GIMP Book, are standard GTK thumbnails. This means that their size is controlled by the GIMP itself. To get bigger thumbnails, got the the Edit>Preferences menu in the GIMP, under Environment, and change Size of thumbnails to "Large (256x256)". This won't affect existing thumbnails until the next time the file is saved, or you delete the thumbnail cache.
There is no need to save your book. When you add pages, move them around, or delete them, GIMP Book saves those changes instantly. The only thing you need to save, is the actual GIMP .xcf files, when you work on them.
To open a book simply choose File>Open Book... from the Book window, and use the standard open dialog to locate your *.book file. The book will open in the Book window, and you can start working on it. If thumbnails have not been generated for your book (which for instance happens if you move it to a different folder, loading will take a short while as new thumbnails are generated.
To open a page, simply double click it, and it will load in the GIMP.
To manage your pages you use the options in the Pages menu, and by dragging the thumbnails of the pages themselves. Alternately you can use the right click menu, the icons in the toolbar or keyboard shortcuts.
The easiest way to do this is simply to double click the page you want to open, and it will load up in the GIMP. You can also hit the return key with a page selected or choose Pages>Open to open it. Once you're done working on it, simply save and close it.
To add a new page based on your template simply choose Pages>Add (Ctrl+A). You will be asked to give the page a name. Use a unique and descriptive name that helps you identify the page. Pagenumbers are added on export, so you don't need to number your pages, unless you want to. New pages are added to the end of the book, if no page is selected, or at the selected page if one is.
With a page selected, choose Pages>Duplicate (Ctrl+D). You will be asked to enter a name for the newly created page.
Select the page you want to rename, and choose Pages>Rename (Ctrl+R). Enter a new name, and you're done. Make sure you don't have the page open in GIMP before renaming it.
To delete a page, simply select the page, and hit the Delete button. You'll be asked to confirm that you really want to delete the page. Make sure you don't have the page open in GIMP, before deleting it.
When you delete a page in GIMP Book, it is not deleted permanently, but moved to your_book/trash/date_pagename.xcf, in case you want to get something from it later. You can freely delete the content of your_book/trash, if you want to free up disk space.
You can import pages to your book by simply choosing Pages>Import Page(s), and selecting the page(s) you want to import. This can be handy for importing scanned sketches. The pages will show up at the resolution they are in, and will ignore the template you are using. On import they are converted to .xcf files. Importing supports most of the common image file format.
While import does support .svg and .pdf, it does not display any dialog letting you chose what resolution or page to retrive from those file format. If you need to import these formats, you're probably better of importing them manually into the GIMP first, and saving them out as .xcf files, which you can then import into GIMP Book.
Note that you can use the import feature to retrive pages you have previously deleted from you book. You can find these in [your_book]/trash/[date]_[pagename].xcf.
To reorder the pages, simply drag them around to where you want them.
Storyboard mode toggles the page view between two column book view, and a flowing storyboard view that fills the width of the Book window. To toggle between the two modes, use the View>Storyboard Mode menu.
Once you're finished with your book, you can export it to several different formats. To do this simply choose File>Export Book... from the menu in the Book window.
At the top of the tab, you can choose the name of the folder you want to export your book to. GIMP Book will create a new folder with the name of your book at that destination, and fill it with images in the format you specify.
For naming the pages you can choose between using the name of the book (e.g. 1_My Book.jpg), the name of the pages, simply using page numbers with no name, or using a custom name that you enter in the Custom Name field.
You can choose the page range you wish to export. Page 0 is the template, which you probably don't want to include in your export.
Layer tags are used to hide or show tagged layers. It can be used for doing multi-lingual comics, to hide sketch layers, and so on. To tag a layer simply put any tag between square brackets [] in the layer name. For instance "[en] Speech Buble" or "[sketch] Car Chase". Layers can have multiple tags, but if the tags match both hide and show, show wins.
To hide or show layers, simply enter a comma separated list of tags, without the square brackets [], in the appropriate hide or show field (e.g. "en,de,no,sketch"). On export, layers matching the tag will be hidden or shown, before exporting.
For the remining layers, that don't match any tag, you can choose to either leave their visibility as is, hide or show them.
You can tag layer groups too in GIMP 2.7 or later. If you hide a layer group, everything within it will be hidden independently of the tag used on those layers.
On export you can change the margins of your pages. This is similar to Canvas Size in GIMP, but uses relative page margins instead of width and height and an offset. Negative values, vill crop the image, while positive will make the canvas bigger. You can choose between using the background color saved in the image, black, white or a custom color, for the background when you make the image bigger.
The image size tab is basically the same as the standard GIMP one. You can choose width or height, as pixels or percentiles, and choose the interpolation method to use. GIMP Book uses the template for you book, to decide the aspect ratio, when choosing scale values.
You can choose to export your book as a sequence of gif, xcf, jpg, psd, png or tiff files. The save options for the different file formats are basically the same as in GIMP. For xcf and psd, you can choose not to flatten the image, keeping layer data intact to work on the files further.
When you've chosen all your export options, hit the Export Pages button, and GIMP Book will start processing your pages. This can take a short while, as each page needs to be loaded, possibly modified, and then saved out again.
Gimp Book is now available in Frecnh thanks to Patrick Depoix. On Linux, if your operating system is set to French (i.e. the LANG variable is defined as fr_FR), it will automatically show up in French. Windows unfortunately doesn't set the LANG variable, but if you set it system wide, it should work there too.
If you would like to help out with translations, check out the ReadMe in the locale folder. I appreciate the help.
If you just want to use GIMP Book, you can stop reading here. If, on the other hand, you want to know a little bit more about what it does, keep reading.
GIMP Book stores the pages of your book in a simple file structure that looks like this.
MyBook/
|-- MyBook.book
|-- pages
| `-- Template.xcf
`-- trash
All your pages and the Template are stores in the pages folder as plain .xcf files. Any pages you delete are moved to the trash folder. GIMP Book only touches the xcf files on a few occassions, when adding, duplicating, renaming, deleting and importing pages.
The *.book file, is a simple JSON text file, that contains a list of your pages in the order they are shown. That looks like this:
{
"pages": [
"template.xcf",
"Outside the Museum.xcf",
"Burglar Climbing in Window.xcf",
"Knocing Out Security Guard.xcf"
]
}
When you move pages around, all that happens is that the list of pages in the *.book file is changed. The *.book file keeps no record of pages that have been deleted or anything else at the moment. I may add more features to it in the future, but will try to keep them compatible with the current format.
Any time you do changes, such as move, rename, add or delete a page, the *.book file is automatically updated.
Comments
Just a few updates...
I've updated the documentation, added page importing and changed the interface around a little bit, adding a View, Pages and Help menu. I've also added keyboard shortcuts to most page management actions.
All of what I had on my high priority feature list is now in place, and I've began looking into the lower priority ones. If you have any feature suggestions, don't be afraid to post them here.
Updated Gimp Book to run on Windows...
I've updated the GIMP Book plug-in to run under Windows. It requires that you have a working version of Python 2.6 along with Gimp 2.6. In addition I fixed a minor bug that would fail if no ~/.thumbnail/large or normal folder existed.
GIMP Book should still be considered beta. I guess I'll move it out of beta when I've used it to create a short comic book. :)
i cnt get it to work can you help me out please..
i installed this three days ago as it said but it still dont show up when i open gimp.I dont understand.i have windows 7 Gimp 2.6 and python 2.6 as well and still nothing happens
Still not working in Widows XP 32 bit
Even after updating from Python-2.6 to Python-2.6.4 i still get the import urllib error..
GIMP 2.6.11 Python Console
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
>>> import urllib
Traceback (most recent call last):
File "", line 1, in
File "C:\Python26\lib\urllib.py", line 26, in
import socket
File "C:\Python26\lib\socket.py", line 46, in
import _socket
ImportError: Module use of python27.dll conflicts with this version of Python.
>>>
Not sure what to fix now.Unless i need to make sure Python-2.6.4 is my first version in the windows PATH variable?
It almost seems like Windows is calling Python27 to run the plug-in.
EDIT- Changing the PYTHONPATH variable did it. :)
Nice plug-in thanks Ragtag!
-Rod
Updated to work with Normal size thumbnails...
I've fixed the bug in the plug-in that made it fail when thumbnail size was set to Normal, and uploaded it here.
large size
Great! That's the right solution : setting the thumbnail size to large i got a very usefull plugin!
Thank you ragtag!
Thank you..........
Thank you for the help. The urllib and hashlib are installed but unfortunately it doesn't work. I think i have to find an other way running this plugin, or to give up:-(
some trouble
The file could be as executable intalled,but it doesn't work fully under ubuntu 11.10.
Gimp book could be opened and the book window too. As i want to create a "new book" i became the "book avertissement": failed to find or build thumb for/home/xxx/desktop/new book/pages/Template.xcf.
In fact i found the file "new book" on my "desktop" with pages/trash/new book.book !!
But gimp couldn't re-open this one.
It's a VERY FINE PLUGIN ! Can somebody help to use it ? Many thanks !
Hmmm...I'm unable to recreate
Hmmm...I'm unable to recreate that error on my 11.10 install. It's the find_thumb method in the Thumb class that is failing to find the thumb. I'm guessing the reason is you're missing either the python urllib or hashlib. You can test this by running python in the terminal, and entering:
import urllib
import hashlib
If they are not installed, you should see an error.
I did a clean install of
I did a clean install of Ubuntu on a virtual machine, and managed to find the source of this bug. The script doesn't work correctly with Normal size thumbs.
To get around it, open the preferences in Gimp, and set the thumbnail size to Large. Then it should work correctly.
I'll get around to fixing this soon, so it works when thumbnail size is set to Normal too. :)
Pages