0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00
Commit graph

144 commits

Author SHA1 Message Date
Sevki
710a2ab1c9 docker: change go path
google's golang base image changed their gopath from /gopath to /go

fixes #51, fixes #52
2015-12-08 02:08:07 -08:00
Will Norris
87f06e8537 travis: run on new container-based infrastructure
docs: https://docs.travis-ci.com/user/migrating-from-legacy/
2015-12-07 23:19:01 -08:00
Will Norris
cd4f6a4cf9 bump minimum go version to 1.5 2015-12-07 23:14:57 -08:00
Will Norris
b4216d8da8 remove Proxy pointer from TransformingTransport
This pointer was only needed to pass along the scaleUp option.  In order
to prevent someone from specifying the scaleUp option on an individual
request against the owner's wishes, we didn't encode or decode that
field on the Options struct.  Instead, we stored the value on the Proxy
object and then set it on the Options struct inside the
TransformingTransport.  This worked, but I never really liked binding
those two together.

Instead, we now treat scaleUp as a normal Option field, encoding and
decoding it with all the others.  The primary difference is that the
initial value from the request URL will always be overwritten with
whatever is set in Proxy.ScaleUp.  This decouples the
TransformingTransport from the Proxy, but prevents the option from being
set in the request URL.

Modifies #37
2015-12-07 23:06:02 -08:00
Will Norris
b967dc69a9 bump to 0.5.1 2015-12-07 22:42:25 -08:00
Will Norris
7a26a577a8 vendor: update willnorris.com/go/gifresize 2015-12-07 22:42:12 -08:00
Will Norris
d343a5f5ee bump version to 0.5.0 2015-12-07 21:35:35 -08:00
Will Norris
810ecedd69 deprecate cacheSize flag and remove docs
this flag was never actually doing what I thought it was in the first
place.

Also fix up a few instances of cacheDir still be used in config files

fixes #45
2015-12-07 21:09:56 -08:00
Will Norris
355a00f7b6 cmd: use trie for caching files on disk (fixes #50) 2015-12-07 20:20:42 -08:00
Will Norris
11370ac826 vendor: add sourcegraph/s3cache and dependencies
Adds:
 - github.com/kr/http/transport
 - github.com/sqs/s3
 - github.com/sqs/s3/s3util
 - sourcegraph.com/sourcegraph/s3cache
2015-12-07 20:04:55 -08:00
Victor Trac
ec96fcbc90 using s3 as caching store 2015-12-07 19:50:00 -08:00
Will Norris
f67209437a readme: fix line wrapping and some wording 2015-12-07 19:49:28 -08:00
Will Norris
b88f2b70e5 add -cache flag and default to no cache
The imageproxy command no longer uses the in-memory cache by default.
Instead, no caching is enabled by default and the in-memory cache can be
enabled by passing `-cache memory`.

The -cache flag also supports specifying directories, and therefore
replaces hte older -cacheDir flag.  cacheDir is still supported for
compatibility, but is deprecated and will be removed in the future.

This also sets us up to add support for additional caching backends in
the future.

Partial fix for #49.
2015-12-04 15:54:00 -08:00
Will Norris
9d4058ca58 directly wrap ListenAndServe in log.Fatal call 2015-12-04 15:36:04 -08:00
Will Norris
8038795e8c fix travis build with vendored dependencies 2015-11-26 13:55:01 -08:00
Will Norris
69a7ccce71 vendor: add all of our dependencies 2015-11-26 12:41:45 -08:00
Will Norris
d9e4cf282a minor cleanup of resizeParams code 2015-11-26 12:05:13 -08:00
orian
8efff4b6a9 Skip resizing if requested size bigger then original 2015-10-14 18:25:48 +02:00
orian
431898ec9a Extract resizeParams method. 2015-10-14 18:15:57 +02:00
Rune Madsen
5f5df0c860 updating readme 2015-09-08 09:46:28 -07:00
Rune Madsen
9a4791d60a adding cache-control header 2015-09-05 10:51:07 -04:00
Connor Peet
9213c93c94 Add ability to restrict http referrer 2015-08-15 10:36:07 -07:00
Will Norris
8c13d93bde update links to URL Signing wiki page 2015-08-14 09:56:47 -07:00
Vincent Reydet
28498fe9b1 Update README.md
Add link to the signature wiki page.
2015-08-14 15:57:25 +02:00
Rune Skjoldborg Madsen
c13dfcfa62 Update README.md 2015-08-13 12:47:33 -04:00
Rune Madsen
b0580ee6c3 updating readme 2015-08-12 14:45:19 -04:00
Rune Madsen
4e60c683b0 scaleup flag 2015-08-12 14:39:38 -04:00
Rune Madsen
f6e6a2cc86 allowing cache size of 0 2015-08-12 11:44:24 -04:00
Will Norris
dbf505d137 move gifresize into its own repo 2015-05-29 08:02:30 -07:00
Will Norris
db51a19ddb capture and return image encoding errors 2015-05-29 07:31:10 -07:00
Sevki
0fd85dc016 added docker information to readme 2015-05-29 12:49:24 +03:00
Sevki
9774a4a0a8 add: Dockerfile 2015-05-21 23:53:41 +03:00
Will Norris
540ef1a640 bump version to 0.4.0 2015-05-21 09:17:51 -07:00
Will Norris
bf72ebfe78 README: rewrite first section and add animated gif 2015-05-21 09:07:38 -07:00
Will Norris
071d3dad2a add baseURL and whitelist to upstart script 2015-05-20 17:08:57 -07:00
Will Norris
dd529ce4d4 README: older versions of go may have trouble
fixes #24
2015-05-20 10:02:13 -07:00
Will Norris
5e9ceeaaf6 retain original color palette for resized gifs 2015-05-18 15:37:28 -07:00
Will Norris
66fcba95a0 don't drop error from gif.EncodeAll 2015-05-18 15:15:54 -07:00
Will Norris
b2ae3a5840 rewrite first section of README 2015-05-17 21:43:55 -07:00
Will Norris
396afb8a87 proxy non-200 responses with original status code
Some sites return a 404 image, and most browsers render them properly.
We should pass them along as well.

see also: atmos/camo#75 and atmos/camo#77
2015-05-15 22:33:03 -07:00
Will Norris
bdf995c94f use new gifresize package on all gif images
Fixes #23
2015-05-15 16:07:00 -07:00
Will Norris
58bb2e4ce9 refactor gifresize to be a resuable package
- move out of main package
- export Process func
- Process now accepts an io.Reader and io.Writer as input rather than
  working directly on files
- Process accepts a transform function as input rather than always
  resizing to a fixed size
2015-05-15 15:58:03 -07:00
Will Norris
ef63a74da1 initial import of gifresize package
imported from github.com/dpup/go-scratch/gif-resize under Apache 2.0
license.  License header added to gifresize.go rather than include the
full LICENSE file, since imageproxy is under the Apache 2.0 also and we
already have a copy of the license in the root of this repo.
2015-05-15 15:56:06 -07:00
Will Norris
cb130777b9 load signature key from /etc/imageproxy.key 2015-05-14 16:38:49 -07:00
Will Norris
7122b43e0d bump version to 0.3.0 2015-05-14 15:33:36 -07:00
Will Norris
7a0f78f4be add signature key flag to imageproxy command 2015-05-14 15:30:36 -07:00
Will Norris
a9efefc8e7 add request signature support to Proxy 2015-05-14 15:30:07 -07:00
Will Norris
9d6f8fdf7d refactor whitelist check in preparation for signature check 2015-05-14 15:30:06 -07:00
Vincent Reydet
6553dd0603 add debian init files 2015-05-12 19:08:25 -07:00
Will Norris
5d8b630ff2 omit empty quality from option string 2015-05-11 19:29:25 -07:00