Assembling a .jpg image for lots of individual cells

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Jun 20, 2005 9:49 pm

The variable toggles. The default value=1

Once you do LET>RP_WINDOWMODE=0, it will stay that way for all subsequent Run Program> commands.until you set it back to some other value again.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Prospero
Junior Coder
Posts: 20
Joined: Tue Jun 14, 2005 1:18 am

Post by Prospero » Tue Jun 21, 2005 1:17 am

Many thanks for your help Bob.

Having tested the ImageMagick program, I have to say that I do not believe it to be useful for the task at hand. It is terribly slow. Mosaicing can surely be achieved quicker than this.

Can anyone recommend anything else?

Cheers,

Prospero

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Jun 21, 2005 4:39 am

Prospero,

I am by no means an expert in image processing but I would like to know what your expectations are for the amount of time this should take.

Using the panorama function of IrFanView I did some experimenting. I created a 250 x 250 pixel jpg and saved it to an 18K file size. I then copied it 199 times so that I could assemble a 50,000 x 250 pixel strip. After getting this set up, it took almost exactly 30 seconds between the time I pressed ok and the image was done. You would have to assemble 200 of these strips so you would be looking at 100 minutes of processing time.

I then assembled 20 of these strips (I didn't want to wait all night) It took about 18 minutes. Since there would be 10 of these 50,000 x 5,000 pixel images to be constructed there's another 180 minutes.

I'm not going to try it so I'll have to speculate how long it will take to assemble the 10 50,000 x 5,000 pixel images but I think it is safe to say it will take at least an hour. In total I'm expecting that if were doing this task on my computer using IrFanView, it would be 5 hours or more processing time. My computer is a 2.8 Gb Pentium 4 processor with 1 Gig of RAM and a 64 meg video card.

Earier you commented about ImageMagick:
"Why is the assembly process so slow? It seems like some "image processing" is going on, when all I need is for the tiles to be assembled."
I could be wrong but I believe that for the tiles to be assembled and finally saved to a 50,000 x 50,000 pixel jpg file, image processing will have to take place.

Edit1:
Would it be possible to forego the save to a jpg step? If so, maybe what you need is an HTML that would display all of the image tiles in an assembled mosaic. I think Macro Scheduler could be used to write that HTML for you. However, this process would not give you a single assembled jpg file.

Hope this was helpful,
Dick

Prospero
Junior Coder
Posts: 20
Joined: Tue Jun 14, 2005 1:18 am

Post by Prospero » Wed Jun 22, 2005 12:05 pm

Hi JRL,

Many thanks for your help. I am working on this issue as we speak. If I do manage to solve it, I will post info.

Cheers,

Prospero

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts