Trouble with paths inside data nodes

  • Hello.
    Im not that good with english but i'll try my best.
    I'm a newbie in the virtual tour stuff and it's been a little confusing making my first virtual tour but i feel comfortable with it.

    Im designing a web page that includes a tour and the client wants it on a cd as well.
    If you watch the virtual tour and you click in the little magnifying glass icon you can see the picture of the painting/sculpture and a small text about it. For this i used jquery and html, however, i had to use the textfield plugin for the cd.

    Here is a sample code that the textield uses in the html data:

    Code
    <data name="html-la-justicia">
    	<img src="images/collection/la-justicia.jpg" width="358px" height="476px" align="center" hspace="18" vspace="10" />
    	<p>
    		<span class="title">
    			The name.
    		</span>
    		<br/>
    		The description.
    	</p>
    </data>

    My problem is that when I use krpano protect tool, the path of images inside the html data is not recognized and the image is not added to the embedding list so when I run the app/exe file the image is not shown. I tried adding it manually, using placeholders and absolute path in the src attribute with no success. My only solution so far is to include a folder in the cd with all the images used by the data nodes, and it works that way, but I'd like it to be all in a single exe file.

    I'm not sure if I'm using the protect tool correctly, all i do is select "Windows and Mac" as output format, specify the size, select the startup xml (wich I guess it must be the xml of the first panorama) and generate the protected file.

    I searched the forum for a solution to this and couldn't find anything so i guess it's just a simple thing I'm missing, I hope.

    Thank you.


    Alejandro.

    Edited once, last by hans_jv (April 25, 2012 at 4:55 PM).

  • Hmm did you try:


    Code
    <data name="html-la-justicia">
    	<img src="%SWFPATH%/images/collection/la-justicia.jpg" width="358px" height="476px" align="center" hspace="18" vspace="10" />
    	<p>
    		<span class="title">
    			The name.
    		</span>
    		<br/>
    		The description.
    	</p>
    </data>
  • Hi,

    krpano itself will pass that kind of html content directly to the HTML renderer of the Flashplayer or in HTML5 to the browser,

    that means it's not possible to use krpano placeholders or automatic path corrections there,
    because of the same reason it' also not possible to embed this kind of html images,

    best regards,
    Klaus

  • Zephyr:
    Hi, thanks for answering. Yes I tried some placeholders and they didn't work.

    Andrey:
    Well, I'm not entirely sure because I didn't work with the images myself but I think it's just Photoshop. The reason they look distorted it's the lack of proper photography equipment for panoramas. I did some tests with PTGui though, and the result wasn't better anyway. We plan to take the photos again with fisheye lens and panoramic tripod once the first stage (?) of the project is finished.

    Klaus:
    I see, so it seems the resources folder is the way to go. Thank you Klaus!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!