JIntervention Image

JIntervention Image

  • Category: Libraries
  • Version: 3.11.5
  • Date:
Downloads 39244 Hits 5843 CTR 672% Lib Free

Intervention Image - PHP Image Manipulation library for Joomla. Version 2.7.2 is for Joomla 3 and Joomla 4. Versions 3.x are for Joomla 4 and Joomla 5+.

JIntervention Image

Description

This is an extension for Joomla developers. 

v.2.7.2

				JLoader::register('JInterventionimage', JPATH_LIBRARIES . DIRECTORY_SEPARATOR . 'jinterventionimage' . DIRECTORY_SEPARATOR . 'jinterventionimage.php');
				$manager = JInterventionimage::getInstance(['driver' => 'imagick']);
				$img = $manager->make('path_to_image');

v.3.11.0

<?php
use Joomla\Libraries\JInterventionimage\Manager;

$manager = Manager::getInstance();
$path_full = JPATH_SITE . '/images/joomla.png';

$file = $manager->read($path_full);
// https://github.com/Intervention/image/issues/551 Transparency on PNG issue
$img = $manager->create($file->width(), $file->height())
			->fill('#ffffff');
$img->place($file, 'center');
$img->encodeByExtension($options['new_file_format'], quality: $options['image_quality']);

$img->save($options['savepath'] . '/' . $options['new_file_name'] . '.' . $options['new_file_format']);

More examples are in the official documentation of the library.

Joomla

Extension type:
Library
Joomla version:
3.10, 4.0, 5.2.3, 5.2.5, 5.3.0, 5.3.2, 6.0.0

What's new

Note

PHP 8.5

Tested PHP 8.5 support
Fixed

Bug fix

Fix issue with relative paths to font files in different versions of GD library

Related extensions

WebTolk Joomla Extensions

99 Extensions
12 Categories
508 Versions released
602877 Downloads
Cart
Cart is empty