Preview image on open for faster page opening times
Posted: Thu Jan 14, 2021 11:58 pm
Hi,
This all started when I was given a web link to a page full of panoramas embedded with iframes, the page loaded very slowly so I had a think about this and came up with this project with the goal to reduce the load time of the page and only show the panoramas the viewer wants to see.
https://support.ggno.me/forum_projects/preview
How this works is a 10 x 5px png is used as the opening node.
The skin has a node image to create the preview image.
The node image is set to generate a very low-resolution image using the default view of the first node.
The external image loader displays the low-resolution image.
The external image loader also has CSS filters to change the preview to greyscale and apples a blur.
This enables the preview image to be very low quality without it being an issue.
The External Image Loader then has the action to fade out itself and open the first node of the tour.
To add this to a project simply copy and paste the start_preview from the skin into your own skin and move it so it's at the top of the tree.
Then add the start.png to the tour browser and set it as the Start Panorama.
This does assume the first node in the tour browser is the starting panorama of the tour and the start.png will be the last node added or at least not the first node.
The title is taken from the start.png images user data title, this needs to be the title of the tout and can be different from node one.
If you do not like the greyscale or blur go to the CSS text fields in the external image loaders properties where you can edit the values or remove the code.
Regards,
This all started when I was given a web link to a page full of panoramas embedded with iframes, the page loaded very slowly so I had a think about this and came up with this project with the goal to reduce the load time of the page and only show the panoramas the viewer wants to see.
https://support.ggno.me/forum_projects/preview
How this works is a 10 x 5px png is used as the opening node.
The skin has a node image to create the preview image.
The node image is set to generate a very low-resolution image using the default view of the first node.
The external image loader displays the low-resolution image.
The external image loader also has CSS filters to change the preview to greyscale and apples a blur.
This enables the preview image to be very low quality without it being an issue.
The External Image Loader then has the action to fade out itself and open the first node of the tour.
To add this to a project simply copy and paste the start_preview from the skin into your own skin and move it so it's at the top of the tree.
Then add the start.png to the tour browser and set it as the Start Panorama.
This does assume the first node in the tour browser is the starting panorama of the tour and the start.png will be the last node added or at least not the first node.
The title is taken from the start.png images user data title, this needs to be the title of the tout and can be different from node one.
If you do not like the greyscale or blur go to the CSS text fields in the external image loaders properties where you can edit the values or remove the code.
Regards,