Change size of Thumbnail file

Post Reply
BlakesHeaven
Jr. Bludit
Posts: 9
Joined: Fri Jan 26, 2018 11:32 pm

Tue Jan 30, 2018 11:51 am

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.
Many thanks in advance,
David
User avatar
Edi
Site Admin
Posts: 1042
Joined: Sun Aug 09, 2015 3:01 pm
Location: Zurich
Contact:

Tue Jan 30, 2018 2:43 pm

BlakesHeaven wrote:
Tue Jan 30, 2018 11:51 am
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
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
BlakesHeaven
Jr. Bludit
Posts: 9
Joined: Fri Jan 26, 2018 11:32 pm

Fri Feb 02, 2018 1:44 pm

Brilliant - thanks very much.

Cheers,
David
Post Reply