feat(coding-agent): added vendored photon WASM for image processing
- Replaced external photon-node dependency with vendored WebAssembly implementation. - Added local photon library with 200+ image processing functions and WASM bindings. - Updated image conversion and resize utilities to use local photon implementation. - Added error handling for unknown OAuth providers in AI package.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||
@@ -35,6 +35,7 @@
|
||||
"files": {
|
||||
"includes": [
|
||||
"packages/*/src/**/*.ts",
|
||||
"!**/vendor/**/*",
|
||||
"packages/*/test/**/*.ts",
|
||||
"packages/coding-agent/examples/**/*.ts",
|
||||
"packages/web-ui/src/**/*.ts",
|
||||
|
||||
@@ -70,7 +70,6 @@
|
||||
"@oh-my-pi/pi-git-tool": "workspace:*",
|
||||
"@oh-my-pi/pi-tui": "workspace:*",
|
||||
"@openai/agents": "^0.3.7",
|
||||
"@silvia-odwyer/photon-node": "^0.3.4",
|
||||
"@sinclair/typebox": "^0.34.46",
|
||||
"ajv": "^8.17.1",
|
||||
"chalk": "^5.5.0",
|
||||
@@ -368,8 +367,6 @@
|
||||
|
||||
"@rollup/rollup-win32-x64-msvc": ["@rollup/rollup-win32-x64-msvc@4.55.1", "", { "os": "win32", "cpu": "x64" }, "sha512-SPEpaL6DX4rmcXtnhdrQYgzQ5W2uW3SCJch88lB2zImhJRhIIK44fkUrgIV/Q8yUNfw5oyZ5vkeQsZLhCb06lw=="],
|
||||
|
||||
"@silvia-odwyer/photon-node": ["@silvia-odwyer/photon-node@0.3.4", "", {}, "sha512-bnly4BKB3KDTFxrUIcgCLbaeVVS8lrAkri1pEzskpmxu9MdfGQTy8b8EgcD83ywD3RPMsIulY8xJH5Awa+t9fA=="],
|
||||
|
||||
"@sinclair/typebox": ["@sinclair/typebox@0.34.47", "", {}, "sha512-ZGIBQ+XDvO5JQku9wmwtabcVTHJsgSWAHYtVuM9pBNNR5E88v6Jcj/llpmsjivig5X8A8HHOb4/mbEKPS5EvAw=="],
|
||||
|
||||
"@smithy/abort-controller": ["@smithy/abort-controller@4.2.8", "", { "dependencies": { "@smithy/types": "^4.12.0", "tslib": "^2.6.2" } }, "sha512-peuVfkYHAmS5ybKxWcfraK7WBBP0J+rkfUcbHJJKQ4ir3UAUNQI+Y4Vt/PqSzGqgloJ5O1dk7+WzNL8wcCSXbw=="],
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Fixed
|
||||
|
||||
- Added error handling for unknown OAuth providers
|
||||
|
||||
## [5.6.77] - 2026-01-18
|
||||
### Fixed
|
||||
|
||||
@@ -98,6 +98,9 @@ async function login(provider: OAuthProvider): Promise<void> {
|
||||
onProgress: (msg) => console.log(msg),
|
||||
});
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new Error(`Unknown provider: ${provider}`);
|
||||
}
|
||||
|
||||
const auth = loadAuth();
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Changed
|
||||
|
||||
- Replaced external photon-node dependency with vendored WebAssembly implementation
|
||||
- Updated image processing to use local photon library for better performance
|
||||
|
||||
## [5.6.70] - 2026-01-18
|
||||
### Added
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
"@oh-my-pi/pi-git-tool": "workspace:*",
|
||||
"@oh-my-pi/pi-tui": "workspace:*",
|
||||
"@openai/agents": "^0.3.7",
|
||||
"@silvia-odwyer/photon-node": "^0.3.4",
|
||||
"@sinclair/typebox": "^0.34.46",
|
||||
"ajv": "^8.17.1",
|
||||
"chalk": "^5.5.0",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import photon from "@silvia-odwyer/photon-node";
|
||||
import * as photon from "../vendor/photon";
|
||||
|
||||
/**
|
||||
* Convert image to PNG format for terminal display.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ImageContent } from "@oh-my-pi/pi-ai";
|
||||
import photon from "@silvia-odwyer/photon-node";
|
||||
import * as photon from "../vendor/photon";
|
||||
|
||||
export interface ImageResizeOptions {
|
||||
maxWidth?: number; // Default: 2000
|
||||
@@ -94,7 +94,7 @@ export async function resizeImage(img: ImageContent, options?: ImageResizeOption
|
||||
height: number,
|
||||
jpegQuality: number,
|
||||
): { buffer: Uint8Array; mimeType: string } {
|
||||
const resized = photon.resize(image!, width, height, photon.SamplingFilter.Lanczos3);
|
||||
const resized = photon!.resize(image!, width, height, photon!.SamplingFilter.Lanczos3);
|
||||
|
||||
try {
|
||||
const pngBuffer = resized.get_bytes();
|
||||
|
||||
+201
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2023, Silvia O'Dwyer
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
<p align="center">
|
||||
<a href="" rel="noopener">
|
||||
<img src="https://i.imgur.com/GxrKNOb.png" alt="Photon banner, showing the Photon logo on a dark background"></a>
|
||||
</p>
|
||||
|
||||
<div align="center">
|
||||
|
||||
[]()
|
||||
[](https://github.com/silvia-odwyer/photon/issues)
|
||||
[](https://github.com/silvia-odwyer/p/pulls)
|
||||
[](https://gitter.im/photonlibrary/community "Gitter chat")
|
||||
[](https://crates.io/crates/photon-rs)
|
||||
|
||||
</div>
|
||||
|
||||
---
|
||||
|
||||
<p align="center"> High-performance, cross-platform Rust/WebAssembly image processing library
|
||||
<br>
|
||||
</p>
|
||||
|
||||
## 📝 Table of Contents
|
||||
- [Get Started with WebAssembly](https://github.com/silvia-odwyer/photon#-get-started-with-webassembly)
|
||||
- [Get Started Natively](https://github.com/silvia-odwyer/photon#getting-started)
|
||||
- [Documentation](https://docs.rs/photon-rs/0.1.0/)
|
||||
- [Official Website.](https://silvia-odwyer.github.io/photon/)
|
||||
- [All Available Functions.](https://silvia-odwyer.github.io/photon/docs/photon/all.html)
|
||||
- [Got Questions? Ask Here!](https://github.com/silvia-odwyer/photon#got-questions)
|
||||
|
||||
Photon is a high-performance Rust image processing library, which compiles to WebAssembly, allowing for
|
||||
safe, blazing-fast image processing both natively and on the web.
|
||||
|
||||
### Features
|
||||
- **Fast:** Photon outperforms even the fastest of libraries, including ImageMagick. On the web, its high-performance allows for near-native-speed image processing on the web. Benchmarks coming soon.
|
||||
- **Call with JS:** Want to use Photon on the web or with Node? Using a simple npm package, you're good to go. Get all the benefits of WebAssembly
|
||||
with zero-cost abstraction.
|
||||
- **Use Natively:** For command-line apps, native photo editing apps, and so forth, Photon's core codebase is in Rust, allowing for cross-platform
|
||||
development.
|
||||
|
||||
### Live Demo
|
||||
View the [official demo of WASM in action](https://silvia-odwyer.github.io/photon/demo.html).
|
||||
|
||||
### Get Started
|
||||
#### Getting Started Guide
|
||||
Check out Photon's [getting started guide, complete with tutorials, installation instructions, and more](https://silvia-odwyer.github.io/photon/guide)
|
||||
|
||||
#### Documentation
|
||||
### 📚 Documentation
|
||||
View the [official documentation](https://docs.rs/photon-rs/).
|
||||
|
||||
### Photon In Action
|
||||
|
||||

|
||||
|
||||
### Functionality
|
||||
96+ customisable functions are available.
|
||||
|
||||
Resize, transform, correct, and filter images: apply as many effects as desired.
|
||||
|
||||
Functions include:
|
||||
- **Image correction**: Hue rotation, sharpening, brightness adjustment, adjusting saturation, lightening/darkening all within various colour spaces.
|
||||
- **Convolutions**: Sobel filters, blurs, Laplace effects, edge detection, etc.,
|
||||
- **Channel manipulation**: Increasing/decreasing RGB channel values, swapping channels, removing channels, etc.
|
||||
- **Transform**: Resize, crop, rotate and flip images.
|
||||
- **Monochrome effects**: Duotoning, greyscaling of various forms, thresholding, sepia, averaging RGB values
|
||||
- **Colour manipulation**: Work with the image in various colour spaces such as HSL, LCh, and sRGB, and adjust the colours accordingly.
|
||||
- **Filters**: Over 30 pre-set filters available, incorporating various effects and transformations.
|
||||
- **Text**: Apply text to imagery in artistic ways, or to watermark, etc.,
|
||||
- **Watermarking**: Watermark images in multiple formats.
|
||||
- **Blending**: Blend images together using 10 different techniques, change image backgrounds.
|
||||
|
||||
## Install
|
||||
### Native
|
||||
Add the following line to the dependencies section of your Rust project's Cargo.toml:
|
||||
|
||||
###### Cargo.toml
|
||||
```toml
|
||||
[dependencies]
|
||||
photon-rs = "0.3.2"
|
||||
```
|
||||
|
||||
### Web
|
||||
Install Photon as an npm module:
|
||||
|
||||
```bash
|
||||
npm install --save @silvia-odwyer/photon
|
||||
```
|
||||
|
||||
### Node.JS
|
||||
To install Photon as an npm module for Node.JS use:
|
||||
|
||||
```bash
|
||||
npm install --save @silvia-odwyer/photon-node
|
||||
```
|
||||
|
||||
#### Using Photon Natively
|
||||
The following code opens an image from the filesystem, applies an effect, and saves it.
|
||||
|
||||
Here is a code sample to get you started:
|
||||
|
||||
```rs
|
||||
extern crate photon_rs;
|
||||
use photon_rs::native::{open_image, save_image};
|
||||
|
||||
fn main() {
|
||||
// Open the image (a PhotonImage is returned)
|
||||
let mut img = open_image("test_image.png");
|
||||
|
||||
// Increment the red channel by 40
|
||||
photon_rs::channels::alter_red_channel(&mut img, 40);
|
||||
|
||||
// Write file to filesystem.
|
||||
save_image(img, "raw_image.jpg");
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
[For more examples, check out the guide on how to get started with Photon natively.](https://silvia-odwyer.github.io/photon/guide/using-photon-natively/)
|
||||
|
||||
#### Using Photon On The Web
|
||||
|
||||
## Modules
|
||||
Photon contains a series of modules, which include:
|
||||
|
||||
- `effects`: Various image effects, including adding offsets, thresholding, duotoning, solarization, etc.,
|
||||
- `channels`: Functions related to increasing/decreasing the red, green, and blue channels of the image data.
|
||||
- `transform`: Resize, crop, flip, and rotate images.
|
||||
- `filters`: Preset filters, which alter the RGB channels of the image. Contains over 20.
|
||||
- `conv`: Laplace, Sobel, emboss; image proc functions which require image convolution.
|
||||
- `noise`: Noise generation of varying tints and hues.
|
||||
- `multiple`: A module for dealing with multiple images, such as watermarking images, etc.,
|
||||
- `correction`: Hue rotation, adjusting saturation, lightening/darkening: all techniques available in multiple colour spaces, which lead to varying effects.
|
||||
|
||||
All effects and filters can be viewed below and on the official website.
|
||||
|
||||
### Run Examples
|
||||
Clone this crate's official GitHub repo:
|
||||
```sh
|
||||
git clone https://github.com/silvia-odwyer/photon
|
||||
```
|
||||
|
||||
Run the binary, which will perform an image processing function on an image:
|
||||
```sh
|
||||
cd crate
|
||||
cargo run --release
|
||||
```
|
||||
|
||||
Compare the original image with the outputted image, and you'll see the desired effect has been applied.
|
||||
|
||||
### Got Questions?
|
||||
If you'd like to chat to the developer about your potential use case, or have further questions about this library,
|
||||
just submit them here, and I'll get back to you!
|
||||
|
||||
- [Spectrum Chat](https://spectrum.chat/photonlibrary)
|
||||
- [Gitter](https://gitter.im/photonlibrary/community)
|
||||
|
||||
## License
|
||||
This project is licensed under the Apache 2.0 License - see the [LICENSE.md](LICENSE.md) file for details.
|
||||
+3013
File diff suppressed because it is too large
Load Diff
+4459
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:db2efcd06f94951a5f13736f4fc9b83c694aaa99f6699b9fbe6042d8c70d8146
|
||||
size 1939017
|
||||
@@ -0,0 +1,193 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export const memory: WebAssembly.Memory;
|
||||
export const adjust_brightness: (a: number, b: number) => void;
|
||||
export const adjust_contrast: (a: number, b: number) => void;
|
||||
export const color_horizontal_strips: (a: number, b: number, c: number) => void;
|
||||
export const color_vertical_strips: (a: number, b: number, c: number) => void;
|
||||
export const colorize: (a: number) => void;
|
||||
export const dec_brightness: (a: number, b: number) => void;
|
||||
export const dither: (a: number, b: number) => void;
|
||||
export const duotone: (a: number, b: number, c: number) => void;
|
||||
export const frosted_glass: (a: number) => void;
|
||||
export const halftone: (a: number) => void;
|
||||
export const horizontal_strips: (a: number, b: number) => void;
|
||||
export const inc_brightness: (a: number, b: number) => void;
|
||||
export const multiple_offsets: (a: number, b: number, c: number, d: number) => void;
|
||||
export const normalize: (a: number) => void;
|
||||
export const offset: (a: number, b: number, c: number) => void;
|
||||
export const offset_blue: (a: number, b: number) => void;
|
||||
export const offset_green: (a: number, b: number) => void;
|
||||
export const offset_red: (a: number, b: number) => void;
|
||||
export const oil: (a: number, b: number, c: number) => void;
|
||||
export const pixelize: (a: number, b: number) => void;
|
||||
export const primary: (a: number) => void;
|
||||
export const solarize: (a: number) => void;
|
||||
export const solarize_retimg: (a: number) => number;
|
||||
export const tint: (a: number, b: number, c: number, d: number) => void;
|
||||
export const vertical_strips: (a: number, b: number) => void;
|
||||
export const apply_gradient: (a: number) => void;
|
||||
export const blend: (a: number, b: number, c: number, d: number) => void;
|
||||
export const create_gradient: (a: number, b: number) => number;
|
||||
export const watermark: (a: number, b: number, c: bigint, d: bigint) => void;
|
||||
export const b_grayscale: (a: number) => void;
|
||||
export const darken_hsl: (a: number, b: number) => void;
|
||||
export const darken_hsluv: (a: number, b: number) => void;
|
||||
export const darken_hsv: (a: number, b: number) => void;
|
||||
export const darken_lch: (a: number, b: number) => void;
|
||||
export const decompose_max: (a: number) => void;
|
||||
export const decompose_min: (a: number) => void;
|
||||
export const desaturate: (a: number) => void;
|
||||
export const desaturate_hsl: (a: number, b: number) => void;
|
||||
export const desaturate_hsluv: (a: number, b: number) => void;
|
||||
export const desaturate_hsv: (a: number, b: number) => void;
|
||||
export const desaturate_lch: (a: number, b: number) => void;
|
||||
export const draw_text: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
||||
export const draw_text_with_border: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
||||
export const g_grayscale: (a: number) => void;
|
||||
export const gamma_correction: (a: number, b: number, c: number, d: number) => void;
|
||||
export const grayscale: (a: number) => void;
|
||||
export const grayscale_human_corrected: (a: number) => void;
|
||||
export const grayscale_shades: (a: number, b: number) => void;
|
||||
export const hsl: (a: number, b: number, c: number, d: number) => void;
|
||||
export const hsluv: (a: number, b: number, c: number, d: number) => void;
|
||||
export const hsv: (a: number, b: number, c: number, d: number) => void;
|
||||
export const hue_rotate_hsl: (a: number, b: number) => void;
|
||||
export const hue_rotate_hsluv: (a: number, b: number) => void;
|
||||
export const hue_rotate_hsv: (a: number, b: number) => void;
|
||||
export const hue_rotate_lch: (a: number, b: number) => void;
|
||||
export const lch: (a: number, b: number, c: number, d: number) => void;
|
||||
export const lighten_hsl: (a: number, b: number) => void;
|
||||
export const lighten_hsluv: (a: number, b: number) => void;
|
||||
export const lighten_hsv: (a: number, b: number) => void;
|
||||
export const lighten_lch: (a: number, b: number) => void;
|
||||
export const mix_with_colour: (a: number, b: number, c: number) => void;
|
||||
export const monochrome: (a: number, b: number, c: number, d: number) => void;
|
||||
export const r_grayscale: (a: number) => void;
|
||||
export const saturate_hsl: (a: number, b: number) => void;
|
||||
export const saturate_hsluv: (a: number, b: number) => void;
|
||||
export const saturate_hsv: (a: number, b: number) => void;
|
||||
export const saturate_lch: (a: number, b: number) => void;
|
||||
export const sepia: (a: number) => void;
|
||||
export const single_channel_grayscale: (a: number, b: number) => void;
|
||||
export const threshold: (a: number, b: number) => void;
|
||||
export const crop: (a: number, b: number, c: number, d: number, e: number) => number;
|
||||
export const crop_img_browser: (a: any, b: number, c: number, d: number, e: number) => any;
|
||||
export const fliph: (a: number) => void;
|
||||
export const flipv: (a: number) => void;
|
||||
export const padding_bottom: (a: number, b: number, c: number) => number;
|
||||
export const padding_left: (a: number, b: number, c: number) => number;
|
||||
export const padding_right: (a: number, b: number, c: number) => number;
|
||||
export const padding_top: (a: number, b: number, c: number) => number;
|
||||
export const padding_uniform: (a: number, b: number, c: number) => number;
|
||||
export const resample: (a: number, b: number, c: number) => number;
|
||||
export const resize: (a: number, b: number, c: number, d: number) => number;
|
||||
export const resize_img_browser: (a: number, b: number, c: number, d: number) => any;
|
||||
export const rotate: (a: number, b: number) => number;
|
||||
export const seam_carve: (a: number, b: number, c: number) => number;
|
||||
export const shearx: (a: number, b: number) => number;
|
||||
export const sheary: (a: number, b: number) => number;
|
||||
export const __wbg_photonimage_free: (a: number, b: number) => void;
|
||||
export const __wbg_rgb_free: (a: number, b: number) => void;
|
||||
export const __wbg_rgba_free: (a: number, b: number) => void;
|
||||
export const base64_to_image: (a: number, b: number) => number;
|
||||
export const base64_to_vec: (a: number, b: number) => [number, number];
|
||||
export const get_image_data: (a: any, b: any) => any;
|
||||
export const open_image: (a: any, b: any) => number;
|
||||
export const photonimage_get_base64: (a: number) => [number, number];
|
||||
export const photonimage_get_bytes: (a: number) => [number, number];
|
||||
export const photonimage_get_bytes_jpeg: (a: number, b: number) => [number, number];
|
||||
export const photonimage_get_bytes_webp: (a: number) => [number, number];
|
||||
export const photonimage_get_estimated_filesize: (a: number) => bigint;
|
||||
export const photonimage_get_height: (a: number) => number;
|
||||
export const photonimage_get_image_data: (a: number) => any;
|
||||
export const photonimage_get_raw_pixels: (a: number) => [number, number];
|
||||
export const photonimage_get_width: (a: number) => number;
|
||||
export const photonimage_new: (a: number, b: number, c: number, d: number) => number;
|
||||
export const photonimage_new_from_blob: (a: any) => number;
|
||||
export const photonimage_new_from_byteslice: (a: number, b: number) => number;
|
||||
export const photonimage_new_from_image: (a: any) => number;
|
||||
export const photonimage_set_imgdata: (a: number, b: any) => void;
|
||||
export const putImageData: (a: any, b: any, c: number) => void;
|
||||
export const rgb_get_blue: (a: number) => number;
|
||||
export const rgb_get_green: (a: number) => number;
|
||||
export const rgb_get_red: (a: number) => number;
|
||||
export const rgb_new: (a: number, b: number, c: number) => number;
|
||||
export const rgb_set_blue: (a: number, b: number) => void;
|
||||
export const rgb_set_green: (a: number, b: number) => void;
|
||||
export const rgb_set_red: (a: number, b: number) => void;
|
||||
export const rgba_get_alpha: (a: number) => number;
|
||||
export const rgba_new: (a: number, b: number, c: number, d: number) => number;
|
||||
export const rgba_set_alpha: (a: number, b: number) => void;
|
||||
export const run: () => [number, number];
|
||||
export const to_image_data: (a: number) => any;
|
||||
export const to_raw_pixels: (a: any) => [number, number];
|
||||
export const rgba_get_blue: (a: number) => number;
|
||||
export const rgba_get_green: (a: number) => number;
|
||||
export const rgba_get_red: (a: number) => number;
|
||||
export const photonimage_new_from_base64: (a: number, b: number) => number;
|
||||
export const rgba_set_blue: (a: number, b: number) => void;
|
||||
export const rgba_set_green: (a: number, b: number) => void;
|
||||
export const rgba_set_red: (a: number, b: number) => void;
|
||||
export const box_blur: (a: number) => void;
|
||||
export const detect_135_deg_lines: (a: number) => void;
|
||||
export const detect_45_deg_lines: (a: number) => void;
|
||||
export const detect_horizontal_lines: (a: number) => void;
|
||||
export const detect_vertical_lines: (a: number) => void;
|
||||
export const edge_detection: (a: number) => void;
|
||||
export const edge_one: (a: number) => void;
|
||||
export const emboss: (a: number) => void;
|
||||
export const gaussian_blur: (a: number, b: number) => void;
|
||||
export const identity: (a: number) => void;
|
||||
export const laplace: (a: number) => void;
|
||||
export const noise_reduction: (a: number) => void;
|
||||
export const prewitt_horizontal: (a: number) => void;
|
||||
export const sharpen: (a: number) => void;
|
||||
export const sobel_global: (a: number) => void;
|
||||
export const sobel_horizontal: (a: number) => void;
|
||||
export const sobel_vertical: (a: number) => void;
|
||||
export const add_noise_rand: (a: number) => void;
|
||||
export const alter_blue_channel: (a: number, b: number) => void;
|
||||
export const alter_channel: (a: number, b: number, c: number) => void;
|
||||
export const alter_channels: (a: number, b: number, c: number, d: number) => void;
|
||||
export const alter_green_channel: (a: number, b: number) => void;
|
||||
export const alter_red_channel: (a: number, b: number) => void;
|
||||
export const alter_two_channels: (a: number, b: number, c: number, d: number, e: number) => void;
|
||||
export const cali: (a: number) => void;
|
||||
export const dramatic: (a: number) => void;
|
||||
export const duotone_horizon: (a: number) => void;
|
||||
export const duotone_lilac: (a: number) => void;
|
||||
export const duotone_ochre: (a: number) => void;
|
||||
export const duotone_tint: (a: number, b: number) => void;
|
||||
export const duotone_violette: (a: number) => void;
|
||||
export const filter: (a: number, b: number, c: number) => void;
|
||||
export const firenze: (a: number) => void;
|
||||
export const golden: (a: number) => void;
|
||||
export const invert: (a: number) => void;
|
||||
export const lix: (a: number) => void;
|
||||
export const lofi: (a: number) => void;
|
||||
export const monochrome_tint: (a: number, b: number) => void;
|
||||
export const neue: (a: number) => void;
|
||||
export const obsidian: (a: number) => void;
|
||||
export const pastel_pink: (a: number) => void;
|
||||
export const pink_noise: (a: number) => void;
|
||||
export const remove_blue_channel: (a: number, b: number) => void;
|
||||
export const remove_channel: (a: number, b: number, c: number) => void;
|
||||
export const remove_green_channel: (a: number, b: number) => void;
|
||||
export const remove_red_channel: (a: number, b: number) => void;
|
||||
export const ryo: (a: number) => void;
|
||||
export const selective_color_convert: (a: number, b: number, c: number, d: number) => void;
|
||||
export const selective_desaturate: (a: number, b: number, c: number) => void;
|
||||
export const selective_greyscale: (a: number, b: number) => void;
|
||||
export const selective_hue_rotate: (a: number, b: number, c: number) => void;
|
||||
export const selective_lighten: (a: number, b: number, c: number) => void;
|
||||
export const selective_saturate: (a: number, b: number, c: number) => void;
|
||||
export const swap_channels: (a: number, b: number, c: number) => void;
|
||||
export const __wbindgen_malloc: (a: number, b: number) => number;
|
||||
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
||||
export const __wbindgen_exn_store: (a: number) => void;
|
||||
export const __externref_table_alloc: () => number;
|
||||
export const __wbindgen_externrefs: WebAssembly.Table;
|
||||
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
||||
export const __externref_table_dealloc: (a: number) => void;
|
||||
export const __wbindgen_start: () => void;
|
||||
Reference in New Issue
Block a user