Page 1 of 1

Change size of Thumbnail file

Posted: Tue Jan 30, 2018 12:51 pm
by BlakesHeaven
Hi,
When a picture is uploaded it cleverly also creates a square thumbnail.

Is there a way of altering the size of the created thumbnail, either in code of via an Admin GUI or plugin?

The icing on the cake would be to specify the visible image shape; ideally I'd like them to be round.

The application for this is to have a Parent page listing a brief summary of all the children pages and prefix it with the automatically created thumbnail image.

Re: Change size of Thumbnail file

Posted: Tue Jan 30, 2018 3:43 pm
by Edi
BlakesHeaven wrote: Tue Jan 30, 2018 12:51 pm Is there a way of altering the size of the created thumbnail, either in code of via an Admin GUI or plugin?
The size of the tumbnails can be set in the file variables.php (at /bl-kernel/boot, line 23) :

Code: Select all

// Thubmnails size
define('THUMBNAILS_WIDTH', 400);
define('THUMBNAILS_HEIGHT', 400);
define('THUMBNAILS_QUALITY', 100); // 100%
The icing on the cake would be to specify the visible image shape; ideally I'd like them to be round.
This has to be done with CSS as explained for example here:

https://www.w3schools.com/css/css3_borders.asp

Re: Change size of Thumbnail file

Posted: Fri Feb 02, 2018 2:44 pm
by BlakesHeaven
Brilliant - thanks very much.

Cheers,
David