imagelabel - Attach text to images

Nautilus Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on

Score 50.0%

This script lets you enter text to label your images. The image is extended to make space, and the text becomes part of the image.

Choose font size, background color or border, and your text. Each time you click OK on the text window, a preview will be redrawn.

When you're finished, enter either SAVE or QUIT into the text dialog.


Extract, then move to ~/.gnome2/nautilus-scripts

Sorry for the way the dialog windows pile up, but zenity does not allow placement :-(
Last changelog:

8 years ago

0.02 -- Better scaling of preview display. Better menus.


9 years ago

First of all, you can save time and lines using "$(whoami)" variable instead of that long line for $iam.


my username is "killer".

echo "Hello $(whoami)"

Output: Hello killer

It's an interesting script, but is confusionary, and, moreover, you CAN'T exit!
Have you inserted some exit functions?

For example after a zenity dialog:

if [ "$?" -eq 0 ]; then

I suggest you to use a dialog per time:

Zenity dialog 1:
[] Change font
[] Change color
[] Show preview

and so on.




9 years ago

Hey, thanks!

I didn't know about
echo "Hello $(whoami)"

As for the chain of events, I did consider asking the questions in sequence. In fact that's how it worked at first. I changed it to multiple background tasks later. This was because I found that I might want, for instance, to change the font size repeatedly without cycling through all the prompts again.

So, the last response to each dialog is remembered, and all can be changed independently and in any sequence. However, as you see, it is when clicking OK to the text input that the preview is refreshed.

The way to exit is this: Either type "save" or "quit" in the text dialog. This ends the program. Quit just cleans up and exits. Save triggers a dialog to "save-as" the resulting file.

So that's WHY it was done this way. I wish zenity would allow a multi-section dialog which could have avoided all this confusion.

Does the save/quit help? I realize now that the explanation wasn't so great.

And THANKS for the $(whoami) tip. Setting $iam manually is a habit going way back to my Unix days :-)

-- Marc




9 years ago

No comments and no votes? Does this work for you?


8 years ago

0.02 -- Better scaling of preview display. Better menus.

product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
0 Affiliates
updated Dec 17 2010
added Apr 20 2010
downloads 24h
mediaviews 24h 0
pageviews 24h 5
System Tags addon