Intervention Image - PHP Image Manipulation library for Joomla 3 and Joomla 4
This is an extension for Joomla developers. Works in Joomla 3 and Joomla 4.
JLoader::register('JInterventionimage', JPATH_LIBRARIES . DIRECTORY_SEPARATOR . 'jinterventionimage' . DIRECTORY_SEPARATOR . 'jinterventionimage.php'); $manager = JInterventionimage::getInstance(['driver' => 'imagick']); $img = $manager->make('path_to_image');
The rest of the examples are in the official documentation of the library.