put together in a random way hundreds of pictures

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
adrien
Posts: 2
Joined: 2012-05-08T11:01:54-07:00
Authentication code: 13

put together in a random way hundreds of pictures

Post by adrien »

Hi,
I'm looking for a way to assemble hundreds of pics in one but in a random way.
Waiting for your ideas.
Thx
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: put together in a random way hundreds of pictures

Post by Bonzo »

How do you want to use the code - php - batch - bash
Do you want to end up with a square image, rectangular - basicly you need to supply more information.
adrien
Posts: 2
Joined: 2012-05-08T11:01:54-07:00
Authentication code: 13

Re: put together in a random way hundreds of pictures

Post by adrien »

actually i nearly succeed by using "montage" like that : montage TSParadise_*.png -mode concatenate -tile 145x145 montage_tsparadise.jpeg
But now i have a new problem, i can't figure how to make it random.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: put together in a random way hundreds of pictures

Post by fmw42 »

rename all your files and add some random number to the base name before montage.
stevepark
Posts: 1
Joined: 2012-05-10T08:19:46-07:00
Authentication code: 13

Re: put together in a random way hundreds of pictures

Post by stevepark »

If you know a bit of programming you could compile a small application to randomize them for you. Of course, you can always ask someone else to do it for you, for a price, usually...
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: put together in a random way hundreds of pictures

Post by Bonzo »

If as I had asked in the first reply he had let us know what method of using imagemagick he was using we could have suggested some way to randomise them !
rich2005
Posts: 32
Joined: 2012-04-09T11:07:36-07:00
Authentication code: 8675308

Re: put together in a random way hundreds of pictures

Post by rich2005 »

Sorry about being off topic and none-imagemagick.

Maybe the OP should consider a mosaic making application. This one is using metapixel in linux, andrea mosaic for windows works as well.
http://i.imgur.com/YDyuB.jpg
The randomness (if you can call it random) comes from the source image - I overlayed this in the middle. For the mosaic generation I used a couple of tile libraries, maybe 1500 tiles to choose from.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: put together in a random way hundreds of pictures

Post by anthony »

Have a look at the coding technique, Programmed Image Placement
http://www.imagemagick.org/Usage/layers/#layer_prog

You have one loop, working out the position of images, then piping the images to a separate command to place them on a larger canvas. The images do not need to be arranged in a square, but can be placed anywhere!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply