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

6 commits

Author SHA1 Message Date
Will Norris
ea76f2d0d8 switch to Apache 2.0 license before release 2013-12-06 17:40:35 -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
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
f6f757a75d rename Transform back to Options 2013-12-04 23:12:44 -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