PHPackages                             gene/module-kraken - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. gene/module-kraken

ActiveMagento2-module

gene/module-kraken
==================

Optimise images uploaded through the Magento admin with Kraken.io from GENE Commerce

1.0.5(5y ago)1511.6k↓50%2OSL-3.0PHP

Since Mar 21Pushed 4y ago2 watchersCompare

[ Source](https://github.com/genecommerce/module-kraken)[ Packagist](https://packagist.org/packages/gene/module-kraken)[ RSS](/packages/gene-module-kraken/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (8)Used By (0)

Kraken Image Optimisation
=========================

[](#kraken-image-optimisation)

This module will optimise all images uploaded to products pages &amp; CMS pages through Kraken, saving vital disk space and increasing page load speeds.

You can optimise existing images using the `bin/magento gene:kraken:optimise [directory] [skipcache]` command. *Be sure to take a backup of the directory first as the module will overwrite the existing files.**Cache files are included by default.*

Support
-------

[](#support)

This module is provided as open source with no support provided.

Requirements
------------

[](#requirements)

1. A [Kraken](https://kraken.io/) account
2. Magento 2.1 and 2.2+ and 2.3+ Commerce/OpenSource

Setup Guide
-----------

[](#setup-guide)

1. Create an account on [Kraken](https://kraken.io/)
2. Retrieve your [API Credentials](https://kraken.io/account/api-credentials) from the Kraken web interface
3. Install this module using the command `composer require gene/module-kraken`
4. Run `bin/magento setup:upgrade`
5. In the Magento admin, navigate to Stores -&gt; Settings -&gt; Configuration -&gt; GENE Commerce -&gt; Kraken.
6. Enter your API Credentials from step 2 and select "Yes" for the "Enable Kraken Image Optimisation" option.
7. Save your configuration and flush the Magento config cache

How does it work?
-----------------

[](#how-does-it-work)

The core Magento class `Magento\Framework\File\Uploader` is overriden in order to send any uploaded images (in their temporary storage state) to Kraken for optimisation ([code reference](https://github.com/genecommerce/module-kraken/blob/develop/Model/Overrides/FrameworkUploader.php#L43)). This ensures any subsequent resizing by the Magento platform is done on the optimised image.

If Kraken does not return a valid response, [the error is logged](https://github.com/genecommerce/module-kraken/blob/develop/Model/Optimise.php#L129) to the core Magento log files. Equally if Kraken does not return a response within 30 seconds the optimisation will be skipped. In all instances, the module fails gracefully in order to ensure the image is still uploaded.

Authors
-------

[](#authors)

This module was built by [GENE Commerce](http://www.gene.co.uk/).

- [Aidan Threadgold (Lead Developer)](https://twitter.com/AidanThreadgold)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~193 days

Recently: every ~241 days

Total

6

Last Release

2011d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/112fb744acca7c0c63cf0282b4f447d8f1c1703ea1330c115eb1a135435d17ff?d=identicon)[genecommerce](/maintainers/genecommerce)

---

Top Contributors

[![cjnewbs](https://avatars.githubusercontent.com/u/1676494?v=4)](https://github.com/cjnewbs "cjnewbs (3 commits)")[![kieronthomas](https://avatars.githubusercontent.com/u/25824951?v=4)](https://github.com/kieronthomas "kieronthomas (2 commits)")

---

Tags

magento2magento2-module

### Embed Badge

![Health badge](/badges/gene-module-kraken/health.svg)

```
[![Health](https://phpackages.com/badges/gene-module-kraken/health.svg)](https://phpackages.com/packages/gene-module-kraken)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.2M1](/packages/fastly-magento2)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[smile/module-debug-toolbar

Smile Debug Toolbar

146247.6k2](/packages/smile-module-debug-toolbar)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[spacecatninja/imager-x

Ninja powered image transforms.

29390.0k23](/packages/spacecatninja-imager-x)[lizardmedia/module-varnish-warmer

Varnish Cache Warmer Magento2 module by Lizard Media

6276.8k](/packages/lizardmedia-module-varnish-warmer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
