You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Graydon

Professional

  • "Graydon" started this thread

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

1

Thursday, March 12th 2009, 2:59am

format for existing tiled image - to make one image... to then drop in kmakemultires

I've got an existing image that is 8 tiles - 4 horizontal, 2 vertical and I'm trying to use the tool to make it into a single image so that I can drop it on kmakemultires...

but I'm having some trouble understanding the correct syntax and options to use.

I have the images set to the format ... name_%v_%h.jpg

If I could get a sample input I'd appreciate it greatly.

Thanks

Graydon

Graydon

Professional

  • "Graydon" started this thread

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

2

Thursday, March 12th 2009, 4:28am

OK... lesson learned... post a question and then have a thought... and solve your own problem.

problem is... I closed the command line screen and hope I can remember what I did to make it work.

One thing I know I mistook... name_%v_%h.jpg does not mean name_1v_1h.jpg... it means name_1_1.jpg

My other problem is that there's a limit on the max image size... so now I'll go and play and see if I can figure out how to re-tile some pre-tiled images.

3

Thursday, March 12th 2009, 9:53pm

Hi,

here is a example code to "re-tile":

Source code

1
kmaketiles name_%v_%h.jpg retiled.tif 0 -insize=10000x5000 -intilesize=1000


the first parameter - "name_%v_%h.jpg" - is the template for the input tiles
the "0" between the "%" and the "v" or "h" define a leading "0"
e.g.
%v = 1,2,3, ... 10,12,13 ...
%0v = 01,02,03 ... 10,12,13 ...
%00v = 001,002,003 ... 010,012,013 ...

the default index base/start is 1, to change this add "-indexbase=N" to the command line,


the second parameter - "retiled.tif" - is the output/re-tiled image,
it would be also possible to use %v/%u here to create other-sized tiles,


the first parameter - "0" - the tilesize, "0" is for a unlimited large tile,
this is used when no output tiles should be created


the two last parameters:

-insize=WIDTHxHEIGHT - define the size of the input image
-intilesize=TILESIZE - define the tilesize of the input tiles


best regards,
Klaus

Graydon

Professional

  • "Graydon" started this thread

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

4

Friday, March 13th 2009, 4:49am


the two last parameters:

-insize=WIDTHxHEIGHT - define the size of the input image
-intilesize=TILESIZE - define the tilesize of the input tiles

This was the area that confused me at first... as I didn't get that the "insize" would be the combined total width and height of all the tiles added together...

So, if I had an intilesize of 1000 for the 8 tiles (4 columns x 2 rows)... then the insize would be 4000x2000... Once you know, it seems simple enough... but I had a brain block there for some time. *g*

It might have been good if I had also realized...

Quoted

the second parameter - "retiled.tif" - is the output/re-tiled image,
it would be also possible to use %v/%u here to create other-sized tiles,

... but I wanted to be able to use the multires tool to create the different layers and not deal with figuring out that part yet.

For the time being I think I've got it setup so that I only need to do some batch renaming to get the new layers / tiles set in the correct location.

5

Friday, March 13th 2009, 12:02pm

So, if I had an intilesize of 1000 for the 8 tiles (4 columns x 2 rows)... then the insize would be 4000x2000... Once you know, it seems simple enough... but I had a brain block there for some time. *g*
one more note:

the image size must be not perfectly dividable through the tilesize

e.g. if the original image is 3500x1500 and the tilesize is 1000,
then you have tiles with the following sizes:

row1 - 1000x1000, 1000x1000, 1000x1000, 500x1000
row2 - 1000x500, 1000x500, 1000x500, 500x500

that's just an example, it's better to know the original size instead
of calculating it from the number of tiles

best regards,
Klaus

Graydon

Professional

  • "Graydon" started this thread

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

6

Friday, March 20th 2009, 1:39am

uuggghhh *cursing*

Some lessons are learned the hard way... and only after repeating them time after time...

when using kmaketiles... make sure to put your tools license in the folder with the tools.... otherwise you wait forever for 8000 tiles to be made and THEN realize they all have the watermark on them.

You'd think I'd remember this stuff *rolleyes*

Well, at least I know it will work. *thumbup*

7

Saturday, May 8th 2010, 6:09am

I tried to follow this advice but I can't seem to get it to work for me. I have two levels of tiles that I want to bring back together and use kmaketiles. I know it will make sense once someone posts the correct info. *whistling*

my tiles are named like this.

l2_u_02_02.jpg

I can't seem to get the level and cube direction to pass properly. I know it is because I still don't have a good grasp of variables.

8

Monday, May 10th 2010, 1:05pm

Hi,
I can't seem to get the level and cube direction to pass properly. I know it is because I still don't have a good grasp of variables.
kmaketiles can only tile or combine one file at once,

so you when have several levels or cube sides, you need to call it separately for every level/cubeside,

e.g.

Source code

1
2
3
4
5
6
kmaketiles l2_l_%0v_%0u.jpg l2_l_combined.tif 0 -insize=5000x5000 -intilesize=1000 -inindexbase=1
kmaketiles l2_f_%0v_%0u.jpg l2_f_combined.tif 0 -insize=5000x5000 -intilesize=1000 -inindexbase=1
kmaketiles l2_r_%0v_%0u.jpg l2_r_combined.tif 0 -insize=5000x5000 -intilesize=1000 -inindexbase=1
kmaketiles l2_b_%0v_%0u.jpg l2_b_combined.tif 0 -insize=5000x5000 -intilesize=1000 -inindexbase=1
kmaketiles l2_u_%0v_%0u.jpg l2_u_combined.tif 0 -insize=5000x5000 -intilesize=1000 -inindexbase=1
kmaketiles l2_d_%0v_%0u.jpg l2_d_combined.tif 0 -insize=5000x5000 -intilesize=1000 -inindexbase=1


best regards,
Klaus

9

Monday, May 10th 2010, 3:12pm

Thank you, I will give it a try.

I somehow deleted some original equirectangular files and am trying to output the same images for the iPhone/iPad so am resorting to this.

Similar threads