Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions docs/basics/working-with-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ In the context of digital technology and computing, images are represented as a

- Currently ImageJS supports images with these characteristics:

| | TIFF | JPEG | PNG | BMP |
| -------------------------------- | ---------------- | ------- | ---------------- | -------- |
| **Bits per channel** | 8 or 16 bits | 8 bits | 8 or 16 bits | 1 bit |
| **Alpha channel** | yes | no | yes | no |
| **Lossy compression** | can be either | yes | no | no |
| **Color Model** | RGB or grayscale | RGB | RGB or grayscale | N/A |
| **Can be loaded in this format** | ✅ | ✅ | ✅ | ❌ |
| **Can be saved in this format** | ❌ | ✅ | ✅ | ✅ |
| | TIFF | JPEG | PNG[^2] | BMP |
| -------------------------------- | --------------------------- | -------- | --------------------------- | --------------------------- |
| **Can be loaded in this format** | ✅ | ✅ | ✅ | ✅ |
| **Can be saved in this format** | ❌ | ✅ | ✅ | ✅ |
| **Bits per channel** | 1, 8 or 16 bits | 8 bits | 1, 2, 4, 8 or 16 bits | 1 or 8 bits |
| **Alpha channel** | ✅ | ❌ | ✅ | ✅ |
| **Palette images** | ✅ | ❌ | ✅ | ❌ |
| **Lossy compression** | can be either | ✅ | ❌ | ❌ |
| **Color Model** | Binary[^1],RGB or grayscale | RGB | Binary[^1],RGB or grayscale | Binary[^1],RGB or grayscale |

[^1]: ImageJS can also **decode** [APNG images](https://en.wikipedia.org/wiki/APNG).

[^2]: While binary images can be decoded, for technical reasons image is decoded as a grayscale image.

### Image coordinates

Expand Down
3 changes: 2 additions & 1 deletion project-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ Dssim
mssim
GREYA
Polylines
anonymization
anonymization
APNG