Optimize image and upload on amazon S3 directly from Kraken
CodeIgniter Library to Optimize images and upload them into S3 bucket using Kraken's PHP API.
How to use it:
-
Load the Library in your controller
-
use the function $this->kraken_lib->optimize_and_upload($file_path, $file_name, $bucket_folder, $resize);
-
That's it, Check the S3 bucket for the kraked file.
You can view the example in the Controller Folder.