Page 1 of 2
Combine/Stack image files
Posted: 2014-03-07T08:26:49-07:00
by Axelotl
Hey complete newbie here,
I read a few people who used ImageMagick to stack/combine image files together in a sequence but they didn't say how.
The files I downloaded were split into separate image files in seperate folders, for example the image is chopped up into 3 different image files.
I could do this manually with any other image editor however the problem is that there are many pages of these split up images and it'll take too long.
How do I do this?
Re: Combine/Stack image files
Posted: 2014-03-07T08:46:03-07:00
by Bonzo
You need to post an example of what you are talking about - or a link to an online example - stack/combine can mean lots of different things.
It may involve some other code like a shell script or batch file; how were you going to run the code?
Re: Combine/Stack image files
Posted: 2014-03-07T14:07:55-07:00
by Bonzo
Re: Combine/Stack image files
Posted: 2014-03-07T21:01:41-07:00
by Axelotl
I'm not exactly sure about the code that's why I'm asking, I just need it to produce the result I'm looking for.
It's kind of like the last two but with no special effects, just cleanly put together.
I'm not splitting one image I'm doing the opposite.
I'll give you an example.
Every page has a folder containing 1 picture split into separate image files.
I used the Save Image firefox extension and that's how it saved the pages.
Ultimately I just want to join them so it's just 1 clean image file.
Re: Combine/Stack image files
Posted: 2014-03-07T21:18:44-07:00
by fmw42
Re: Combine/Stack image files
Posted: 2014-03-07T23:39:03-07:00
by Axelotl
Thank you so much!
Re: Combine/Stack image files
Posted: 2014-03-08T08:01:07-07:00
by Axelotl
Okay I figured out how to do it to one folder but how do I do it to many sub-directories in one go?
Re: Combine/Stack image files
Posted: 2014-03-08T11:00:57-07:00
by fmw42
script a loop over each directory and subdirectory
Re: Combine/Stack image files
Posted: 2014-03-09T03:26:11-07:00
by Axelotl
I'm a complete newbie, how do I script a loop over all the directories?
Re: Combine/Stack image files
Posted: 2014-03-09T07:37:31-07:00
by Bonzo
What operating system are you using and if on a server are you going to use something like php?
Re: Combine/Stack image files
Posted: 2014-03-09T20:29:20-07:00
by Axelotl
Windows 8, I just run them through the console.
Re: Combine/Stack image files
Posted: 2014-03-09T20:58:23-07:00
by fmw42
Sorry, one of the Windows user would have to help you with a bat script file. I only know Unix (Mac)
Re: Combine/Stack image files
Posted: 2014-03-10T02:36:56-07:00
by Axelotl
Anyone?
Re: Combine/Stack image files
Posted: 2014-03-10T06:46:42-07:00
by snibgo
To loop over files in a direcory tree in Windows, I would use "for /D". Eg:
Code: Select all
for /R \mydir\images %D in (*.jpg) do identify %D
Type "for /?" for help.
Re: Combine/Stack image files
Posted: 2014-03-10T20:02:10-07:00
by Axelotl
I ran that exact line and it listed all the files but with something like "identify.exe: unable to open image/no decode delegate for this image format"
How do I use this loop in my situation? If I was applying it to only one folder it would be:
Code: Select all
convert image.jpeg image_001.jpeg image_002.jpeg image_003.jpeg -append appended_image.jpeg