芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/yeahea.digitalhubbd.com/config/image.php
'gd', /* |-------------------------------------------------------------------------- | Image dir |-------------------------------------------------------------------------- | | Name the directory on the storage where all the images will be saved | Dont change this if you're not sure | */ 'dir' => 'images', /* |-------------------------------------------------------------------------- | Cache dir |-------------------------------------------------------------------------- | | Name the directory on the storage where all the manupulated cache images will be saved | Dont change this if you're not sure | */ 'cache_dir' => '.cache', /* |-------------------------------------------------------------------------- | Minimum Image size |-------------------------------------------------------------------------- | | Specify the minimum size of image can be uploaded | The size is Kilobyte or KB, Default = 5000KB = ~5MB | */ 'min_size' => 0, /* |-------------------------------------------------------------------------- | Maximum Image size |-------------------------------------------------------------------------- | | Specify the maximum size of image can be uploaded | The size is Kilobyte or KB, Default = 5000KB = ~5MB | */ 'max_size' => 1024, /* |-------------------------------------------------------------------------- | Chunk size in KB |-------------------------------------------------------------------------- | | Specify the chunk size for large image can be uploaded | The size is Kilobyte or KB, Default = 500KB | */ 'chunk_size' => 1024, /* |-------------------------------------------------------------------------- | Mime types |-------------------------------------------------------------------------- | | Specify the mime types of image can be uploaded | */ 'mime_types' => [ 'jpeg', 'jpg', 'png', 'gif', ], /* |-------------------------------------------------------------------------- | Image sizes |-------------------------------------------------------------------------- | | When you upload any image. It'll create some thumbnails to view different places in the app | reason, this will improve the UX and reduse the load time | */ 'sizes' => [ /* |-------------------------------------------------------------------------- | Primary sizes |-------------------------------------------------------------------------- | | The system will create thumbnails using these settings only. | Any request for other than this sizes will return the original image. | Sets how the image is fitted to its target dimensions. | | w = width, h = height. All values are in pixels | | fit = how the image is fitted to its target dimensions, | Available values "contain,max,fill,stretch,crop" | | Don't modify this values if you are not sure | */ 'thumbnail' => [ 'w' => 80, 'h' => 80, 'fit' => 'contain', ], 'tiny_thumb' => [ 'w' => 30, 'h' => 30, 'fit' => 'contain', ], 'tiny' => [ 'w' => 30, 'h' => 50, 'fit' => 'contain', ], 'mini' => [ 'w' => 60, 'h' => 100, 'fit' => 'contain', ], 'small' => [ 'w' => 100, 'h' => 200, 'fit' => 'contain', ], 'medium' => [ 'w' => 250, 'h' => 400, 'fit' => 'contain', ], // 'large' => [ // 'w' => 800, // 'h' => 1200, // 'fit' => 'contain', // ], // 'full' => [ // 'w' => 1280, // 'h' => 1800, // 'fit' => 'contain' // ], /* |-------------------------------------------------------------------------- | Logo sizes |-------------------------------------------------------------------------- | | The system will create a logo image using this size | Don't modify this values if you are not sure | */ 'logo' => [ 'w' => 200, 'h' => 100, 'fit' => 'contain', ], 'logo_square' => [ 'w' => 110, 'h' => 110, 'fit' => 'contain', ], 'avatar' => [ 'w' => 300, 'h' => 450, 'fit' => 'contain', ], 'sm_avatar' => [ 'w' => 150, 'h' => 225, 'fit' => 'contain', ], 'tiny_avatar' => [ 'w' => 30, 'h' => 45, 'fit' => 'contain', ], /* |-------------------------------------------------------------------------- | Full with banner/cover size |-------------------------------------------------------------------------- | | The system will create a banner image using this size | Don't modify this values if you are not sure | */ 'cover' => [ 'w' => 1440, 'h' => 300, 'fit' => 'contain', ], 'cover_thumb' => [ 'w' => 200, 'h' => 59, 'fit' => 'contain', ], 'blog' => [ 'w' => 1280, 'h' => 450, 'fit' => 'crop', ], // Add your sizes here ], /* |-------------------------------------------------------------------------- | Background Color |-------------------------------------------------------------------------- | | You can set a background_color for transparent background images | for full list of available color visit "http://glide.thephpleague.com/1.0/api/colors/" | */ 'background_color' => '', ];