Will Norris
d8aa853b3d
add example upstart script from s.wjn.me
2013-12-26 11:42:46 -08:00
Will Norris
3e67c64a15
update deb package config
2013-12-26 11:30:28 -08:00
Will Norris
462b70dcc2
rename to 'imageproxy' (drop 'go-' prefix)
2013-12-26 11:14:28 -08:00
Will Norris
26dde07ec0
add -version flag and goxc build config
2013-12-26 11:00:50 -08:00
Will Norris
405faae777
remove logging statement
...
now that httpcache hides the actual HTTP calls, this logging line
doesn't accurately reflect when the images is actually fetched. It
would be nice to get accurate logging back again.
2013-12-26 09:07:06 -08:00
Will Norris
b109a87ece
simplify transform function to only pass bytes
2013-12-26 08:31:52 -08:00
Will Norris
b4fae2dd5f
properly resize when one dimension is specified
2013-12-26 08:31:52 -08:00
Will Norris
1db6456329
add cacheDir for specifying disk cache dir
2013-12-26 08:31:52 -08:00
Will Norris
73f6357cda
rely on httpcache for response caching
2013-12-26 08:31:52 -08:00
Will Norris
b9584c18cb
remove early bail out in image trasform
2013-12-26 08:31:52 -08:00
Will Norris
a0d0260f5e
remove '=' from rotate option
2013-12-07 17:06:36 -08:00
Will Norris
ae66dd52b7
update description of fit option
2013-12-06 22:25:02 -08:00
Will Norris
a039c1bbca
add options to flip horizontally and vertically
2013-12-06 22:19:49 -08:00
Will Norris
d506fc6881
add support for image rotation
2013-12-06 18:03:16 -08:00
Will Norris
ea76f2d0d8
switch to Apache 2.0 license before release
2013-12-06 17:40:35 -08:00
Will Norris
b165ea8f12
update documentation for options
2013-12-06 17:02:11 -08:00
Will Norris
cd1112f7ac
allow percentage sizes
...
change height and width options to be floats, and interpret values
between 0 and 1 to be percentages. For example, an options strings of
"0.5x" specifies 50% width and proportional height.
2013-12-06 15:03:17 -08:00
Will Norris
036d0c51c4
allow setting max height and width
...
This is primarily added to prevent a denial of service attack where
insanely large images are requested, eating up CPU.
2013-12-06 14:17:39 -08:00
Will Norris
8310f6eb79
properly handle thumbnail requests
...
if both height and width are specified, we assume you want an image at
exactly those dimensions, so use imaging.Thumbnail, which will resize
and crop the image.
if either height or width are left unspecified, then it's just a simple
resize request.
2013-12-06 12:06:01 -08:00
Will Norris
2794d47390
accept "fit" option
...
this also relaxes option parsing to never return an error. In cases
where options are not able to be parsed, they are silently ignored.
2013-12-06 11:12:57 -08:00
Will Norris
805aa606ca
image transformation improvements
...
- switch to disintegration/imaging library, which supports more of the
transformations I want to add
- pass image through untouched if provided Options are empty
2013-12-06 09:23:04 -08:00
Will Norris
fde104a7a1
allow options path segment to be omitted
2013-12-05 08:31:19 -08:00
Will Norris
45d07f2378
add support for image resizing
2013-12-04 23:45:06 -08:00
Will Norris
f6f757a75d
rename Transform back to Options
2013-12-04 23:12:44 -08:00
Will Norris
402e2c7d83
switch port flag to addr to allow specifying host
2013-12-04 03:58:26 -08:00
Will Norris
deaf0abd50
add whitelist of allowed remote hosts
2013-12-04 03:12:56 -08:00
Will Norris
95fdd8b79f
add basic caching support
...
includes two implementations, a no-op NopCache and an in-memory
MemoryCache.
2013-12-04 02:55:56 -08:00
Will Norris
a8fb3012bd
move data structures to data package
...
also use io.Copy to copy fetched image to http.ResponseWriter.
2013-12-04 00:37:13 -08:00
Will Norris
11441a107a
add initial (pretty naive) server implementation
2013-11-27 14:45:46 -08:00
Will Norris
e61fba8787
parse http requests to image requests
2013-11-27 11:13:54 -08:00
Will Norris
203edd958a
initial readme and license
2013-11-27 08:42:33 -08:00
Will Norris
5d75e8a64b
initial empty commit
2013-11-27 08:19:15 -08:00