@opengis/fastify-table 1.4.61 → 1.4.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/fastify-table",
3
- "version": "1.4.61",
3
+ "version": "1.4.62",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [
@@ -10,6 +10,7 @@ import getMimeType from '../../../plugins/file/providers/mime/index.js';
10
10
 
11
11
  const defaultWidth = 400;
12
12
  const defaultHeight = 240;
13
+ const maxWidth = 2000;
13
14
 
14
15
  const getHeight = (width, size, ratio = 1) => {
15
16
  if (size && size.toLowerCase().split('x')[1]) return size.toLowerCase().split('x')[1];
@@ -25,7 +26,7 @@ const { resizeImage } = grpc();
25
26
 
26
27
  export default async function resize({ query = {}, unittest }, reply) {
27
28
  const {
28
- filepath, quality, size, w, h, nocache, maxWidth = 400,
29
+ filepath, quality, size, w, h, nocache,
29
30
  } = query;
30
31
 
31
32
  if (!filepath) {