rokka
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
This module integrates Rokka.io with Drupal: after setting up your credentials the module allows to:
- Automatically upload images from fields to Rokka by using the
rokka://stream wrapper - Synchronize Drupal’s Image Styles to Rokka’s ImageStacks
- Display images from Rokka service
Install and Setup
Due to a hitch in the dependency resolution from the modules, the “composer_manager†module
must be installed first, and only later the “rokka†module.
drush en composer_manager -ydrush en rokka -y
Most module configuration is handled at admin/config/media/rokka.
Patches for full functionality
While Drupal core and contrib have basic support for remote stream wrappers, most modules have issues where they hard
code URIs or specific file systems. All of these patches add simple alter hooks, so they should be unlikely to cause
problems.
- Image styles Paths: hook_image_style_path_alter needs to be
patched in Drupal’s image.module. (REQUIRED) - Image styles URIs QueryTokens: hook_image_style_uri_token_query_alter needs to
be patched in Drupal’s image.module to avoid CDN issues with Rokka.
Features
- Rokka access credentials configuration and validation
- Listing of currently available SourceImages on Rokka
- Listing of currently available ImageStacks on Rokka with details
- Map Drupal image-effects to Rokka: image styles are automatically converted and saved to Rokka
- Batch move images to Rokka.io from existing fields (install the
rokka_massmoversubmodule) - Expose Rokka.io Operations as Drupal image-effects (install the
rokka_effectssubmodule)
Additional Rokka-only Image Effects
Please install the rokka_effects submodule.
- Crop with Background: allow images to be cropped with a bigger size than the original image, configurable background color and transparency
- Blur: apply blur effect to the image (un-sharpening)
Third-Party modules integration
The Rokka module has been successfully tested with the following third-party modules:
- FocalPoint module (version 7.x-1.0-beta6)
- Media module
- Picture module (version 7.x-2.x-dev, after issue #2610318 got merged)
Image Effects support:
This is a preliminary list of image effects supported by Rokka and the Rokka module:
- Core Drupal “Cropâ€
- Core Drupal “Resizeâ€
- Core Drupal “Rotateâ€
- Core Drupal “Scaleâ€
- Core Drupal “ScaleAndCropâ€
- Focal_Point: “Cropâ€
ToDo(s)
- Integrate effects from:
- Replace SourceImage list with a View
