문제
회사별로 다른 htmltemplate 을 사용해야 해서 테스트겸 config 의 htmltemplate을 변경했는데
htmltemplate=html/embedpano-test.html
어이가 없는 건, embedpano-test.html이 있는데 얘를 찾아가는 게 아니라 기본세팅인 embedpano.html을 찾아가서 아래처럼 오류가 떴다.
당시 html 폴더 안에는 embedpano.html 이 없었다. 즉 이 녀석이 제 멋대로 embedpano.html를 계속 찾아가니 진행이 안 되어 곤욕스러웠는데
구글링을 해보니 나와 동일한 질문이 있더라. 다만 답변이 없어서 결국 내가 찾아낸 방법은!!!!
Kmakemultires 1.19-pr8 ignores htmltemplate= directive in config file - krpano Forum
Hello, I am a new user of krpano, and am having difficulty setting up a custom kmakemultires config file. I am attempting to use the htmltemplate= directive, but it appears that regardless of this directive, the template embedpano.html is always used.…
krpano.com
해결법
그냥 xml 설정을 html 설정 위에 적어주면 된다.... krpano document 를 보면 https://krpano.com/docu/tools/config/?version=121
xml 이 html 보다 앞서 설명되어 있는 걸 볼 수 있다. 즉 설정 config에서도 순서에 맞게 적어야 적용이 되는 것이다.
krpano.com - Documentation - krpano Tools Config File Reference
krpano.com
전부 다 지우면서 확인했으니 순서가 문제가 분명 맞다.. 나같은 답답한 일은 겪지 않으시길
예시
# Virtual Tour with Multi-Resolution Panos
# Skin with Scrolling-Thumbnails, Bingmaps, Gyroscope, VR-Support
# Documentation: https://krpano.com/docu/tools/config/
# krpano 1.21
# basic settings
include basicsettings.config
panotype=autodetect,flat
hfov=360
makescenes=true
# output
#html5=true
# output path
outputpath=%INPUTPATH%/krpano
# convert spherical/cylindrical to cubical
converttocube=true
converttocubelimit=360x120
converttocubemaxwidth=60000
# multiresolution settings
multires=true
tilesize=512
levels=auto
levelstep=2
maxsize=auto
maxcubesize=auto
stereosupport=true
adjustlevelsizes=true
adjustlevelsizesformipmapping=true
# output images path
tilepath=%OUTPUTPATH%/panos/%BASENAME%.tiles/[c/]l%Al/%Av/l%Al[_c]_%Av_%Ah.jpg
# preview pano settings
preview=true
graypreview=false
previewsmooth=25
previewpath=%OUTPUTPATH%/panos/%BASENAME%.tiles/preview.jpg
# generate thumbnails
makethumb=true
thumbsize=240
thumbpath=%OUTPUTPATH%/panos/%BASENAME%.tiles/thumb.jpg
# =============================XML==============================
# xml output
xml=true
xmlpath=%OUTPUTPATH%/krpano.xml
# skin / xml template
include vtourskin120.skin
xmltemplate=xml/custom_xml.xml
xmltemplate_scene=xml/custom_scenetemplate.xml
# =============================HTML==============================
# html output/template
html=true
#htmlpath=%OUTPUTPATH%/custom/krpano.html
#htmltemplate=xml/embedpano-test.html
html=true
htmlpath=%OUTPUTPATH%/custom/krpano.html
#htmlpath=%INPUTPATH%/%BASENAME%/index.html
htmltemplate=html/embedpano-test.html
# 로고용
htmltemplate_additional_file=custom/logo/logo_biz.png
# texttable용
htmltemplate_additional_file=custom/texttable/zoomicon.png
htmltemplate_additional_file=custom/texttable/textTable.js
# filesave용
htmltemplate_additional_file=custom/filesaver/FileSaver.js
# include testing servers
#htmltemplate_additional_file=html/tour_testingserver.exe
#htmltemplate_additional_file=html/tour_testingserver_macos+x