From 11f940aa4a6243126f0927e21cc543e894087b1b Mon Sep 17 00:00:00 2001 From: Vipen Mahay Date: Mon, 22 Nov 2021 09:59:52 +0000 Subject: [PATCH] add better descriptions to the gravity fields --- src/Forms/ImageField.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Forms/ImageField.php b/src/Forms/ImageField.php index dd6d3a5..90e79f4 100644 --- a/src/Forms/ImageField.php +++ b/src/Forms/ImageField.php @@ -10,25 +10,25 @@ class ImageField extends BaseField */ private static $fallback_gravity_options = [ '' => '', - 'auto' => 'Auto', + 'auto' => 'Auto => Automatically identify the most interesting regions', 'auto:face' => 'Auto (Face)', 'auto:faces' => 'Auto (Faces)', - 'auto:no_faces' => 'Auto (No Faces)', - 'center' => 'Center', - 'east' => 'East', - 'face' => 'Face', - 'faces' => 'Faces', - 'face:auto' => 'Face (Auto)', - 'faces:auto' => 'Faces (Auto)', - 'face:center' => 'Face (Center)', - 'faces:center' => 'Faces (Center)', - 'north' => 'North', - 'north_east' => 'North East', - 'north_west' => 'North West', - 'south' => 'South', - 'south_east' => 'South East', - 'south_west' => 'South West', - 'west' => 'West', + 'auto:no_faces' => 'Auto (No Faces) => Same as auto but avoids focusing on faces', + 'center' => 'Center => Sets focal point to center', + 'east' => 'East => Sets focal point to right', + 'face' => 'Face => Automatically detect the largest face in an image', + 'faces' => 'Faces => Same as face, but detects all the faces in an image', + 'face:auto' => 'Face (Auto) => Same as face, but defaults to auto if no face is detected', + 'faces:auto' => 'Faces (Auto) => Same as faces, but defaults to auto if no face is detected', + 'face:center' => 'Face (Center) => Same as face, but defaults to center if no face is detected', + 'faces:center' => 'Faces (Center) => Same as faces, but defaults to center if no face is detected', + 'north' => 'North => Sets focal point to top', + 'north_east' => 'North East => Sets focal point to top right', + 'north_west' => 'North West => Sets focal point to top left', + 'south' => 'South => Sets focal point to bottom', + 'south_east' => 'South East => Sets focal point to bottom right', + 'south_west' => 'South West => Sets focal point to bottom left', + 'west' => 'West => Sets focal point to left', ]; /**