@immagin/client 0.2.4 → 0.2.5
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/README.md +6 -0
- package/dist/index.d.mts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,12 @@ const adjusted = await client.images.url('photo.jpg', [
|
|
|
63
63
|
{ modulate: { brightness: 1.2, saturation: 0.8 } },
|
|
64
64
|
])
|
|
65
65
|
|
|
66
|
+
// Disable auto-orient (enabled by default)
|
|
67
|
+
const raw = await client.images.url('photo.jpg', [
|
|
68
|
+
{ autoOrient: false },
|
|
69
|
+
{ resize: { width: 800 } },
|
|
70
|
+
])
|
|
71
|
+
|
|
66
72
|
// Custom output format (default is WebP at quality 90)
|
|
67
73
|
const jpeg = await client.images.url(
|
|
68
74
|
'photo.jpg',
|
package/dist/index.d.mts
CHANGED