It is currently Thu Jun 27, 2024 12:42 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Layering images rom different directories.
PostPosted: Tue Apr 27, 2021 1:02 pm  (#1) 
Offline
New Member

Joined: Apr 27, 2021
Posts: 4
I have been scouring the web to try to find what I'm looking for, but as how I'm completely ignorant I haven't gotten anything to work.

Let me explain what I'm trying to do. I have images in two different directories. I need to layer one image on top of another image to plug holes in the alpha channels of the main image. Files in both directories have the same name so they can't be in the same directory and it will be ran on multiple files.

File "1" from directory "a" needs to be layered over file "1" from directory "b". Then file "2" from directory "a" needs to be layered over file "2" from directory "b" and so on until the files are all output correctly. The files from Directory "b" will need to be overwritten.

Is there a way to do this?

Thank you.


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: Layering images rom different directories.
PostPosted: Tue Apr 27, 2021 4:14 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1362
Ofnuts 'Interleave Layers' does exactly what you want.

'Open as Layers' from each directory on different canvases. That means you have Gimp in 2 different Tabs. Then open Interleave Layers from the base layer canvas. The layers have to be the same size.


Top
 Post subject: Re: Layering images rom different directories.
PostPosted: Tue Apr 27, 2021 4:19 pm  (#3) 
Offline
New Member

Joined: Apr 27, 2021
Posts: 4
Thank you is a way to do this in batch. I'm talking about 100s of files here.


Top
 Post subject: Re: Layering images rom different directories.
PostPosted: Tue Apr 27, 2021 4:29 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1362
Yes. I work with hundreds or thousands of files all the time. Don't need a batch script when you have a python script.


Top
 Post subject: Re: Layering images rom different directories.
PostPosted: Tue Apr 27, 2021 4:43 pm  (#5) 
Offline
New Member

Joined: Apr 27, 2021
Posts: 4
Ok, how do I use this to do multiple files?


Top
 Post subject: Re: Layering images rom different directories.
PostPosted: Tue Apr 27, 2021 11:59 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1362
Installing plugins and using Gimp on more than 1 canvas are different questions.

When you download any plugin (python) you must make it executable.
This particular plugin is found under 'Image > Interleave Layers'.

Open Gimp, select 'open as layers' for the files in directory 1. This is important. You don't want 900 instances of Gimp.
You only want 2 instances of Gimp with the same sized layers. These layers are the files in your 2 directories.


Top
 Post subject: Re: Layering images rom different directories.
PostPosted: Fri Apr 30, 2021 12:16 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4750
slentara1 wrote:
I have been scouring the web to try to find what I'm looking for, but as how I'm completely ignorant I haven't gotten anything to work.

Let me explain what I'm trying to do. I have images in two different directories. I need to layer one image on top of another image to plug holes in the alpha channels of the main image. Files in both directories have the same name so they can't be in the same directory and it will be ran on multiple files.

File "1" from directory "a" needs to be layered over file "1" from directory "b". Then file "2" from directory "a" needs to be layered over file "2" from directory "b" and so on until the files are all output correctly. The files from Directory "b" will need to be overwritten.

Is there a way to do this?

Thank you.


You should have a look at ImageMagick, it is a (free) toolbox of image operations designed to be used from shell scripts.

_________________
Image


Top
 Post subject: Re: Layering images rom different directories.
PostPosted: Fri Apr 30, 2021 12:26 pm  (#8) 
Offline
New Member

Joined: Apr 27, 2021
Posts: 4
I know of image magick but IDK how to use it


Top
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts More RPG images

3

No new posts RPG images summary

7

No new posts Resizing Images

6

No new posts save images according to abc

1

No new posts Site bug? (large images until I log in)

4



* Login  



Powered by phpBB3 © phpBB Group