Title: Rokka Integration
Author: liip
Published: <strong>24 d'abril de 2017</strong>
Last modified: 24 de febrer de 2023

---

Cerca extensions

![](https://ps.w.org/rokka-integration/assets/banner-772x250.png?rev=1644051)

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

![](https://ps.w.org/rokka-integration/assets/icon-256x256.png?rev=1644051)

# Rokka Integration

 Per [liip](https://profiles.wordpress.org/liip/)

[Baixa](https://downloads.wordpress.org/plugin/rokka-integration.5.1.0.zip)

 * [Detalls](https://ca.wordpress.org/plugins/rokka-integration/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/rokka-integration/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/rokka-integration/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/rokka-integration/#developers)

 [Suport](https://wordpress.org/support/plugin/rokka-integration/)

## Descripció

[rokka](https://rokka.io) is digital image processing done right. Store, render 
and deliver images. Easy and blazingly fast. This WordPress plugin automatically
uploads your pictures to rokka and delivers them in the right format, as light and
as fast as possible. And you only pay what you use, no upfront and fixed costs.

This WordPress plugin integrates the rokka image service. All images from your image
libary will be synchronized to your rokka account and be served directly through
rokka.

#### Requirements

 * WordPress >= 4.7
 * PHP >= 7.1

#### Further Information

 * Documentation: [https://github.com/rokka-io/rokka-wordpress-plugin/wiki](https://github.com/rokka-io/rokka-wordpress-plugin/wiki)
 * WordPress Plugin: [https://wordpress.org/plugins/rokka-integration/](https://wordpress.org/plugins/rokka-integration/)
 * Website: [https://rokka.io](https://rokka.io)
 * GitHub Repository: [https://github.com/rokka-io/rokka-wordpress-plugin](https://github.com/rokka-io/rokka-wordpress-plugin)
 * Changelog: [https://github.com/rokka-io/rokka-wordpress-plugin/releases](https://github.com/rokka-io/rokka-wordpress-plugin/releases)
 * Issue tracker: [https://github.com/rokka-io/rokka-wordpress-plugin/issues](https://github.com/rokka-io/rokka-wordpress-plugin/issues)

## Captures

 * [[
 * Media management with rokka integration
 * [[
 * Rokka settings
 * [[
 * Rokka stack synchronization
 * [[
 * Rokka mass uploader

## Instal·lació

 1. Upload the `rokka-integration` directory into the `/wp-content/plugins/` directory
 2. Activate the plugin through the `Plugins` menu in WordPress
 3. Add your rokka credentials in the rokka settings (`Settings > Rokka Settings`)
 4. Synchronize your image sizes to rokka (`Settings > Rokka Settings > Sync stacks`)
 5. Enable rokka support (`Settings > Rokka Settings > Enable rokka integration`)
 6. Start uploading your images to rokka via mass uploader (`Settings > Rokka Settings
    > Mass upload/delete`) or image by image in the media management (`Media (list 
    mode)`)

## PMF

### What will happen to my image sizes?

You can synchronize all defined image sizes as so called stacks to rokka.

### An image from rokka can’t be loaded anymore. What should I do?

If an image which was previously uploaded to rokka can’t be loaded anymore try comparing
the rokka hash in the WordPress attachment edit screen with the hash of the image
on rokka.io ([https://rokka.io/dashboard/](https://rokka.io/dashboard/)) itself.

If it doesn’t match anymore just copy & paste the hash from rokka.io to the WordPress
attachment edit screen and save the image.

### What is the stack prefix used for?

When synchronizing image sizes from WordPress to rokka the name of the size will
be prefixed with this value to create a new stack on rokka.
 By prefixing the rokka
stack names we ensure that already existing stacks on rokka won’t be overwritten.
Additionally we are able to identify deleted image sizes on WordPress and delete
them on rokka as well.

### I created a new / changed an existing size in WordPress. What do I have to do now?

Everytime you change something on your size configuration in WordPress you need 
to re-synchronize the sizes with the rokka stacks.
 You can do this in the rokka
settings (`Settings > Rokka Settings > Sync stacks`).

### Have you found a bug or do you have a feature request?

Please create a new GitHub issue and let us know: [https://github.com/rokka-io/rokka-wordpress-plugin/issues](https://github.com/rokka-io/rokka-wordpress-plugin/issues)

## Ressenyes

![](https://secure.gravatar.com/avatar/64b8b532769fb0ffc24a3938e7050554aaf0939ef0e774ce6ccfe7661421dffc?
s=60&d=retro&r=g)

### 󠀁[Fast image loading, hassle-free](https://wordpress.org/support/topic/fast-image-loading-hassle-free/)󠁿

 [timobezjak](https://profiles.wordpress.org/timobezjak/) 31 de gener de 2023

Rokka makes images load fast with zero hassle for configuration or setup. With my
company website, I’m comfortably in the free tier, so no issues on that end either.
I just got very fast and thourough personal support in fixing an issue, now everything
works great.

![](https://secure.gravatar.com/avatar/9a7c7936ba87fcf84ad20b4ed45fd555e708116cc4416b3f175f72053f1da248?
s=60&d=retro&r=g)

### 󠀁[Not quite perfect](https://wordpress.org/support/topic/not-quite-perfect/)󠁿

 [sandrowuermli](https://profiles.wordpress.org/sandrowuermli/) 29 de novembre de
2022 2 respostes

Favicon and other icons are not displayed because webp format is not supported as
favicon.

 [ Llegiu totes les 2 ressenyes ](https://wordpress.org/support/plugin/rokka-integration/reviews/)

## Col·laboradors i desenvolupadors

«Rokka Integration» és programari de codi obert. La següent gent ha col·laborat 
en aquesta extensió.

Col·laboradors

 *   [ liip ](https://profiles.wordpress.org/liip/)
 *   [ tschortsch ](https://profiles.wordpress.org/tschortsch/)

[Traduïu «Rokka Integration» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/rokka-integration)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/rokka-integration/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/rokka-integration/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/rokka-integration/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/rokka-integration/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 5.1.0

 * [FIX] Create stacks for custom `site_icon` sizes. If the theme registers custom`
   site_icon` sizes via the `site_icon_image_sizes` filter, the stacks for those
   sizes haven’t been created in rokka which resulted in not rendering the favicons
   correctly in some cases. Please check if your stacks are up-to-date after updating
   to this version.

#### 5.0.0

 * **Breaking Change** [CHANGE] Removed autoformat option. The `autoformat` option
   has been removed. This option is now always enabled on every stack. There is 
   no reason anymore to disable this option. Please check if your stacks are up-
   to-date after updating to this version.
 * [COMPATIBILITY] Tested with WordPress 6.1.

#### 4.0.0

Starting with this version the plugin only supports WordPress version >= 4.7 and
PHP versions >= 7.1.
 This step was needed to be compatible with the latest rokka
PHP client library.

 * **[COMPATIBILITY] Dropped support for WordPress < 4.7 and PHP < 7.1**. Please
   update your website if you still would like to receive updates for this plugin.
 * [COMPATIBILITY] Tested with WordPress 6.0.

#### 3.3.1

 * [FIX] The autoformat option wasn’t respected in the stack synchronization for
   the no-operation (full) stack.

#### 3.3.0

 * [FEATURE] Add possibility to remove all rokka hashes from files. This can be 
   useful after copying a database from one environment to another.
 * [FIX] Use new `block_editor_settings_all` filter instead of deprecated `block_editor_settings`
   to disable image editing (WP >= 5.8).
 * [NOTICE] Tested with WordPress 5.8.1.

#### 3.2.0

 * [NOTICE] Tested with WordPress 5.5.
 * [FIX] Disabled image editing in block editor.

#### 3.1.1

 * [NOTICE] Tested with WordPress 5.4.
 * [UPDATE] Update dependency versions

#### 3.1.0

This release fixes some compatibility issues with WordPress 5.3. The new version
of WordPress introduces a `big_image_size_threshold` filter (see: https://make.wordpress.
org/core/2019/10/09/introducing-handling-of-big-images-in-wordpress-5-3/) which 
limits the image size of new uploaded images. Since this could lead to unexpected
behaviour when loading bigger image sizes we disable this filter when the rokka 
plugin is enabled.

 * [FIX] Fix styling issues with WordPress 5.3.
 * [NOTICE] Disable new `big_image_size_threshold` filter which was introduced in
   WordPress 5.3.

#### 3.0.1

 * [IMPROVEMENT] Improve admin settings
 * [UPDATE] Update rokka-client-php to v1.10.0

#### 3.0.0

This release fixes an issue in WordPress where srcsets are generated with images
of a ratio that doesn’t match the ratio of the requested image size. This happens
when the requested size is larger than the original image. When requesting an image
size with a fixed ratio and the original image is smaller than this size you would
expect to get all smaller sizes of the same ratio.

To achieve this behavior this release changes the way images are downsized by WordPress.**
This means that you need to regenerate the thumbnails when you activate and deactivate
this plugin.** This can be done for example with the following plugin: [https://wordpress.org/plugins/regenerate-thumbnails/](https://wordpress.org/plugins/regenerate-thumbnails/)

Everything works fine if you don’t do it but the fix will then only apply to newly
uploaded images.

 * [BUGFIX] Fix WordPress bug where srcsets are generated with images of a wrong
   ratio.
 * [BUGFIX] Fix warning in media library if attachment metadata is not yet generated
   after file upload.
 * [UPDATE] Update rokka-client-php to v1.8.0

#### 2.0.3

 * [BUGFIX] Fix WordPress bug where `$detached` parameter in `manage_media_columns`-
   filter is not set.

#### 2.0.2

 * [BUGFIX] Fetch image meta data if not passed to `get_size_by_image_url()`

#### 2.0.1

 * [BUGFIX] Autoformat option was not set when syncing stacks for the first time.
 * [BUGFIX] Backport `wp_image_matches_ratio` function to be compatible with older
   WordPress versions than 4.6.0
 * [BUGFIX] Fix finding of nearest matching size if image is requested with a width/
   height array instead of a size string

#### 2.0.0

This is a huge rewrite of the plugin but there shouldn’t be any breaking changes.

 * [FEATURE] Support attachments which are uploaded through the WordPress REST API(
   This ensures compatibility to the new Gutenberg editor)
 * [FEATURE] Auto disable rokka integration if settings are incomplete
 * [UPDATE] Update rokka-client-php to v1.2.0
 * [CHANGE] Improve unit test coverage

#### 1.2.3

 * [FEATURE] Add unit tests to test url filtering
 * [UPDATE] Update rokka-client-php to v1.0.0
 * [FIX] Fix URL filtering when creating srcset
 * [FIX] Use correct filenames for different sizes
 * [FIX] There shouldn’t be an upload error when it’s not needed to upload an attachment
   to rokka

#### 1.2.2

 * [UPDATE] Update rokka-client-php to v0.10.0
 * [CHANGE] Improve generation of prefixed stack names

#### 1.2.1

 * [FEATURE] Add autoformat option. If autoformat is enabled, rokka will deliver
   an image in the usually smaller WebP format instead of PNG or JPG, if the client
   supports it.
 * [FIX] Fix usage of `ROKKA_DOMAIN` constant

#### 1.2.0

 * [FEATURE] Add possibility to define options with constants. Available constants
   are: `ROKKA_COMPANY_NAME`, `ROKKA_API_KEY` and `ROKKA_STACK_PREFIX`
 * [FEATURE] Add possibility to overwrite base settings with constants. Available
   constants are: `ROKKA_DOMAIN` (default: `rokka.io`) and `ROKKA_SCHEME` (default:`
   https`)
 * [REMOVE] Remove rokka api secret option since it’s not used anymore

#### 1.1.3

 * [FEATURE] Add Cli-Commands to create stacks and noop-stacks on rokka
 * [CHANGE] Use overwrite option to update existsing stack

#### 1.1.2

 * [FIX] Do not delete rokka image if there are other images with the same hash

#### 1.1.1

 * [CHANGE] Save plugin options as booleans
 * [FIX] Fix a problem with allowed filenames (slugs) on rokka

#### 1.1.0

 * [FEATURE] Add option to define if previous image should be deleted on rokka if
   metadata changes

#### 1.0.0

 * Initial release of this plugin

## Meta

 *  Versió **5.1.0**
 *  Darrera actualització **fa 3 anys**
 *  Instal·lacions actives **20+**
 *  Versió del WordPress ** 4.7 o posterior **
 *  Provada fins a **6.1.10**
 *  Versió del PHP ** 7.1 o posterior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/rokka-integration/)
 * Etiquetes
 * [cdn](https://ca.wordpress.org/plugins/tags/cdn/)[image](https://ca.wordpress.org/plugins/tags/image/)
   [integration](https://ca.wordpress.org/plugins/tags/integration/)[service](https://ca.wordpress.org/plugins/tags/service/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/rokka-integration/advanced/)

## Valoracions

 3.5 sobre 5 estrelles.

 *  [  1 valoració de 5 estrelles     ](https://wordpress.org/support/plugin/rokka-integration/reviews/?filter=5)
 *  [  0 valoracions de 4 estrelles     ](https://wordpress.org/support/plugin/rokka-integration/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/rokka-integration/reviews/?filter=3)
 *  [  1 valoració de 2 estrelles     ](https://wordpress.org/support/plugin/rokka-integration/reviews/?filter=2)
 *  [  0 valoracions de 1 estrelles     ](https://wordpress.org/support/plugin/rokka-integration/reviews/?filter=1)

[Afegeix una ressenya](https://wordpress.org/support/plugin/rokka-integration/reviews/#new-post)

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/rokka-integration/reviews/)

## Col·laboradors

 *   [ liip ](https://profiles.wordpress.org/liip/)
 *   [ tschortsch ](https://profiles.wordpress.org/tschortsch/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/rokka-integration/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](https://rokka.io/)