1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 21:56:33 +02:00

feat(helpers): use imageFile instead of image

This commit is contained in:
Awilum
2021-08-14 14:40:06 +03:00
parent e8663b4e33
commit a7edb4f4b9
2 changed files with 4 additions and 4 deletions

View File

@@ -180,7 +180,7 @@ class Media extends Entries
filesystem()->file($uploadFolder . '/' . $result->name)->move($mediaFile);
if (getimagesize($mediaFile)) {
image($mediaFile, $settings['process']['image']);
imageFile($mediaFile, $settings['process']['image']);
}
}
} catch (Throwable $e) {

View File

@@ -143,7 +143,7 @@ if (! function_exists('plugins')) {
if (! function_exists('tokens')) {
/**
* Get Flextype Plugins Service.
* Get Flextype Tokens Service.
*/
function tokens()
{
@@ -275,7 +275,7 @@ if (! function_exists('images')) {
}
}
if (! function_exists('image')) {
if (! function_exists('imageFile')) {
/**
* Create a new image instance.
*
@@ -284,7 +284,7 @@ if (! function_exists('image')) {
*
* @return Image|void
*/
function image(string $file, array $options = [])
function imageFile(string $file, array $options = [])
{
$image = Image::make($file);