I am trying to use the Joomla image class (use Joomla\CMS\Image\Image) in a com_fields field layout override.
$image = new Image($image);
gives me the following error message:
0 Object of class Joomla\CMS\Image\Image could not be converted to string
The image path is correct, as the following message appears when this is changed
0 The image file does not exist.
Is this a Joomla core bug or is something else missing?