[9.0.08] Default image thumb size 480 x 320

This commit is contained in:
fredtempez 2019-03-22 12:19:44 +01:00
parent 0a9dd35d8f
commit 7dea66940c
8 changed files with 13 additions and 14 deletions

View File

@ -437,12 +437,12 @@ $config = array(
// path_from_filemanager/test/test1/
// PS if there isn't write permission in your destination folder you must set it
//
'fixed_image_creation' => false, //activate or not the creation of one or more image resized with fixed path from filemanager folder
'fixed_path_from_filemanager' => array( '../test/', '../test1/' ), //fixed path of the image folder from the current position on upload folder
'fixed_image_creation_name_to_prepend' => array( '', 'test_' ), //name to prepend on filename
'fixed_image_creation_to_append' => array( '_test', '' ), //name to appendon filename
'fixed_image_creation_width' => array( 300, 400 ), //width of image (you can leave empty if you set height)
'fixed_image_creation_height' => array( 200, '' ), //height of image (you can leave empty if you set width)
'fixed_image_creation' => true, //activate or not the creation of one or more image resized with fixed path from filemanager folder
'fixed_path_from_filemanager' => array( '../../../site/file/thumb' ), //fixed path of the image folder from the current position on upload folder
'fixed_image_creation_name_to_prepend' => array( '' ), //name to prepend on filename
'fixed_image_creation_to_append' => array( '' ), //name to appendon filename
'fixed_image_creation_width' => array( 480 ), //width of image
'fixed_image_creation_height' => array( 320 ), //height of image
/*
# $option: 0 / exact = defined size;
# 1 / portrait = keep aspect set height;
@ -459,11 +459,11 @@ $config = array(
// The image creation path is always relative so if i'm inside source/test/test1 and I upload an image, the path start from here
//
'relative_image_creation' => false, //activate or not the creation of one or more image resized with relative path from upload folder
'relative_path_from_current_pos' => array( './thumb', '' ), //relative path of the image folder from the current position on upload folder
'relative_path_from_current_pos' => array( './', './' ), //relative path of the image folder from the current position on upload folder
'relative_image_creation_name_to_prepend' => array( '', '' ), //name to prepend on filename
'relative_image_creation_name_to_append' => array( '', '' ), //name to append on filename
'relative_image_creation_width' => array( 300, ''), //width of image (you can leave empty if you set height)
'relative_image_creation_height' => array( 220, '' ), //height of image (you can leave empty if you set width)
'relative_image_creation_name_to_append' => array( '_thumb', '_thumb1' ), //name to append on filename
'relative_image_creation_width' => array( 300, 400 ), //width of image
'relative_image_creation_height' => array( 200, 300 ), //height of image
/*
# $option: 0 / exact = defined size;
# 1 / portrait = keep aspect set height;
@ -471,8 +471,7 @@ $config = array(
# 3 / auto = auto;
# 4 / crop= resize and crop;
*/
'relative_image_creation_option' => array( 'auto', 'auto' ), //set the type of the crop
'relative_image_creation_option' => array( 'crop', 'crop' ), //set the type of the crop
// Remember text filter after close filemanager for future session
'remember_text_filter' => false,

View File

@ -5,7 +5,7 @@
<div class="row">
<div class="col3">
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>" class="blogPicture">
<img src="<?php echo helper::baseUrl(false) . 'site/file/source/' . $article['picture']; ?>">
<img src="<?php echo helper::baseUrl(false) . 'site/file/thumb/' . $article['picture']; ?>">
</a>
</div>
<div class="col9">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 17 KiB