Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The extension not optimizing the products images. #9

Open
IbrahimS2 opened this issue Mar 11, 2017 · 4 comments
Open

The extension not optimizing the products images. #9

IbrahimS2 opened this issue Mar 11, 2017 · 4 comments

Comments

@IbrahimS2
Copy link

The extension works well with the skin & some of the media contents, but overall it's not fully functional when it comes to the product optimisation, let me share with you a thing I'm dealing with here:

http://prntscr.com/eit7z1

So, I hope you do have an idea why this extension not optimising the product's images.

@m-overlund
Copy link

The first time, you need to go to Kraken.io > Image Optimizer and Flush catalog images cache, as stated.

Then product images will get optimized the first time someone loads the product page of each product.

Have you done this?

@IbrahimS2
Copy link
Author

IbrahimS2 commented Mar 12, 2017 via email

@mertgokceimam
Copy link

We also have the exact same issue on our side. We flushed product images cache and made a count at that moment to see how many images we had.

public/media/catalog$ find . -type f | wc -l
204837

As of now KrakenOptimisation Statistics show us following http://d.pr/i/PL42/4guh2S4c Basically it looks like Kraken is also trying to upload all the newly generated product cache images. This seems like a major bug as Kraken integration shall be designed to ignore the cache images

@markus-moegel
Copy link
Collaborator

@mertgokceimam

The Extension is ONLY optimising the cached product images. Here is why:

Magento puts every product image into the cache. If we would optimize the uncached product images, the optimization would be lost
after the magento image cache process.

Because you have diffrent sizes of the product image on diffrent pages (catgeory, product view, cart, etc.) we need to optimize the cached images.

@mertgokceimam and @MageSuper ,
it seems, that the frontend files are missing:

go to app/design/frontend/base/default/layout
check if the kraken.xml exists, if not, add it.

go to app/design/frontend/base/default/template
check if the kraken folder exists, if not, add it.

you cacn get folder and file from the git.

vseager added a commit to vseager/kraken-magento that referenced this issue Dec 13, 2018
This fixes the following error when saving configuration:

```
Cannot send headers; headers already sent in /var/www/app/code/community/Welance/Kraken/Model/Observer.php, line 1

#0 /var/www/lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
kraken-io#1 /var/www/app/code/core/Mage/Core/Controller/Response/Http.php(107): Zend_Controller_Response_Abstract->setRedirect('http://vaping.v...', 302)
kraken-io#2 /var/www/app/code/core/Mage/Adminhtml/Controller/Action.php(358): Mage_Core_Controller_Response_Http->setRedirect('http://vaping.v...')
kraken-io#3 /var/www/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(195): Mage_Adminhtml_Controller_Action->_redirect('*/*/edit', Array)
kraken-io#4 /var/www/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->saveAction()
kraken-io#5 /var/www/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('save')
kraken-io#6 /var/www/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
kraken-io#7 /var/www/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
kraken-io#8 /var/www/app/Mage.php(691): Mage_Core_Model_App->run(Array)
kraken-io#9 /var/www/index.php(84): Mage::run('', 'store')
kraken-io#10 {main}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants