Jump to content

Override "images.inc.php" file


Anubis777

Recommended Posts

Hello, I've modified the imageResize() function in "images.inc.php" file, so the images are "cut to fit" (I hate the white bands around the images), and also add some PHP GD extra options (desaturate image, apply a watermark through a PNG file, etc.).

 

This "beta" version does these tasks by looking for some parameters in a PHP file included manually in the theme, but this means to change the Prestashop structure (at least the images.inc.php file). I think that the "elegant way" is to make a module in which you can set these tasks for each image type.

 

Here is my question: is there an "official way" to override "images.inc.php". I know that you can override classes, controllers, etc. using the "override" folder. Can I do the same with the "images.inc.php"?

 

Regards.

Link to comment
Share on other sites

  • 2 months later...
  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...