Hi all! Where could there be an error in these scripts? When I send several files, it starts working in LOOP mode i.e. repeats the process over and over again cutting multitiles, from the very beginning of the list until it goes through the entire list with repetitions. Thanks in advance to everyone who answers.. Best regards, Gumir
1. my_settings.config
Code
filter=LANCZOS
jpegquality=82
jpegsubsamp=422
jpegoptimize=false
profile=sRGB
parsegps=true
autolevel=remap
sortinput=true
panotype=autodetect,flat
hfov=360
makescenes=true
outputpath=%INPUTPATH%/content
# multiresolution settings
multires=true
tilesize=512
levelsizes=1024,2048
adjustlevelsizes=false
adjustlevelsizesformipmapping=false
# output images path
# tilepath=%INPUTPATH%/content/%BASENAME%/[c/]l%Al/%Av/l%Al[_c]_%Av_%Ah.jpg
tilepath=%INPUTPATH%/content/%BASENAME%/l%Al/%Av/l%Al[_c]_%Av_%Ah.jpg
preview=false
makethumb=false
xml=false
html=false
Alles anzeigen
2. convertor.bat
Code
@echo off
echo Custom Image Convertor
echo.
IF "%~1" == "" GOTO ERROR
IF NOT EXIST "%~1" GOTO ERROR
set KRPANOTOOLSEXE=krpanotools.exe
FOR %%V in (%*) do "%~dp0\%KRPANOTOOLSEXE%" sphere2cube VIEW -fov=90 -outsize=512x512 -jpegquality=85 -jpegsubsamp=422 "%%~V" "%~dp1\content\0000\%%~nV.jpg"
FOR %%V in (%*) do "%~dp0\%KRPANOTOOLSEXE%" sphere2cube HCUBE -outsize=512 -jpegquality=75 -jpegsubsamp=422 "%%~V" "%~dp1\content\%%~nV\l0\l0.jpg"
FOR %%V in (%*) do "%~dp0\%KRPANOTOOLSEXE%" sphere2cube VIEW -fov=90 -outsize=1440x1440 -jpegquality=85 -jpegsubsamp=422 "%%~V" "%~dp1\images\%%~nV_0.jpg"
FOR %%V in (%*) do "%~dp0\%KRPANOTOOLSEXE%" makepano my_settings.config %*
GOTO DONE
:ERROR
echo.
echo Usage:
echo.
echo - Drag and drop spherical panorama images
echo on this droplet to convert.
echo.
echo.
:DONE
echo.
pause
Alles anzeigen