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.

Tourvista

Intermediate

  • "Tourvista" started this thread

Posts: 257

Location: Leicester UK

  • Send private message

1

Thursday, October 11th 2012, 8:53am

Generate rectangular thumbnails instead of square

Hello everybody!

As the title says, is it possible to generate a rectangular thumbnail instead of a square one?

In my config file I have

Source code

1
makethumb=truethumbsize=200/120thumbpath=%INPUTPATH%/output/scenes/%BASENAME%/thumb.jpg



But it generates a 200x200 squared thumb.

Cheers!

2

Friday, October 12th 2012, 6:12pm

Hi,

currently only square thumbs are possible:
http://krpano.com/tools/kmakemultires/config/#thumbsize

best regards,
Klaus

Sam Rohn

Trainee

Posts: 109

Location: Brooklyn, New York

Occupation: 360° VR Photographer

  • Send private message

3

Friday, October 12th 2012, 10:25pm

equirectangular thumbs

hi klaus

another vote here for non square thumbs

the ability to create a small equirectangular preview along with droplet pano output would be very useful to me, as i typically use another program to make a 800px wide equi which i use as a preview image linking to the pano from another page

it would also be my preference to use smaller equi previews with the tour droplet output

any chance this option might make it into a future release ?

thanks

sam
Sam Rohn :: 360° Panoramic Photography :: Location Scout :: New York City :: www.samrohn.com

PanoPress :: WordPress Plugin for 360° Panoramas in Flash & HTML5 :: www.panopress.org

HansNyb

Professional

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

4

Saturday, October 13th 2012, 12:35pm

It is very easy to take control of this.

I would never use the automatically generated thumbs for final delivery.
It is simply not possible to generate perfect thumbs automatically if you want them to look professional.

The default output saves all the different images in the same folder. This is not good for several reasons as the previews and the thumbs are named the same and it takes more time to open and replace them.

However it is very easy to change this in the config file.

My config looks like this:
# output images path
tilepath=%INPUTPATH%/vtour/panos/tiles/%BASENAME%.tiles/pano[_c].jpg

# preview pano settings
preview=true
graypreview=false
previewsmooth=25
previewpath=%INPUTPATH%/vtour/panos/previews/%BASENAME%-preview.jpg

# generate smaller mobile images
customimage[mobile].size=1024
customimage[mobile].path=%INPUTPATH%/vtour/panos/mobile/%BASENAME%-mobile_%s.jpg
customimage[mobile].imagesettings=jpegquality=85 jpegsubsamp=444 jpegoptimize=true
customimage[mobile].xml=<mobile>[NL][TAB]<cube url="[PATH]" />[NL]</mobile>

# generate thumbnails
makethumb=true
thumbsize=240
thumbpath=%INPUTPATH%/vtour/panos/thumbs/thumb-%BASENAME%.jpg

As you can see I generate a folder for each of the image types. Also the mobile images are in one folder separately which means that it is much easier to make a special iPad version for offline.
You just delete the "tiles" folder and you now have a much smaller tour for the iPad. There is no problem leaving the links to the tiles in the xml.

You can now easy make your own thumbs in whatever size you want and at the top of the vtourskin.xml you just change the size and delete the crop option.

You also need to change the active border image in the skin vtourskin_thumbborder.png
With the default settings it should have the same size as the thumb + the border.
IYou can easy change it with a thinner border or with no round corners or what ever color you want.
Here is an example with equirectangular thumbs and with blue square border. I also added a shadow within the border.
http://www.panoramas.dk/panorama/krpano-thumbs/

Hans

floz

Trainee

Posts: 109

Location: Uppsala, Sweden

  • Send private message

5

Friday, January 11th 2013, 5:17am

I'd second the request. Right now, I have an extra step involved in my workflow to create rectilinear previews. It would be cool if one could just use, say,

Source code

1
2
3
4
5
thumbsize = 400x300
thumb_rx = ...
thumb_ry = ...
thumb_rz = ...
thumb_fov = ...


where rx, ry, rz and fov are as for the ktransform tool, in order to automatically generate a rectilinear preview straight through the droplets.

canadarama

Beginner

Posts: 31

Location: Canada

Occupation: Photographer

  • Send private message

6

Thursday, February 26th 2015, 6:40pm

It is very easy to take control of this.

I would never use the automatically generated thumbs for final delivery.
It is simply not possible to generate perfect thumbs automatically if you want them to look professional.

The default output saves all the different images in the same folder. This is not good for several reasons as the previews and the thumbs are named the same and it takes more time to open and replace them.

However it is very easy to change this in the config file.

My config looks like this:
# output images path
tilepath=%INPUTPATH%/vtour/panos/tiles/%BASENAME%.tiles/pano[_c].jpg

# preview pano settings
preview=true
graypreview=false
previewsmooth=25
previewpath=%INPUTPATH%/vtour/panos/previews/%BASENAME%-preview.jpg

# generate smaller mobile images
customimage[mobile].size=1024
customimage[mobile].path=%INPUTPATH%/vtour/panos/mobile/%BASENAME%-mobile_%s.jpg
customimage[mobile].imagesettings=jpegquality=85 jpegsubsamp=444 jpegoptimize=true
customimage[mobile].xml=[NL][TAB][NL]

# generate thumbnails
makethumb=true
thumbsize=240
thumbpath=%INPUTPATH%/vtour/panos/thumbs/thumb-%BASENAME%.jpg

As you can see I generate a folder for each of the image types. Also the mobile images are in one folder separately which means that it is much easier to make a special iPad version for offline.
You just delete the "tiles" folder and you now have a much smaller tour for the iPad. There is no problem leaving the links to the tiles in the xml.

You can now easy make your own thumbs in whatever size you want and at the top of the vtourskin.xml you just change the size and delete the crop option.

You also need to change the active border image in the skin vtourskin_thumbborder.png
With the default settings it should have the same size as the thumb + the border.
IYou can easy change it with a thinner border or with no round corners or what ever color you want.
Here is an example with equirectangular thumbs and with blue square border. I also added a shadow within the border.

I know this is an old post but Hans, it has helped me out tremendously ...thank you! *thumbsup*

...wondering if you have any updated info for this based on 1.18? Most of what you have listed here works like a charm except:

# generate thumbnails
makethumb=true
thumbsize=240
thumbpath=%INPUTPATH%/vtour/panos/thumbs/thumb-%BASENAME%.jpg

...it seems to have no effect whether I include this in the config or not. I'll try to update this with a live example asap *smile*