Attribute wie With und Height auslesen
$img = HTMLHelper::cleanImageURL($element->image);
Lazy Load
$img->attributes['loading'] = 'lazy';
Bild richtig ausgeben
/** * $img->url // The clean URL, no extra params * $img->attributes // Array * $img->attributes['width'] // The width of the image * $img->attributes['height'] // The height of the image **/ ArrayHelper::toString($img->attributes);
Nützlicher Link: Joomla! Issue Tracker