imagelabel - Attach text to images

Nautilus Scripts

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
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.

REQUIRES:
zenity
imagemagick
kcolorchooser

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

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

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


Ratings & Comments

3 Comments

TheWiseDj

First of all, you can save time and lines using "$(whoami)" variable instead of that long line for $iam. Ex: 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 exit fi I suggest you to use a dialog per time: Zenity dialog 1: [] Change font [] Change color ... [] Show preview and so on.

marc41

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

marc41

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

Pling
0 Affiliates
Details
license
version 0.02
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

More Nautilus Scripts from marc41:

Audio/Video/Image/Text/ISO Convert
marc41
last update date: 8 years ago

Score 8.1

newrez - Increase Screen Rez For Netbook
marc41
last update date: 11 years ago

Score 8.1

newrez-v
marc41
last update date: 12 years ago

Score 5.7

Watcher -- Zenity Progress Window
marc41
last update date: 15 years ago

Score 6.5

Ordinator - sort images during drag/drop
marc41
last update date: 15 years ago

Score 5.0

Other Nautilus Scripts:

Gflv2avi
acidc00l
last update date: 15 years ago

Score 5.0

My Movie Portal v3.2.8
iTechScripts
last update date: 13 years ago

Score 4.7

Browse Nautilus as root
SteveSims
last update date: 17 years ago

Score 5.0

Open Nautilus as Root
Mariux
last update date: 17 years ago

Score 5.0

Compare Strings
cdmn
last update date: 17 years ago

Score 5.0

grooto
pontos
last update date: 17 years ago

Score 5.0



System Tags