It is currently 18 Feb 2018, 09:02

GIMP Python Fu ScriptsComments Edit/Read Scripts for GIMP (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
Post Reply
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 3/4
Posts: 2155
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,887.02 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1192
x 256
Contact:
Canada

Comments Edit/Read Scripts for GIMP

Post#1 by tim » 06 Apr 2017, 04:45


Fran6 gave me this idea of having notes specific to each Image (exported image file).
Apparently, ofnuts just let me knnow that this functionality is already built into GIMP under Images/Image Properties/comment tab
So here are two scripts to allow that.
:download:
Comments_Edit.zip #
zipped 2 .py files (unzip and put both in your GIMP's /plug-ins/ folder)
(2.06 KiB) Downloaded 12 times
:download:
Comments_Edit (2).zip #
version 2 (set flag to 1 so that it's persistent for .xcf files as well)
(2.09 KiB) Downloaded 16 times
Script Menu Locations: Python-Fu/Comments Edit... and Python-Fu/Comments Read


Instructions:
1) Before saving an image, just run Comments Edit script and enter anything (even multi-line comments).
2) Save image.
3) Then next time you open the image, just run Comments Read script and it'll generate a new image with your entered comments from before.

Comments Edit dialog:
Comments_Edit_Where_You_Can_Enter_TODO_notes_or_whatever.jpg
Comments_Edit_Where_You_Can_Enter_TODO_notes_or_whatever.jpg # (27.54 KiB) Viewed 324 times (Watermarked | Thumbnail)
Comments Read sample output:
Comments_Read_Script_generates_a_new_image_with_comments_text.jpg
Comments_Read_Script_generates_a_new_image_with_comments_text.jpg # (31.06 KiB) Viewed 324 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
User avatar
Fran6
Forum Member
View: Showcase | Slideshow
Topic Posts: 1/4
Posts: 32
Joined: 04 Apr 2017, 15:32
Cash on hand: 30.00 GLP
Gender: Guy
Location: France
x 19
x 4
France

Post#2 by Fran6 » 06 Apr 2017, 06:52


It works with the "save as" menu entry. So you can "save as" an xcf image with the same name in order to use this script.
Thank you Tim ! I was on a wrong way when I was searching a related memo for an old xcf image, but you have found a solution !
0 x



Image

User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 3/4
Posts: 2155
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,887.02 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1192
x 256
Contact:
Canada

Post#3 by tim » 06 Apr 2017, 14:07


Fran6 wrote:
06 Apr 2017, 06:52
It works with the "save as" menu entry. So you can "save as" an xcf image with the same name in order to use this script.
Thank you Tim ! I was on a wrong way when I was searching a related memo for an old xcf image, but you have found a solution !
Doesn't seem to work for me....after saving as .xcf. I close it and reopen it and the read doesn't work.

PS: I got some help on gimp-forum.net (http://www.gimp-forum.net/Thread-don-t- ... nformation). Just had to set a flag to 1 for it to be persistent. Now it works on .xcf as well you don't have to "Save As" ("Save" works fine). This change is in version 2 of script (see 1st post).
0 x



aka Tin
Image gimplearn.net                                              

User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 3/4
Posts: 2155
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,887.02 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1192
x 256
Contact:
Canada

Post#4 by tim » 06 Apr 2017, 19:06


Ofnuts just mentioned that this is already built in GIMP.
Image/Image Properties/comment tab.
0 x



aka Tin
Image gimplearn.net                                              

Post Reply

Last 20 Members Who Visited This Topic

User avatar Wallace (1), User avatar Pat625 (1), User avatar gnerd (3), User avatar Steve Reid (1)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: gnerd
2: Pat625
3: RJKD
4: Ella
5: Ella
6: leopardo-40
7: trandoductin

Who is online

Users browsing this forum: No registered users and 1 guest