Change size of Thumbnail file

Post Reply
BlakesHeaven
Ssr. Bludit
Posts: 24
Joined: Sat Jan 27, 2018 12:32 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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
BlakesHeaven
Ssr. Bludit
Posts: 24
Joined: Sat Jan 27, 2018 12:32 am

Brilliant - thanks very much.

Cheers,
David
Post Reply