Guillotine into Layers

Short description:,
The Guillotine-into-Layers plug-in is a variation on the Guillotine plug-in by Adam D. Moss. It is intended to address a shortcoming of the original: Too many windows opened! There is, however, a trade-off.

Advantages:
The Guillotine-into-Layers plug-in slices the original image along guides just as does the standard Guillotine plug-in; however, instead of spawning many new images - which clutter the desktop and bog down the processor, this plug-in makes only one new image with multiple layers - one layer for each rectangular region. The user can then selectively copy a single layer from this new image, and paste it as a new image, giving the user greater control. Furthermore, the new image is named with the *.xcf file suffix. That way, if the user needs to stop processing the layers of the new image before s/he is done, then s/he can simply save the new image in the GIMP's native format - which preserves multiple layers.

The trade-off:
When the original Guillotine plug-in slices an image, each new image has the same number of layers as the original, each copied from the same rectangular region. On the other hand, the Guillotine-into-Layers plug-in performs a copy-visible-layers action over each region to produce a new layer for the resulting image - implicitly merging the original layers.

Update 2009-11-8:
The second package - v.0.1.1 - contains an executable compiled for Windows platform and French translations - both from samj. See:
http://registry.gimp.org/node/19886#comment-5923

No votes yet
AttachmentSize
guillotine-into-layers-0.1.tar.gz21.96 KB
guillotine-into-layers-0.1.1.tar.gz26.75 KB

Comments

Windows binaries

Windows binaries

Merci beaucoup!
Thank you very much!

Comment cela fonctionne-t-il ?
How does it work for you?

Apportez une traduction a la Francais (fr.po) s'il vous plait?
Could you please provide a French translation file (fr.po)?

Apportez le code pour la compilation pour Windows (Makefile?) s'il vous plait?
Could you please provide the compiler code (Makefile?) for installing this plug-in on a Windows platform?

Cordialement... yours,
Randall

Post-scriptum:
Je ne parle/lis/ecris Francais bien pas. Je possede US-clavier.

Windows binaries

it works for me too

But the package is too confusing for Windows users :
Only the exe and a README.txt (with how to install and link to the code ) are needed

Well even the translation files may be useful but few will know were place them..that should be explained in the README.txt

(but few will read a README.txt if not as last resource )

But the package is too

But the package is too confusing for Windows users :
Only the exe and a README.txt (with how to install and link to the code ) are needed

The package is not only for Windows users, and it's better to include sources.

... and there are Windows

... and there are Windows users who know how things are supposed to work. I appreciate it when people who provide binaries to not limit the packages to the lowest common denominator.

Knowledgeable Windows Users Wanted

Hi, schumaml!

If you contact me with the instructions necessary to compile and install the original guillotine-into-layers on a Windows platform, then I will repackage the plug-in with that information and replace it! I would certainly prefer that over simply providing the pre-compiled binary for the lowest common denominator. After that, when I re-release the package, it will be compressed as a .zip file.

Yours,
Randall

Building instruction (for

Building instruction (for GIMP, but that doesn't really matter) are available at http://wiki.gimp.org.

Currently the wiki is offline, but when it is back you could get the guide from there and include it in the packages.

Thanks

Thanks

does it work for you? it

does it work for you?
it works well.

****

you please provide a French translation file (fr.po)?

#: ../src/guillotine_into_layers.h:37
#: Blurb: Brief description
msgid "Slice visible contents of image along guides into layers of a new image"
msgstr "Découpe les contenus visibles définis par des guides en calques dans une nouvelle image"

#: ../src/guillotine_into_layers.h:38
#: Help Paragraph: Detailed description as it appears in the plug-in browser
msgid ""
"Guillotine-into-Layers is a variation on the standard plug-in Guillotine. "
"This plug-in creates a new image with a number of layers - one for each "
"rectangular region defined by the guides and edges of the original image. "
"The visible contents of each rectangular region are copied, and then pasted "
"as a unique layer of the new image. The new image derives its name from "
"that of the original. It is given the suffix '*.xcf' so that it can be "
"readily saved in a format which preserves multiple layers. The original "
"image is unaffected."
msgstr ""
"Guillotine-into-Layers est une variation du greffon Guillotine. "
"Ce greffon crée une nouvelle image avec calques - un calque pour chaque "
"région rectangulaire définie par les guides sur l'image d'origine. "
"La partie visible de chaque région est copiée et passée "
"comme un calque unique sur la nouvelle image. Le nom de la nouvelle image provient "
"de l'image d'origine. Le suffixe '.xcf' permet "
"de sauvegarder l'image dans un format qui préserve les calques. L'original "
"n'est pas affecté. "

#: ../src/guillotine_into_layers.h:39
#: Author Name:
msgid "Randall Sawyer"
msgstr "Randall Sawyer"

#: ../src/guillotine_into_layers.h:40
#: Copyright Declaration:
msgid "Copyright (C) 2009 Randall Sawyer"
msgstr "Copyright (C) 2009 Randall Sawyer"

#: ../src/guillotine_into_layers.h:42
#: Menu Item Label: Label by which the user chooses this tool
msgid "Guillotine into layers"
msgstr "Guillotine into layers"

#: ../src/guillotine_into_layers.h:44
#: Error message: New image is created, but it is missing layers
msgid "warning: Failed to create at least one expected layer"
msgstr "avertissement: Impossibilité de créer au moins un calque comme prévu"

#: ../src/guillotine_into_layers.h:45
#: Error message: No new image was created
msgid "error: Unable to create new image"
msgstr "erreur : Impossible de créer une nouvelle image"

#: ../src/guillotine_into_layers.h:47
#: Root name for a new image:
msgid "Untitled"
msgstr "Untitled"

#: ../src/guillotine_into_layers.h:48
#: What the plug-in has done with the image:
msgid "sliced_into"
msgstr "sliced_into"

#: ../src/guillotine_into_layers.h:49
#: Plural of noun 'layer':
msgid "layers"
msgstr "layers"

#: ../src/guillotine_into_layers.h:50
#: Singular of noun 'region' - refers to rectangular region:
msgid "Region"
msgstr "Région"

****

you please provide the compiler code (Makefile?) for installing this plug-in on a Windows platform?
It's not necessary on a Windows platform (There is no change in your source code).

French Translation & Windows

Hi!

I have updated this plug-in package: It now contains samj's French translation, the Windows executable, and instructions for installing on a Windows platform. I have made it available as an alternative attachment: 'guillotine-into-layers-0.1.1.tar.gz'. ( See top. )

Merci, samj!

Yours,
Randall

French Translation & Windows

If contain the Windows binary a zip would be a better chose then tar.bz.

In Windows zip could be opened on the fly, with no need of additional software (at least in XP, Vista and 7 ) but not tar.bz

Also will make more clear at first glance wich is the Windows version, ( Win users are familiar with zip, and may believe .tar.bz for source code and linux binary

Even if is easy open tar.bz with something as 7zip

File Compression

Hi, PhotoComiX!

The next time I re-release this package, it will be as a .zip file, per your request. However, not until I get some assistance with compile-and-install instructions for the Windows platform. (See my response to schumaml above.)

Yours,
Randall

File Compression

i saw

to run on win only move the exe exe file in a gimp plugin folder seems needed

(In this case the plugin doesn't require extra libraries )

Obviously a README.txt files is very useful...do not forget the .txt extension or many will report problem to read the file or simply will give up.

Windows users that may need the source code, in my opinion, will have no problem to get it by the link in the Readme.txt files...for the others may be just confusing a extra folder full of exotic files of no any practical use and that not average user may open...something confusing not a advantage

Who want and is able to compile in Windows just need the link for the project and source code...and here a hyperlink may be better then files because will link to the updated version

Many for windows binary just provide a exe without any note, idislike that , a short and clear README.txt with a how to install and use+ link to the project and the source code is always welcome

But confuse Windows users with extra folders, full of files that a average windows users will be never able to open,.if not after a lot of Googling. (as example INSTALL or MAKE and all others files with no extension) is really not needed

For windows the .exe and a clear READ_ME_HOW_INSTALL_USE.txt is all what is needed, more just would confuse

Of course the link for the source code should be not missed in that READ_ME_HOW_INSTALL_USE,txt

Including source

Windows users that may need the source code, in my opinion, will have no problem to get it by the link in the Readme.txt files...for the others may be just confusing a extra folder full of exotic files of no any practical use and that not average user may open...something confusing not a advantage

The provider of the package may be providing the source code within the package so that his GPL3 license obligations are fully met at the time the binary is provided. If only the binary is provided, the distributor is required for three years to, upon request, provide the source code to anyone having a copy of the binary.

correct

So if as example the source was uploaded here, on the plugin page , we may suppose that will remain available for at least 3 years ?

The source ode as a fact is even stripped away from the packages of most linux distro, why we should be more rigorous for the Windows versions?

One simple reason: We are no

One simple reason: We are no Linux distro.

Have a look at e.g. Debian, their ability to provide the source reliably code for many years is beyond anything we'll be able to achieve. Take one simple server outage and a busy schedule for Ingo, then the source code is not available.

BTW, are we discussing

BTW, are we discussing samj's binaries package or Randall's?

Nothing wrong in both

Nothing wrong in both binary
My was just a general point : if possible keep it simple and friendly

But then schumaml

i downloaded a lot of windows binary you compiled, from your side or here, and i seldom found included in their zip the source code
(usually were not zipped with a README file with the link )

Yes, I have to change all of

Yes, I have to change all of the binary packages I offer.

Dreadful Binaries

I have provided no binaries of my own. I am a Linux user. samj compiled my source code into a Windows binary without explaining how. [I really don't like that too much. =( ] In my second attachment ( 0.1.1 ), I have included samj's binary as stop-gap convenience for other Windows users.

compile under Windows

Bonjour,

am a Linux user. samj compiled my source code into a Windows binary without explaining how. [I really don't like that too much. =( ]

I compile under Windows (using MinGW / MSYS) the same way as Linux (There is no difference).

Did you really try this with

Did you really try this with all the GIMP versions you listed?

Applicable Versions

No, I only tried it with GIMP 2.6. There is one C function "gimp_edit_copy_visible" which - according to the notation in the API - was implemented beginning with the release of GIMP 2.2. So, I assumed that my plug-in code would work with all versions of GIMP since that one. If I am mistaken, then please let me know, and I will update this posting.

Yours,
Randall