Commit 6e580a90 authored by Fabrizio Ruggeri's avatar Fabrizio Ruggeri
Browse files

Bump version to 2.7.0

parent 1845d232
# Changelog
## 2.7.0
- ✨ New `duotone` effect. Shift your images to two color tones
- Pipeline faster and more powerful
## 2.6.0
- ⚖️ Use new prosperity license
- Improvement: use native Map as memory cache
"name": "caravaggio",
"version": "2.6.0",
"version": "2.7.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......@@ -4296,7 +4296,7 @@
"chalk": {
"version": "1.1.3",
"resolved": "",
"resolved": "",
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"dev": true,
"requires": {
......@@ -4309,7 +4309,7 @@
"supports-color": {
"version": "2.0.0",
"resolved": "",
"resolved": "",
"integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
"dev": true
"name": "caravaggio",
"version": "2.6.0",
"version": "2.7.0",
"description": "A blazing fast image processor service",
"main": "index.js",
"bin": "bin/caravaggio",
......@@ -212,6 +212,18 @@
"version-2.6.0/version-2.6.0-license": {
"title": "License",
"sidebar_label": "License"
"version-2.7.0/version-2.7.0-attributions": {
"title": "Attributions",
"sidebar_label": "Attributions"
"version-2.7.0/version-2.7.0-duotone": {
"title": "Duotone",
"sidebar_label": "Duotone"
"version-2.7.0/version-2.7.0-license": {
"title": "License",
"sidebar_label": "License"
"links": {
id: version-2.7.0-attributions
title: Attributions
sidebar_label: Attributions
original_id: attributions
The images used in this documentation are taken on [Pexels](, by its
amazing photographers!
Here all the links to the original photos:
- [Photo by Matheus Bertelli from Pexels](
- [Photo by Simon Migaj from Pexels](
- [Photo by Klayfe Rohden from Pexels](
- [Photo by Emma Bauso from Pexels](
id: version-2.7.0-duotone
title: Duotone
sidebar_label: Duotone
original_id: duotone
Apply a `duotone`<a href="#reference"><sup>*</sup></a> effect to the image.
The paramters are, in order:
- `highlight color`
- `shadow color`
- `opacity` (optional)
Colors can be expressed in any [accepted format](
If an opacity is given, an semi-transparent version of the duotone image will be composited with the
original image. This way the original colors will be visible under the tones choosen.
## Example
Without opacity
<pre><code class="hljs css html" data-preview data-previewimage=""><strong>duotone_7aff62_6b11ca</strong>/</code></pre>
With opacity to 0.6
<pre><code class="hljs css html" data-preview data-previewimage=""><strong>duotone_7aff62_6b11ca_0.6</strong>/</code></pre>
![A family](assets/example/family.jpeg)
An opacity of 0.6 is used here, so original colors are visible:
![The same family picture with two predominat colors](assets/example/family-duotone.jpeg)
## Reference
This effect is borrowed by [`gatsby-plugin-sharp`]( and inspired by articles like <a href="" target="_blank">`duotone in js`</a>
id: version-2.7.0-license
title: License
sidebar_label: License
original_id: license
This package is free to use for non-commercial purpose.
This package is free to use for commercial purposes for a trial period under the terms of the [Prosperity Public License](
Licenses for long-term commercial use are available via [](,
buy a license clicking on the button below:
<p style="text-align: left">
style="vertical-align: middle;"
style="margin:0; display: inline;"
alt=" pricing"
<!-- [![ pricing](]( -->
"version-2.7.0-docs": {
"Getting started": [
"Usage": [
"More": [
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment