Image orientation changes after upload

2 posts by 2 authors in: Forums > CMS Builder
Last Post: August 19, 2016   (RSS)

Hi Jeremy, 

This happens because rotating an image in PHP is quite memory intensive, and by default CMS Builder limits how much memory it uses to 128MB. But you can increase the amount of memory the server has access to by editing aplicaCMS/lib/init.php on line 179:

ini_set('memory_limit', '128M'); // raise memory limit (if allowed)

change this line so CMS Builder has access to 1024 MB of memory instead:

ini_set('memory_limit', '1024M'); // raise memory limit (if allowed)

Thanks,

Greg

Greg Thomas







PHP Programmer - interactivetools.com