You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# image-js-docs
2
2
3
-
This is the source code repository for the documentation of [image-js](https://github.com/image-js/image-js-typescript)
3
+
This is the source code repository for the documentation of [image-js](https://github.com/image-js/image-js)
4
4
5
-
The documentation is available on [https://image-js-docs.pages.dev/](https://image-js-docs.pages.dev/)
5
+
The documentation is available on <https://docs.image-js.org/>.
6
6
7
7
## Create demos
8
8
9
-
A demo is simply function which takes an image or mask as input and returns an image or mask as output. When imported in `md` files, it will be transformed into a demo component which allows to choose from various image or video sources to showcase the image transformation.
9
+
A demo is simply a function which takes an image or mask as input and returns an image or mask as output. When imported in `md` files, it will be transformed into a demo component which allows choosing from various image or video sources to showcase the image transformation.
Copy file name to clipboardExpand all lines: blog/release.md
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ title: Release notes v1
4
4
date: 2025-07-25
5
5
---
6
6
7
-
We're excited to announce the release of a new major version of ImageJS. This version brings TypeScript support and a more intuitive API while maintaining the powerful image processing capabilities you love.
7
+
We're excited to announce the release of a new major version of ImageJS.
8
+
This version brings TypeScript support and a more intuitive API while maintaining the powerful image processing capabilities you love.
const pixel =img.getPixel(x, y); // number[] with proper channel count
23
24
```
24
25
25
-
This helps preventing runtime type errors and enables better IntelliSense, autocomplete, and refactoring support in your IDE. Developers can now catch bugs at compile time rather than discovering them in production.
26
+
This helps prevent runtime type errors and enables better IntelliSense, autocomplete, and refactoring support in your IDE.
27
+
Developers can now catch bugs at compile time rather than discovering them in production.
The new `blackRois` and `whiteRois` properties provide more intuitive access to region data based on pixel values rather than geometric dimensions.
148
150
149
-
For more information, please, visit these tutorials:
151
+
For more information, please visit these tutorials:
150
152
151
153
-[Image segmentation with `threshold()` and `fromMask()`](../docs/Tutorials/Image%20segmentation%20with%20threshold)
152
154
-[Image segmentation with `watershed()`](../docs/Tutorials/Image%20segmentation%20with%20watershed)
@@ -263,21 +265,21 @@ The following deprecated features have been removed:
263
265
264
266
#### Images
265
267
266
-
-`countAlphaPixel()` - Use custom pixel counting with [`getPixel()`](https://image-js.github.io/image-js/classes/index.Image.html#getpixel'API link on getPixel').
268
+
-`countAlphaPixel()` - Use custom pixel counting with [`getPixel()`](https://api.image-js.org/classes/index.Image.html#getpixel'API link on getPixel').
267
269
-`paintLabels()` and `roi.paint()` - Features have been removed due to dependency issues. We plan to add it back in future updates.
268
270
-`warpingFourPoints()` - Use [`getPerspectiveWarpMatrix()`](../docs/Features/Geometry/Get%20Perspective%20Warp%20Matrix'internal link on getPerspectiveWarp') + [`transform()`](release.md#transform) instead.
269
271
- 32-bit color depth support and `abs()` have been removed.
270
272
-`CMYK` and `HSL` color models have been removed.
271
-
-`paintMasks()` has been removed. Use [`paintMask()`](https://image-js.github.io/image-js/classes/index.Image.html#paintmask'API link on paintMask')+ a `for` loop.
273
+
-`paintMasks()` has been removed. Use [`paintMask()`](https://api.image-js.org/classes/index.Image.html#paintmask'API link on paintMask')+ a `for` loop.
272
274
-`clearBit()` and `toggleBit()` have been removed, due to changes in `Mask`
273
-
data representation (see ["Masks"](#masks)). Use [`setBit()`](https://image-js.github.io/image-js/classes/index.Mask.html#setbit'API link on setBit') or [`setValue()`](https://image-js.github.io/image-js/classes/index.Image.html#setvalue'API link on setValue') instead.
275
+
data representation (see ["Masks"](#masks)). Use [`setBit()`](https://api.image-js.org/classes/index.Mask.html#setbit'API link on setBit') or [`setValue()`](https://api.image-js.org/classes/index.Image.html#setvalue'API link on setValue') instead.
274
276
-`combineChannels()` has been removed.
275
-
-`rgba8()` and `rgba()` have been removed. Use a combination of [`convertColor()`](https://image-js.github.io/image-js/classes/index.Image.html#convertcolor'API link on convertColor') and [`convertBitDepth()`](https://image-js.github.io/image-js/classes/index.Image.html#convertbitdepth'API link on convertBitDepth') instead.
277
+
-`rgba8()` and `rgba()` have been removed. Use a combination of [`convertColor()`](https://api.image-js.org/classes/index.Image.html#convertcolor'API link on convertColor') and [`convertBitDepth()`](https://api.image-js.org/classes/index.Image.html#convertbitdepth'API link on convertBitDepth') instead.
276
278
-`histograms()` and `colorHistogram()` have been removed.
277
279
-`getPixelGrid()` has been removed.
278
280
-`getClosestCommonParent()` and `getRelativePosition()` have been removed.
279
281
-`getSimilarity()` and `getIntersection()` have been removed.
280
-
-`paintPolygons()` and `paintPolylines()`have been removed. Use [`drawPolygon()`](https://image-js.github.io/image-js/classes/index.Image.html#drawpolygon'API link on drawPolygon')/ [`drawPolyline()`](https://image-js.github.io/image-js/classes/index.Image.html#drawpolyline'API link on drawPolyline') + a `for` loop.
282
+
-`paintPolygons()` and `paintPolylines()`have been removed. Use [`drawPolygon()`](https://api.image-js.org/classes/index.Image.html#drawpolygon'API link on drawPolygon')/ [`drawPolyline()`](https://api.image-js.org/classes/index.Image.html#drawpolyline'API link on drawPolyline') + a `for` loop.
281
283
-`getMoment()` has been removed.
282
284
283
285
#### ROIs and its management
@@ -289,7 +291,7 @@ The following deprecated features have been removed:
289
291
-`findCorrespondingRoi()` has been removed.
290
292
-`resetPainted()` has been removed.
291
293
-`mergeRoi()` and `mergeRois()` have been removed.
292
-
-`minX`,`minY`,`meanX`,`meanY`,`maxX`,`maxY` have been removed. Use [ROI's `origin`, combined with its `width` and `height`](https://image-js.github.io/image-js/classes/index.Roi.html'API link on ROI').
294
+
-`minX`,`minY`,`meanX`,`meanY`,`maxX`,`maxY` have been removed. Use [ROI's `origin`, combined with its `width` and `height`](https://api.image-js.org/classes/index.Roi.html'API link on ROI').
0 commit comments