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:
@@ -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) {
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user