Joined
Last Seen
0 Reputation Points
100% Quality Score
- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #44.2K
~10.3K People Reached
Favorite Forums
Re:
Let's say you want to send a short private message to your friend, but don't want grandma to snoop around and find it. One way is to use the Python Image Library (PIL) and hide the message in a picture file's pixels. Just looking at the picture you will barely … |
|
from gimpfu import * def do_message_box(msg): handler = pdb.gimp_message_get_handler() pdb.gimp_message_set_handler(MESSAGE_BOX) #{ MESSAGE-BOX (0), CONSOLE (1), ERROR-CONSOLE (2) } pdb.gimp_message(msg) pdb.gimp_message_set_handler(handler) def add_steg_text(image, layer, text): length = len(text) # limit length of message to 255 if length > 255: do_message_box("text too long! (don't exeed 255 characters)") return pdb.gimp_image_undo_group_start(image) newlayer = layer.copy() … |