Search found 18 matches

by toolforger
2018-03-18T01:39:17-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size

Another surprising find:
ls -l <file>
took noticeably longer than
convert -ping <file> -format %P info:

That was a nice reminder to me that filesystems tend to be optimized more for reading file content than for reading metadata.
Lesson to take home: If image metadata is all you want, do not ...
by toolforger
2018-03-17T15:45:15-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size

@fmw42 I just got around to doing some timings, with some pretty unexpected results.
Not a real benchmark because I didn't rerun many commands, so any difference below a factor of two is probably meaningless. Still, I got interesting results.

FYI files are now 00-raw-scans/NN/page-MMMM.tif, where ...
by toolforger
2018-02-23T15:15:12-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size

@fmw42 I'm in the process of trying out various approaches (not all of them in IM).
It's a somewhat bumpy ride and will take time, but I'll come back with results once I have them.
Or with questions. Not very likely though - I read up on all the options that were mentioned here, and it looks like ...
by toolforger
2018-02-15T23:35:10-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size

align_image_stack, a part of the Hugin suite. It's a photo stitching toolset; being a toolset, it has been used for compositing HDR images and for quality improvement.
by toolforger
2018-02-15T16:01:52-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size

The alignment program insists that the input images are of equal size :-(
by toolforger
2018-02-14T15:52:20-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size

Heh. I just read a passing note that -clone isn't really copying pixels en masse.
I'm undecided whether I love the optimization, or hate the unpredictability of what operations will really cause CPU fan to spin up... anyway, I'm reevaluation options.

Thanks for all the food for thought and ...
by toolforger
2018-02-11T02:19:37-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size

An aside note: Filename generation now seems to be a solved problem. I have been overlooking "Filename References" on https://www.imagemagick.org/script/command-line-processing.php, which mentions (briefly) that the target filename can contain %d. With that Information, I could dig up that %02d will ...
by toolforger
2018-02-11T01:19:32-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size

@fmw42
In image processing, an "stack" is just a series of images that you somehow process together. It's typcial terminology in HDR processing, where you have multiple shots of the same scene, put all the images "on top of each other", and use the redundancy to merge these images into an HDR one ...
by toolforger
2018-02-10T16:43:59-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size


Strange that you use suffixes for directories.


That's off-topic I fear - I have my reasons, but explaining the entire workflow is going to be just a huge distraction.


I would suggest making a list of your files and process with my layers trim-bounds. Then write a script loop over the same ...
by toolforger
2018-02-10T13:55:25-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size


What is 00.tif/page-0012.tif?


Just a normal Linux filename.


Is that a multipage file 00.tif and you want to use only page 12 (starting with 0 or 1 in your numbering?)


I have directories 00.tif...15.tif, each containing a set of files page-0000.tif...page-0088.tif.
I need to process file ...
by toolforger
2018-02-10T12:05:58-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size

"Stack of images" is a generic term - just a bunch of more-or-less aligned images.
In IM terms, it could be a set of images (for those commands that deal with multiple images), or with a set of layers. However, I'm still mapping my requirements to IM, so I' prefer to stick with "stack of images" so ...
by toolforger
2018-02-10T02:24:35-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size

The best I have been able to come up with was


montage *.tif/page-0012.tif -compose -layers trim-bounds WHATNOW?


but what's the right command - montage? composite? convert?
All have -layers or -composite -layers, but I don't know how to make them write each image resp. layer to a separate file ...
by toolforger
2018-02-10T02:02:09-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Re: Expand a stack of files to equal size


What is your IM version and platform?


Ubuntu 17.10, with:


$ identify --version
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP ...
by toolforger
2018-02-09T15:49:55-07:00
Forum: Users
Topic: Expand a stack of files to equal size
Replies: 29
Views: 44931

Expand a stack of files to equal size

Hi all,

I have a series of images that need to be extended to identical size by adding a border to each.
My plan was to put all images into a stack, tell ImageMagick to extend them all to equal size, and store them to a new directory.
This seems possible, but whenever I try to put together the ...