Skip to content

Commit

Permalink
hotfix: Disable camlimages (#48)
Browse files Browse the repository at this point in the history
* hotfix: Temporarily disable camlimages

* hotfix: disable camlimages

* hotfix: Temprorary disable support of jpeg and xpm

* Remove camlimages completely

* Update README
  • Loading branch information
dmtrKovalenko authored Jun 28, 2021
1 parent f73034c commit ef6bb98
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 355 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ ODiff is a blazing fast native image comparison tool. Check [benchmarks](#benchm

## Features

- ✅ .png, .jpg, .jpeg, .bmp, .tiff, .xpm – Files supported.
- ✅ Cross-format comparison - Yes .jpg vs .png comparison without any problems.
- ✅ Supports comparison of images with different layouts.
- ✅ Anti-aliasing detection
- ✅ Ignoring regions
- ✅ Using [YIQ NTSC
transmission algorithm](http://www.progmat.uaem.mx:8080/artVol2Num2/Articulo3Vol2Num2.pdf) to determine visual difference.
- ✅ No dependencies for `.png` comparison. Only several system C dependencies for other formats, [more info](#lib-dependencies).
- ✅ No dependencies for `.png` comparison

### Coming in the nearest future:

- ⏹ Support different image formats `.jpeg`, `.tiff` and `.bmp`
- ⏹ Reading image from memory buffer
- ⏹ Reading images from url

Expand Down Expand Up @@ -144,12 +144,6 @@ Then give it a try 👀
```
odiff --help
```

### lib* dependencies

Make sure if you want to compare **other** than `.png` images it is required to install the proper C library for each format. For `.jpg` – [libjpg](http://libjpeg.sourceforge.net/), for `.tiff`[libtiff](http://www.libtiff.org/), for `.xpm` - libxpm.

`.png` images works out of the box.

### MacOS

Expand Down
3 changes: 2 additions & 1 deletion bin/Main.re
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ let getIOModule = (filename, ~antialiasing) =>
(module ODiffIO.PureC_IO_Bigarray.IO): (module ImageIO)
)
| ".png" => ((module ODiffIO.PureC_IO.IO): (module ImageIO))
| _ => ((module ODiffIO.CamlImagesIO.IO): (module ImageIO))
| unsupportedFormat =>
failwith("This format is not supported: " ++ unsupportedFormat)
);

type diffResult('output) = {
Expand Down
2 changes: 1 addition & 1 deletion bin/ODiffBin.re
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ let cmd = {
),
Term.info(
"odiff",
~version="2.4.0",
~version="2.4.1",
~doc="Find difference between 2 images.",
~exits=[
Term.exit_info(0, ~doc="on image match"),
Expand Down
160 changes: 25 additions & 135 deletions esy.lock/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 0 additions & 36 deletions esy.lock/opam/base.v0.14.1/opam

This file was deleted.

32 changes: 0 additions & 32 deletions esy.lock/opam/camlimages.5.0.4/opam

This file was deleted.

Loading

0 comments on commit ef6bb98

Please sign in to comment.