JIntervention Image

JIntervention Image

  • Category: Libraries
  • Version: 3.11.0
  • Date:
Downloads 29445 Hits 4013 CTR 734% 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

What's new

Addition

Library update

The library has been updated to version 3.11.0. The major version update is due to changes in the library's API. Check the functionality of your code.

Related extensions

WebTolk Joomla Extensions

91 Extensions
11 Categories
424 Versions released
422587 Downloads
Cart
Cart is empty