Skip to content

Commit

Permalink
create patch
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Sep 24, 2019
1 parent 0ed9a46 commit c59f752
Show file tree
Hide file tree
Showing 7 changed files with 2,526 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.env
node_modules
node_modules
build/src/http/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:18.04 AS buildstep
ENV TERM=xterm container=docker DEBIAN_FRONTEND=noninteractive \
NGINX_DEVEL_KIT_VERSION=0.3.0 NGINX_SET_MISC_MODULE_VERSION=0.32 \
NGINX_VERSION=1.16.1
ADD ./build/src/ /tmp/
ADD ./build/ /tmp/
RUN bash /tmp/ubuntu.sh


Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
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.

Nginx module - https://github.com/niiknow/docker-nginx-image-proxy/blob/master/build/src/ngx_http_image_filter_module.c
Nginx module - https://github.com/niiknow/docker-nginx-image-proxy/blob/master/build/ngx_http_image_filter_module.c

Original File - https://github.com/niiknow/docker-nginx-image-proxy/blob/master/build/src/http/modules/ngx_http_image_filter_module.c

Patch creation: `diff -u src/http/modules/ngx_http_image_filter_module.c ngx_http_image_filter_module.c > image_filter.patch`

Patch apply with: `patch src/http/modules/ngx_http_image_filter_module.c image_filter.patch`

Features:
- [x] image crop offset, credit: https://github.com/bobrik/nginx_image_filter
Expand Down
Loading

0 comments on commit c59f752

Please sign in to comment.