suaveant has asked for the wisdom of the Perl Monks concerning the following question:
I am working on a script that will allow me to edit my digital photographs easily, defining bounds and a photo size (3.5x5 6x4 5x7 8x10) and best working out a size that matches the bounds... that part is simple enough...
The difficult part comes at the end... I want to take N pictures and fit them onto as few 8.5x11 inch pieces of paper as possible for printing (photo paper isn't cheap :). This is no trivial problem, it seems :) being a nasty type of algorithm ( though I don't really mind if it takes a couple minutes to run ). The problem is that I am awful with Calculus/Trigonometry and failed my Algorithms class in college :) Does anyone know where I could find some perl (or possibly C) code that handles this sort of thing, or a site that explains this sort of problem in something simpler than mathspeak?
I can probably fake it with a bunch of predefined page layouts if I stick to 3 sizes of photo, but I would kind of like to do it right... maybe learn something in the process.
- Ant
- Some of my
best work - (1 2 3)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Rectangle packing...
by Albannach (Monsignor) on Apr 22, 2002 at 14:51 UTC | |
Re: Rectangle packing...
by Fletch (Bishop) on Apr 22, 2002 at 14:15 UTC | |
Re: Rectangle packing...
by kappa (Chaplain) on Apr 22, 2002 at 14:16 UTC | |
Re: Rectangle packing...
by particle (Vicar) on Apr 22, 2002 at 14:39 UTC | |
by suaveant (Parson) on Apr 22, 2002 at 14:45 UTC | |
Re: Rectangle packing...
by RMGir (Prior) on Apr 22, 2002 at 14:04 UTC | |
by RMGir (Prior) on Apr 22, 2002 at 15:16 UTC | |
by Anonymous Monk on Apr 23, 2002 at 01:32 UTC | |
Re: Rectangle packing...
by mojotoad (Monsignor) on Apr 22, 2002 at 21:19 UTC | |
Re: Rectangle packing...
by Rex(Wrecks) (Curate) on Apr 22, 2002 at 16:14 UTC | |
by suaveant (Parson) on Apr 22, 2002 at 16:47 UTC | |
Re: Rectangle packing...
by clintp (Curate) on Apr 22, 2002 at 21:31 UTC | |
by schumi (Hermit) on Apr 23, 2002 at 13:29 UTC | |
Re: Rectangle packing...
by Necos (Friar) on Apr 23, 2002 at 15:55 UTC | |
Re: Rectangle packing...
by YuckFoo (Abbot) on Apr 23, 2002 at 20:27 UTC |