Resource icon

AddOn Image Optimizer [Paid] 1.3.0

No permission to buy ($29.00)

truonglv

Staff member
Tech Support
#1
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...
 
#8
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!
 

truonglv

Staff member
Tech Support
#9
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!
Please 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.
 

nfn

New Member
#20
Hi

Have to say this addon is great and Nobita is a very patient and professional guy.
We talked for some days where we shared some ideias. After that, I tested this addon in my board with 120k images

These were the results:

io.png

On disk, the results were greater ... from 14GB to 7.2GB. This diference can be related to a previous import from another platform.

Nobita made some optimizations that allow this script to run very smoothly with this number of attachments.
Eventually in the beginning of the optimization things will be more cpu intensive but after that, thinks will run very smoothly!

I hope things remain simple and fast as they are now :)
 
Last edited:
Top