Anubis777 Posted June 8, 2012 Share Posted June 8, 2012 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 More sharing options...
pcland Posted August 10, 2012 Share Posted August 10, 2012 I would really like to know the answer to this as well. The image resizing is really strange and I'd like a safe way to override it. Link to comment Share on other sites More sharing options...
luchiniii Posted January 28, 2013 Share Posted January 28, 2013 I have the same question is there a way to override the image.inc file??.... it's a very important file for custom themes so I think It should be, if not then it's a suggestion Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now