Releases: onigoetz/resquoosh
Releases · onigoetz/resquoosh
1.1.1
What's Changed
- Configure Renovate by @renovate in #1
- Update actions/setup-node action to v4 by @renovate in #5
- Update actions/checkout digest to b4ffde6 by @renovate in #3
- Update dependency @biomejs/biome to v1.3.1 by @renovate in #4
- Update dependency @biomejs/biome to v1.3.3 by @renovate in #6
- Update dependency ava to v6 by @renovate in #8
- Update dependency @biomejs/biome to v1.4.1 by @renovate in #7
- Update actions/setup-node action to v4.0.1 by @renovate in #9
- Update dependency c8 to v9 by @renovate in #10
- Update dependency @biomejs/biome to v1.5.1 by @renovate in #11
- Update dependency @biomejs/biome to v1.5.2 by @renovate in #12
- Update dependency @biomejs/biome to v1.5.3 by @renovate in #13
- Update actions/setup-node action to v4.0.2 by @renovate in #14
- Update dependency @biomejs/biome to v1.6.0 by @renovate in #15
- Update dependency @biomejs/biome to v1.6.1 by @renovate in #16
- Update actions/checkout digest to 0ad4b8f by @renovate in #18
- Update dependency @biomejs/biome to v1.7.2 by @renovate in #19
- Update all non-major dependencies by @renovate in #20
- Update actions/checkout digest to a5ac7e5 by @renovate in #21
- Update dependency @biomejs/biome to v1.8.0 by @renovate in #22
- Update dependency tinypool to v1 by @renovate in #23
- Update dependency @biomejs/biome to v1.8.1 by @renovate in #25
- Update actions/checkout digest to 692973e by @renovate in #24
- Update dependency c8 to v10 by @renovate in #26
- Update dependency @biomejs/biome to v1.8.2 by @renovate in #27
- Update dependency @biomejs/biome to v1.8.3 by @renovate in #28
- Update actions/setup-node action to v4.0.3 by @renovate in #29
New Contributors
Full Changelog: 1.1.0...1.1.1
1.1.0
- Replace
jest-worker
with the smallertinypool
- Make the module compatible with ESM while keeping CJS compatibility
Full Changelog: 1.0.1...1.1.0
1.0.1
- Automatically shutdown worker when unused
- Cleanup some types and don't re-run codec detection when already done
Full Changelog: 1.0.0...1.0.1
1.0.0
Initial release
import fs from "fs/promises";
import { optimizeImage, getImageSize } from "@onigoetz/resquoosh";
const file = await fs.readFile("file.jpg");
const size = await getImageSize(file);
console.log(size); // { width: 400, height: 400 }
const optimized = await optimizeImage(file);
// returns an optimized buffer
Supports webp, png, avig and jpeg