Topic: thumbnail size

Is there a way to change the thumbnail size so it is not square? specificaly 96x54 pixels.

I have purchased SimpleViewer Pro and svManager. I have edited svPro to display the custom thumbs but svManager still creates square thumbnails.
Is there a way to change the thumbnail size so it is not square?

thank you

Re: thumbnail size

SvManager only supports square thumbnails, although you can change the size.

jack

Jack Hardie
SimpleViewer Support Team.

Re: thumbnail size

Is there anyway I can update the code anywhere - whether it be a variable or just hard coded?

Re: thumbnail size

You would have to hack the code. Creating the non-square thumbnails might not be too difficult but then you'd have to cope with the knock-on effects in the svManager Images and Sort screens.

jack

Jack Hardie
SimpleViewer Support Team.

Re: thumbnail size

would you be able to point me in the right direction as to where to start messing with the code?

also, if this hack ends up causing more harm than good, would manually creating thumbnails (via photoshop) and overwriting the svManager generated ones be possible or do you see any issues with that?

thanks again for the help with this.

Re: thumbnail size

You can create your own thumbnails in Photoshop and replace the ones generated by svManager using the same file names. Some servers may give problems with overwriting files that have been created by a script but you probably won't hit that problem and there are usually ways around it if you do.

There is a drawback but you might be happy to live with it. SvManager will continue to display square thumbnails in the images and sort pages so they will look a bit squashed but everything should work ok (I think!).

You'll probably want to change a setting in the svmanager/includes/constants.php file so your carefully crafted thumbnails are not overwritten if you hit the Rebuild button.

define('OVERWRITE_THUMBNAILS', false);

If you are using the automatic index page then you can change the size of the thumbnails there with two more settings:

define('INDEX_THUMB_WIDTH', 96);
define('INDEX_THUMB_HEIGHT', 54);

The thumbnail images for the index page are cached and the cache is updated every time the gallery settings are saved so if you care about the index page and you've been creating your own thumbs then hit one of the Update buttons – say the one on the Customize page – to update the cache.

Doing it manually like this would probably be a good first step. If you are confident with php and want to experiment with the code then the area to look at is the createThumb method of the Gallery class that lives inside svmanager/classes/gallery.php. Usual warnings on mods and hacks apply – you may not get much support and you might have to do it again when the next svManager upgrade is released.

Hope this works for you – let us know how you get on.

jack

Jack Hardie
SimpleViewer Support Team.

Re: thumbnail size

thanks jack.
i will give this a try and let you know.

Re: thumbnail size

You can create your own thumbnails in Photoshop and replace the ones generated by svManager using the same file names. Some servers may give problems with overwriting files that have been created by a script but you probably won't hit that problem and there are usually ways around it if you do.

There is a drawback but you might be happy to live with it. SvManager will continue to display square thumbnails in the images and sort pages so they will look a bit squashed but everything should work ok (I think!).

You'll probably want to change a setting in the svmanager/includes/constants.php file so your carefully crafted thumbnails are not overwritten if you hit the Rebuild button.

define('OVERWRITE_THUMBNAILS', false);

If you are using the automatic index page then you can change the size of the thumbnails there with two more settings:

define('INDEX_THUMB_WIDTH', 96);
define('INDEX_THUMB_HEIGHT', 54);

The thumbnail images for the index page are cached and the cache is updated every time the gallery settings are saved so if you care about the index page and you've been creating your own thumbs then hit one of the Update buttons – say the one on the Customize page – to update the cache.

Doing it manually like this would probably be a good first step. If you are confident with php and want to experiment with the code then the area to look at is the createThumb method of the Gallery class that lives inside svmanager/classes/gallery.php. Usual warnings on mods and hacks apply – you may not get much support and you might have to do it again when the next svManager upgrade is released.

Hope this works for you – let us know how you get on.

jack

thanks jack.

Re: thumbnail size

Couldn't you just make your own thumbnails?

Re: thumbnail size

Yes, you can create your own thumbnails. You might want to change the overwrite thumbnails setting as explained above, to prevent svManager from overwriting your thumbnails with its own.

jack

Jack Hardie
SimpleViewer Support Team.