GoodForNothing Image Optimizer [Paid] [Deleted]

I'd love to be able to run my custom avatars through Kraken.io although I would prefer lossless instead of lossy for the avatars.

Oh, and I just finished running our attachments using the lossy kraken.io compression. Overall, I optimized 5.75 GB of images (13.79 thousand files) saving 4.42 GB (77% savings).
 
Last edited:
I'm a new user to this addon. Obtained roughly 4gb disk space savings on 20,500 image attachments.

After installing, and doing my own test, I created a thread in a private forum and had the community upload pics. Enabled jpegoptim only and saw error messages in the admincp/home on any upload that wasn't jpg.

I setup a free Kraken.io account, but didn't enable it. Operation was fine but there was a different error message in the admincp/home. Enabled it afterward and the errors went away.

Yesterday morning I ran the attachment rebuild with Kraken.io enabled, and 90% on jpegoptim. I monitored Kraken.io and purchased a $5.o0/mo subscription before the rebuild was done. Ended up using 79% of the 500mb allotment. Purged the CDN afterward.

In hindsight, it may have saved me more space to not initially use jpegoptim at all and pay the $79/mo fee for an Enterprise-level Kraken.io subscription - then just reduce it back to $5.00/mo afterward. Currently I'm running 70% maximum quality on jpegoptim and new jpg attachments are looking good. Many images contain motorcycles with solid colors, and some have females posing on them, so I'm hesitant to bring down the quality further.

Before this addon I was looking forward to an early server migration, due to limited SSD space. I also re-enabled my redundant backup process because that backup process will now be able to operate within the current partition space. Now I'll be able to have both again (y)

Current uploaded attachments are being optimized with varying results, from zero to 4mb. Users are having a good time.

When the Kraken subscription renews next month, I may try using that service 100% for a bit. If I had run 70% max quality on jpegoptim results may have been similar. One of my test images reduced by 5mb through Kraken, most of the images uploaded today have reduced between 3-4mb.

The server migration will eventually happen regardless, but this addon has definitely bought me time. Users haven't said positive or negative, they are enjoying themselves :cool:

Thanks for your efforts!
 
This is on my to-do list. I'll be adding support for proxy'd images, avatars, style files once my schedule clears up a little :)

This would be huge for me.

Tested through Google Pagespeed and the majority of the images it's complaining about now are custom avatars and proxied images. If possible, my preference is to run custom avatars through Kraken and proxied-images via jpegoptim.
 
sometimes I get this error.

XenForo_Exception: gfnkraken_no_compressor_available - library/GFNKraken/ImageCompressor/Abstract.php:38
Generated By: name, 21 minutes ago
Stack Trace

#0 /home/mypath/library/GFNKraken/Extend/XenGallery/Model/File.php(31): GFNKraken_ImageCompressor_Abstract::compress('/tmp/phpl201XQ', 1)
#1 /home/mypath/library/XenGallery/ControllerPublic/File.php(175): GFNKraken_Extend_XenGallery_Model_File->insertUploadedAttachmentData(Object(XenForo_Upload), 1, Array)
#2 /home/mypath/library/XenForo/FrontController.php(347): XenGallery_ControllerPublic_File->actionDoUpload()
#3 /home/mypath/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /home/mypath/index.php(13): XenForo_FrontController->run()
#5 {main}

Request State

array(3) {
["url"] => string(148) "https://www.site.com/media/files/do...xengallery_media&upload_type=image&key=images"
["_GET"] => array(4) {
["hash"] => string(32) "e7d1fe4c857da2326d8997cc63312ff5"
["content_type"] => string(16) "xengallery_media"
["upload_type"] => string(5) "image"
["key"] => string(6) "images"
}
["_POST"] => array(7) {
["Filename"] => string(26) "mayweather vs pacquiao.gif"
["_xfResponseType"] => string(4) "json"
["_xfNoRedirect"] => string(1) "1"
["content_data"] => array(1) {
["category_id"] => string(1) "2"
}
["_xfSessionId"] => string(32) "9934a318589937036ad5cca1a0d67f05"
["_xfToken"] => string(8) "********"
["Upload"] => string(12) "Submit Query"
}
}
 
sometimes I get this error.
okay, so I looked into it. I'll push a fix on the next release and you can safely ignore the errors as the users are not getting any error and can upload images successfully.
It's just logging that the image was not compressed as no valid compressor was found, which is shown for GIF and PNG files if Kraken.IO is disabled.
 
Finished adding support for avatars, though only a couple of kB is saved :P
Of course added an admin option for those who do not want to compress user avatars. Will be pushing an update tomorrow once I've tested it out a bit more :)
 
Tested through Google Pagespeed and the majority of the images it's complaining about now are custom avatars and proxied images. If possible, my preference is to run custom avatars through Kraken and proxied-images via jpegoptim.
The current system wont be able to handle images that way and will required a major overhaul. So will take some time to implement "different compressors for different modules" :)
 
Switched hosts, got these errors on most (possibly all) pics uploaded today. What should I do?

Thanks

XenForo_Exception: sh: /usr/bin/jpegoptim: No such file or directory - library/GFNKraken/ImageCompressor/Abstract.php:149
Generated By: me, Yesterday at 11:19 PM
Stack Trace
#0 /home/path/here/library/GFNKraken/ImageCompressor/Abstract.php(26): GFNKraken_ImageCompressor_Abstract->process('/tmp/phpn7aSup')
#1 /home/path/here/library/GFNKraken/Extend/XenForo/Model/Attachment.php(31): GFNKraken_ImageCompressor_Abstract::compress('/tmp/phpn7aSup', 2)
#2 /home/path/here/library/XenForo/ControllerPublic/Attachment.php(204): GFNKraken_Extend_XenForo_Model_Attachment->insertUploadedAttachmentData(Object(XenForo_Upload), 1)
#3 /home/path/here/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_Attachment->actionDoUpload()
#4 /home/path/here/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /home/path/here/index.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
["url"] => string(107) "https://www.domain.com/attachments/...3de69d0880e4eaea741f1bd4078&content_type=post"
["_GET"] => array(2) {
["hash"] => string(32) "ad6d43de69d0880e4eaea741f1bd4078"
["content_type"] => string(4) "post"
}
["_POST"] => array(7) {
["Filename"] => string(40) "picture-name (11).jpg"
["_xfResponseType"] => string(4) "json"
["_xfNoRedirect"] => string(1) "1"
["content_data"] => array(1) {
["node_id"] => string(3) "105"
}
["_xfSessionId"] => string(32) "c9705cfc6af39f9401df4d8094be3062"
["_xfToken"] => string(8) "********"
["Upload"] => string(12) "Submit Query"
}
}
 
Back
Top Bottom