caravaggio
Advanced tools
Comparing version 1.3.1 to 1.3.2
# Changelog | ||
## 1.3.2 | ||
- Docker image is now based on Alpine | ||
- Documentation update | ||
- Remove console.log from code | ||
- Docker listen to port 8565 by default. For real now. | ||
## 1.3.1 | ||
@@ -4,0 +10,0 @@ |
@@ -121,4 +121,12 @@ /** | ||
], | ||
/** | ||
* Options for sharp. | ||
* cache: true|false|object Refer to the official documentation http://sharp.pixelplumbing.com/en/stable/api-utility/#cache | ||
*/ | ||
sharp: { | ||
cache: true, | ||
}, | ||
compress: true, | ||
}; | ||
@@ -38,3 +38,3 @@ const path = require('path'); | ||
module.exports = { | ||
port: parseInt(process.env.CARAVAGGIO_PORT, 10) || 80, | ||
port: parseInt(process.env.CARAVAGGIO_PORT, 10) || 8565, | ||
persistor: { | ||
@@ -52,3 +52,6 @@ type: persistorType, | ||
defaultTransformations, | ||
sharp: { | ||
cache: false, | ||
}, | ||
}; | ||
{ | ||
"name": "caravaggio", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "A blazing fast image processor service", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const fetch = require('node-fetch'); | ||
const sharp = require('sharp'); | ||
const config = require('config'); | ||
sharp.cache(config.get('sharp.cache')); | ||
const Image = { | ||
@@ -5,0 +8,0 @@ get: url => fetch(url) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1316048
895