JIntervention Image

JIntervention Image

  • Category: Libraries
  • Version: 3.11.3
  • Date:
Downloads 32754 Hits 4587 CTR 714% 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

What's new

Change

Minor changes

Enable wrapping of non western text in #1444
GIF detection: Only check the first 6 bytes of the input in #1441

Related extensions

WebTolk Joomla Extensions

92 Extensions
11 Categories
447 Versions released
457092 Downloads
Cart
Cart is empty