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 licesezero.com 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": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"dev": true,
"requires": {
......@@ -4309,7 +4309,7 @@
},
"supports-color": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
"resolved": "http://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
"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](https://www.pexels.com), by its
amazing photographers!
Here all the links to the original photos:
- [Photo by Matheus Bertelli from Pexels](https://www.pexels.com/photo/blur-casual-christmas-lights-close-up-573306/?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels)
- [Photo by Simon Migaj from Pexels](https://www.pexels.com/photo/person-on-a-bridge-near-a-lake-747964/?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels)
- [Photo by Klayfe Rohden from Pexels](https://www.pexels.com/photo/baked-pies-and-breads-873653/?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels)
- [Photo by Emma Bauso from Pexels](https://www.pexels.com/photo/family-of-four-walking-at-the-street-2253879/?utm_content=attributionCopyText&utm_medium=referral&utm_source=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](resize.md#colors).
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="https://cvg-res.now.sh/family.jpeg">https://caravaggio.now.sh/<strong>duotone_7aff62_6b11ca</strong>/https://cvg-res.now.sh/family.jpeg</code></pre>
With opacity to 0.6
<pre><code class="hljs css html" data-preview data-previewimage="https://cvg-res.now.sh/family.jpeg">https://caravaggio.now.sh/<strong>duotone_7aff62_6b11ca_0.6</strong>/https://cvg-res.now.sh/family.jpeg</code></pre>
**Original**
![A family](assets/example/family.jpeg)
**Result**
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`](https://www.gatsbyjs.org/packages/gatsby-plugin-sharp/?=sharp) and inspired by articles like <a href="http://blog.72lions.com/blog/2015/7/7/duotone-in-js" 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](https://gitlab.com/ramiel/caravaggio/blob/master/LICENSE).
Licenses for long-term commercial use are available via [licensezero.com](https://licensezero.com),
buy a license clicking on the button below:
<p style="text-align: left">
<a
href="https://licensezero.com/projects/0409c5bf-201d-49dd-af6e-2aa5169cf15a"
target="_blank"
style="vertical-align: middle;"
>
<img
style="margin:0; display: inline;"
src="https://licensezero.com/projects/0409c5bf-201d-49dd-af6e-2aa5169cf15a/badge.svg"
alt="licensezero.com pricing"
/>
</a>
</p>
<!-- [![licensezero.com pricing](https://licensezero.com/projects/0409c5bf-201d-49dd-af6e-2aa5169cf15a/badge.svg)](https://licensezero.com/projects/0409c5bf-201d-49dd-af6e-2aa5169cf15a) -->
{
"version-2.7.0-docs": {
"Getting started": [
"version-2.7.0-whatis",
"version-2.7.0-install",
"version-2.7.0-configuration",
"version-2.7.0-help"
],
"Usage": [
"version-2.7.0-general-usage",
"version-2.7.0-output",
"version-2.7.0-progressive",
"version-2.7.0-resize",
"version-2.7.0-extract",
"version-2.7.0-overlay",
"version-2.7.0-quality",
"version-2.7.0-rotate",
"version-2.7.0-flip",
"version-2.7.0-blur",
"version-2.7.0-duotone"
],
"More": [
"version-2.7.0-attributions",
"version-2.7.0-license"
]
}
}
[
"2.7.0",
"2.6.0",
"2.5.2",
"2.5.1",
......
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