Severity: Warning
Message: opendir(/var/cpanel/php/sessions/ea-php74): failed to open dir: Permission denied
Filename: drivers/Session_files_driver.php
Line Number: 360
Backtrace:
File: /home/picsmize/public_html/development/application/controllers/Front.php
Line: 11
Function: library
File: /home/picsmize/public_html/development/index.php
Line: 331
Function: require_once
Severity: Warning
Message: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/picsmize/public_html/development/system/core/Exceptions.php:271)
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /home/picsmize/public_html/development/application/controllers/Front.php
Line: 11
Function: library
File: /home/picsmize/public_html/development/index.php
Line: 331
Function: require_once
Create a free account and start processing
your images smarter.
Click Here to go Picsmize API docs for full API reference.
To install the Laravel Picsmize package, the syntax for installing the command line goes like this;
or add to your project's composer.json
:
...and run following command, to fetch the updated package from composer.json
Register provider and facade on your project's config/app.php
file
Publish the configuration for the package which will create the config file config/picsmize.php
:
The last step is to provide your Picsmize API Key by either setting app variable picsmize_apikey
in your project's config/app.php
file or by directly editing the config/picsmize.php
file.
If you don't have your API Key just yet, you can sign-up for a free account.
And That's it! Start optimizing..!
This Picsmize Laravel library allows all the operations available with the Picsmize API. The following example uses image fetch
, compress
, resize
and filter
with different mode and get the output file directly with toJSON()
method: