1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-05 18:34:17 +02:00

Update license info on all webp-shim sources. Provide an example in the top-level README file for bitjs

This commit is contained in:
codedread 2020-03-14 09:54:04 -07:00
parent 557ef36bd0
commit 1bb77093ed
5 changed files with 45 additions and 5 deletions

View file

@ -6,9 +6,6 @@ RUN apt-get update && apt-get install -y \
python \
wget
# Put more deps here ...
# RUN apt-get update && apt-get install -y \
RUN git clone https://github.com/webmproject/libwebp
RUN git clone https://github.com/emscripten-core/emsdk.git && \
@ -18,7 +15,7 @@ RUN git clone https://github.com/emscripten-core/emsdk.git && \
RUN git clone https://github.com/nothings/stb.git
# Figure out how to invoke emsdk/emsdk_env.sh and have it affect PATH.
# TODO: Figure out how to invoke emsdk/emsdk_env.sh and have it affect PATH.
ENV PATH="$PATH:/emsdk:/emsdk/node/12.9.1_64bit/bin:/emsdk/upstream/emscripten"
COPY . .

View file

@ -1,3 +1,14 @@
/**
* webp.c
*
* Provides functionality for decoding a WebP imgae and converting it into
* alternative raster graphics formats (PNG/JPG).
*
* Licensed under the MIT License
*
* Copyright(c) 2020 Google Inc.
*/
#include <stdio.h>
#include <stdlib.h>
#include "emscripten.h"

View file

@ -1,3 +1,12 @@
/**
* harness.js
*
* Example of how to use the webp-shim functions.
*
* Licensed under the MIT License
*
* Copyright(c) 2020 Google Inc.
*/
import {convertWebPtoPNG, convertWebPtoJPG} from '../../../image/webp-shim/webp-shim.js';
new Promise((resolve, reject) => {