Skip to content

Commit c59f752

Browse files
committed
create patch
1 parent 0ed9a46 commit c59f752

File tree

7 files changed

+2526
-13
lines changed

7 files changed

+2526
-13
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.env
2-
node_modules
2+
node_modules
3+
build/src/http/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ubuntu:18.04 AS buildstep
22
ENV TERM=xterm container=docker DEBIAN_FRONTEND=noninteractive \
33
NGINX_DEVEL_KIT_VERSION=0.3.0 NGINX_SET_MISC_MODULE_VERSION=0.32 \
44
NGINX_VERSION=1.16.1
5-
ADD ./build/src/ /tmp/
5+
ADD ./build/ /tmp/
66
RUN bash /tmp/ubuntu.sh
77

88

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
44
image cropping with gravity, resize and compress on the fly with nginx **image_filter** module. A tiny docker container to build your own Cloudinary-like service.
55

6-
Nginx module - https://github.com/niiknow/docker-nginx-image-proxy/blob/master/build/src/ngx_http_image_filter_module.c
6+
Nginx module - https://github.com/niiknow/docker-nginx-image-proxy/blob/master/build/ngx_http_image_filter_module.c
7+
8+
Original File - https://github.com/niiknow/docker-nginx-image-proxy/blob/master/build/src/http/modules/ngx_http_image_filter_module.c
9+
10+
Patch creation: `diff -u src/http/modules/ngx_http_image_filter_module.c ngx_http_image_filter_module.c > image_filter.patch`
11+
12+
Patch apply with: `patch src/http/modules/ngx_http_image_filter_module.c image_filter.patch`
713

814
Features:
915
- [x] image crop offset, credit: https://github.com/bobrik/nginx_image_filter

0 commit comments

Comments
 (0)