@codingame/monaco-vscode-image-resize-service-override 20.1.0 → 20.2.0
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": "@codingame/monaco-vscode-image-resize-service-override",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - image-resize service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "20.
|
|
18
|
+
"@codingame/monaco-vscode-api": "20.2.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -4,6 +4,12 @@ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
4
4
|
import { IImageResizeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/imageResize/common/imageResizeService.service";
|
|
5
5
|
export declare class ImageResizeService implements IImageResizeService {
|
|
6
6
|
readonly _serviceBrand: undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Resizes an image provided as a UInt8Array string. Resizing is based on Open AI's algorithm for tokenzing images.
|
|
9
|
+
* https://platform.openai.com/docs/guides/vision#calculating-costs
|
|
10
|
+
* @param data - The UInt8Array string of the image to resize.
|
|
11
|
+
* @returns A promise that resolves to the UInt8Array string of the resized image.
|
|
12
|
+
*/
|
|
7
13
|
resizeImage(data: Uint8Array | string, mimeType?: string): Promise<Uint8Array>;
|
|
8
14
|
convertStringToUInt8Array(data: string): Uint8Array;
|
|
9
15
|
convertUint8ArrayToString(data: Uint8Array): string;
|