Resource icon

AddOn Image Optimizer [Paid] 1.3.0

PayPal: $29.00

Truonglv

♥♥ √εgετα ♥♥
Staff member
Tech Support
Nobita submitted a new resource:

Image Optimizer - Optimize all attachments in your forum to save disk space.

Code:
## IMPORTANT
* Add-on have provide a powerful settings in ACP options. You MUST settings option before running optimize images.
 All files will be overwrite then you cannot revert the file to original.

## HOW TO INSTALL
* Extract the add-on then upload to your forum root directory.
* Go to your SSH or Ternimal and running this command.
    `cd {absolute_path_to_root_directory}/library/Nobita/ImageOptimizer`

* Now make sure the setup.sh file is executable.
    `chmod +x setup.sh` 

*...

Read more about this resource...
 
Hi @Nobita
I just installed but I'm unable to run it.
I got this error:
Error Info
InvalidArgumentException: Binary file (/var/www/xxxlibrary/Nobita/ImageOptimizer/libs/bin/pngquant) not executable. - library/Nobita/ImageOptimizer/ImageHandler/Abstract.php:54
Generated By: Unknown Account, 16 minutes ago
Stack Trace
#0 /var/www/xxx/library/Nobita/ImageOptimizer/Model/Image.php(207): Nobita_ImageOptimizer_ImageHandler_Abstract->optimize('/var/www/swmani...', Array)
#1 /var/www/xxx/library/Nobita/ImageOptimizer/Model/Image.php(390): Nobita_ImageOptimizer_Model_Image->processFile('attachment', 1, 'thumbnail', '/var/www/xxx...', 1370683921)
#2 [internal function]: Nobita_ImageOptimizer_Model_Image->_runOptimizeAttachments()
#3 /var/www/xxx/library/Nobita/ImageOptimizer/Model/Image.php(124): call_user_func_array(Array, Array)
#4 /var/www/xxx/library/Nobita/ImageOptimizer/Deferred/Optimize.php(64): Nobita_ImageOptimizer_Model_Image->run()
#5 /var/www/xxx/library/XenForo/Model/Deferred.php(295): Nobita_ImageOptimizer_Deferred_Optimize->execute(Array, Array, 7.9999959468842, '')
#6 /var/www/xxx/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999959468842, '', false)
#7 /var/www/xxx/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#8 /var/www/xxx/deferred.php(23): XenForo_Model_Deferred->run(false)
#9 {main}
Request State
array(3) {
["url"] => string(41) "http://www.swmania.com.devel/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(29) "/admin.php?tools/run-deferred"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
Found an empty Log and the add-on options.
Can't find any where to start the cron job.
Please, let me know the next steps to start this addon.
Thanks!
 
Hi @Nobita
I just installed but I'm unable to run it.
I got this error:

Found an empty Log and the add-on options.
Can't find any where to start the cron job.
Please, let me know the next steps to start this addon.
Thanks!
BreixoPlease set permissions to binary files executable. If you are using VPS just running.
Code:
chmod +x /var/www/xxxlibrary/Nobita/ImageOptimizer/libs/bin/pngquant
chmod +x /var/www/xxxlibrary/Nobita/ImageOptimizer/libs/bin/jpegoptim
chmod +x /var/www/xxxlibrary/Nobita/ImageOptimizer/libs/bin/gifsicle

If you using FileZilla. Just set file permissions to 511.
 
Thanks @Nobita
I just set new permissions.
Is there any option to manually start the cron job? When does it automatically start?
 
Thanks @Nobita
I just set new permissions.
Is there any option to manually start the cron job? When does it automatically start?
BreixoIt is automatic running. Please check the log to make sure it is running fine.
 
Back
Top