user_guide_src/source/installation/upgrade_images.rst
Upgrade Image Manipulation Class ################################
.. contents:: :local: :depth: 2
Image Manipulation Class Documentation CodeIgniter 3.x <https://www.codeigniter.com/userguide3/libraries/image_lib.html>_Image Manipulation Class Documentation CodeIgniter 4.x <../libraries/images>initialize() method in CI3
have been changed to be specified in the new methods in CI4.create_thumb are removed.save() method must be called to save the manipulated image.display_errors() has been removed, and an exception will be thrown
if an error occurs.$this->load->library('image_lib'); to
$image = \Config\Services::image();.initialize() method
to be specified in the corresponding methods.save() method to save the file... literalinclude:: upgrade_images/ci3sample/001.php
.. literalinclude:: upgrade_images/001.php