Pass in before and after bitmap URL, then the server will generate lcs diff png and return the diff result URL in response.
bash
lcs-png-diff-server
or
bash
docker run --rm -it -p 8080:8080 docker-adobe-spectrum-release.dr.corp.adobe.com/lcs-png-diff-server:latest
bash
HOST_INFO=https://localhost:443/ lcs-png-diff-server
or
bash
docker run --rm -it -e HOST_INFO=https://localhost:443/ -p 8080:8080 docker-adobe-spectrum-release.dr.corp.adobe.com/lcs-png-diff-server:latest
bash
curl \
-d '{
"before_png": "http://localhost:3000/fixtures/slider.png",
"after_png": "http://localhost:3000/fixtures/slider_after.png"
}' \
-H 'Content-Type: application/json' \
-X POST http://localhost:8080/api/diff
json
{
"result_url": "http://localhost:8080/assets/b02d9094-bc6c-4c40-923e-50c66bcf1951.png"
}
Apache License Version 2.0