@hkdigital/lib-core 0.5.19 → 0.5.20

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.
@@ -25,45 +25,38 @@ const DEFAULT_PRESETS = {
25
25
  default: {
26
26
  format: 'avif',
27
27
  quality: '90',
28
- as: 'metadata',
29
- withMetadata: ''
28
+ as: 'metadata'
30
29
  },
31
30
  render: {
32
31
  format: 'jpg',
33
32
  quality: '95',
34
- as: 'metadata',
35
- withMetadata: ''
33
+ as: 'metadata'
36
34
  },
37
35
  photo: {
38
36
  format: 'jpg',
39
37
  quality: '95',
40
- as: 'metadata',
41
- withMetadata: ''
38
+ as: 'metadata'
42
39
  },
43
40
  gradient: {
44
41
  format: 'jpg',
45
42
  quality: '95',
46
- as: 'metadata',
47
- withMetadata: ''
43
+ as: 'metadata'
48
44
  },
49
45
  drawing: {
50
46
  format: 'avif',
51
47
  quality: '90',
52
- as: 'metadata',
53
- withMetadata: ''
48
+ as: 'metadata'
54
49
  },
55
50
  savedata: {
56
51
  format: 'avif',
57
52
  quality: '85',
58
- as: 'metadata',
59
- withMetadata: ''
53
+ as: 'metadata'
60
54
  },
61
55
  blur: {
62
56
  format: 'avif',
63
57
  quality: '50',
64
58
  blur: '75',
65
- as: 'metadata',
66
- withMetadata: ''
59
+ as: 'metadata'
67
60
  }
68
61
  };
69
62
 
@@ -123,7 +116,7 @@ export function generateResponseConfigs(options) {
123
116
  ...configPairs,
124
117
  w: String(w),
125
118
  format: 'png',
126
- withMetadata: ''
119
+ toColorspace: 'rgb'
127
120
  };
128
121
  });
129
122
  // console.log('Returning favicon configs:', faviconConfigs);
@@ -137,7 +130,7 @@ export function generateResponseConfigs(options) {
137
130
  ...configPairs,
138
131
  w: String(w),
139
132
  format: 'png',
140
- withMetadata: ''
133
+ toColorspace: 'rgb'
141
134
  };
142
135
  });
143
136
  // console.log('Returning apple-touch-icon configs:', appleTouchConfigs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-core",
3
- "version": "0.5.19",
3
+ "version": "0.5.20",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"