It is currently Fri Apr 19, 2024 12:28 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Watch Folder and load image as layer
PostPosted: Fri Jun 23, 2017 7:40 am  (#1) 
Offline
New Member

Joined: Jun 23, 2017
Posts: 2
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: New User



Hi

I wish to setup GIMP to watch a folder and load files as layers in GIMP when picture arrives. What is the best way to do it automatically?

I have tried the menu item “File -> Open As Layer” but it needs human interaction.
I have also tried the batch mode but it can run once only. I can not open additional picture the 2nd time ...

Thanks!
Eric


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Watch Folder and load image as layer
PostPosted: Fri Jun 23, 2017 12:44 pm  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13008
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
tsangh wrote:
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: New User



Hi

I wish to setup GIMP to watch a folder and load files as layers in GIMP when picture arrives.
What is the best way to do it automatically?

I have tried the menu item
“File -> Open As Layer”
but it needs human interaction.
I have also tried the batch mode but it can run once only.
I can not open additional picture the 2nd time ...

Thanks!
Eric

I'm not aware of any functionality within GIMP,
that would allow this kind of "Automatic Folder Watching" to occur.

This doesn't mean to say that this function doesn't exist,
only that I'm not aware if it does exist within GIMP.

Perhaps there's someone else here at Gimp Chat,
that might know whether this function is possible or not.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Watch Folder and load image as layer
PostPosted: Fri Jun 23, 2017 6:03 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4736
Load the layer for what? Just to display it (and if so, why Gimp)? Or is there some processing involved?

_________________
Image


Top
 Post subject: Re: Watch Folder and load image as layer
PostPosted: Sun Jun 25, 2017 12:59 am  (#4) 
Offline
New Member

Joined: Jun 23, 2017
Posts: 2
Yes, I want to take photo with my camera and have the photos to be shown up on screen as a stack of transparent layer, with my hands not leaving the camera. After preview, I can take more photo to the transparent stacks or save and start another new photo stack. I actually want to stimulate the multiple-multiple exposures effect of many camera, watch the effect on the fly (not PS at home).

I have the setup successful with Adobe Bridge + Photoshop + JavaScript, but want to use GIMP instead for its opensource and less CPU demand so that I can setup with low end portable PC, or even Raspberry Pi 3, for my friends who's camera have no multiple exposures.

I can setup the watch folder with other way with Command Shell, but I don't know how to add image layer to already opened image. I tried the gimp -b (...some_script..) , but it can not run multiple time on the same already opened image.


Top
 Post subject: Re: Watch Folder and load image as layer
PostPosted: Sun Jun 25, 2017 3:49 am  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4736
Doable with a Python script/plugin that runs inside Gimp, polls the directory and loads the images as additional layers. If you don't know Python yet but can write JavaScript, you can get reasonably proficient in Python in half a day.

_________________
Image


Top
 Post subject: Re: Watch Folder and load image as layer
PostPosted: Sat Oct 02, 2021 10:15 pm  (#6) 
Offline
GimpChat Member

Joined: Oct 10, 2014
Posts: 36
You can definitely do it in Python but that's very involved. You can setup GIMP as a image processor, you can notify it either by file watching, the easy way.


Last edited by ecs1749 on Sun Oct 03, 2021 1:49 am, edited 1 time in total.

Top
 Post subject: Re: Watch Folder and load image as layer
PostPosted: Sat Oct 02, 2021 10:20 pm  (#7) 
Offline
GimpChat Member

Joined: Oct 10, 2014
Posts: 36
ofnuts wrote:
Doable with a Python script/plugin that runs inside Gimp, polls the directory and loads the images as additional layers. If you don't know Python yet but can write JavaScript, you can get reasonably proficient in Python in half a day.


Except getting use to indentation!


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Watch Folder and load image as layer

1

No new posts Attachment(s) Unable to load an image as layer

16

No new posts script to load text file and create text layer

6

No new posts Attachment(s) Adding a image as a layer, moving layer, and then flattening

2

No new posts Attachment(s) Image Layer Disappears When I Move It

4



* Login  



Powered by phpBB3 © phpBB Group