mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
rename to 'imageproxy' (drop 'go-' prefix)
This commit is contained in:
parent
26dde07ec0
commit
462b70dcc2
6 changed files with 13 additions and 13 deletions
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// Package data provides common shared data structures for go-imageproxy.
|
// Package data provides common shared data structures for imageproxy.
|
||||||
package data
|
package data
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -23,14 +23,14 @@ import (
|
||||||
|
|
||||||
"github.com/gregjones/httpcache"
|
"github.com/gregjones/httpcache"
|
||||||
"github.com/gregjones/httpcache/diskcache"
|
"github.com/gregjones/httpcache/diskcache"
|
||||||
"github.com/willnorris/go-imageproxy/proxy"
|
"github.com/willnorris/imageproxy/proxy"
|
||||||
)
|
)
|
||||||
|
|
||||||
// goxc values
|
// goxc values
|
||||||
var (
|
var (
|
||||||
// VERSION is the version string for go-imageproxy.
|
// VERSION is the version string for imageproxy.
|
||||||
VERSION string
|
VERSION string
|
||||||
// BUILD_DATE is the timestamp of when go-imageproxy was built.
|
// BUILD_DATE is the timestamp of when imageproxy was built.
|
||||||
BUILD_DATE string
|
BUILD_DATE string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ func main() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("go-imageproxy (version %v) listening on %s\n", VERSION, *addr)
|
fmt.Printf("imageproxy (version %v) listening on %s\n", VERSION, *addr)
|
||||||
|
|
||||||
var c httpcache.Cache
|
var c httpcache.Cache
|
||||||
if *cacheDir != "" {
|
if *cacheDir != "" {
|
||||||
|
|
|
@ -27,8 +27,8 @@ import (
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/gregjones/httpcache"
|
"github.com/gregjones/httpcache"
|
||||||
"github.com/willnorris/go-imageproxy/data"
|
"github.com/willnorris/imageproxy/data"
|
||||||
"github.com/willnorris/go-imageproxy/transform"
|
"github.com/willnorris/imageproxy/transform"
|
||||||
)
|
)
|
||||||
|
|
||||||
// URLError reports a malformed URL error.
|
// URLError reports a malformed URL error.
|
||||||
|
|
|
@ -19,7 +19,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/willnorris/go-imageproxy/data"
|
"github.com/willnorris/imageproxy/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
var emptyOptions = new(data.Options)
|
var emptyOptions = new(data.Options)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# go-imageproxy #
|
# imageproxy #
|
||||||
|
|
||||||
go-imageproxy is a caching image proxy server written in golang. It supports
|
imageproxy is a caching image proxy server written in golang. It supports
|
||||||
dynamic image resizing and URL whitelisting.
|
dynamic image resizing and URL whitelisting.
|
||||||
|
|
||||||
This project was inspired by, and is designed to be an alternative to,
|
This project was inspired by, and is designed to be an alternative to,
|
||||||
|
@ -20,7 +20,7 @@ building my own for fun.
|
||||||
|
|
||||||
## URL Structure ##
|
## URL Structure ##
|
||||||
|
|
||||||
go-imageproxy URLs are of the form `http://localhost/{options}/{remote_url}`.
|
imageproxy URLs are of the form `http://localhost/{options}/{remote_url}`.
|
||||||
|
|
||||||
### Options ###
|
### Options ###
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ both height and width.
|
||||||
|
|
||||||
Depending on the options specified, an image may be cropped to fit the
|
Depending on the options specified, an image may be cropped to fit the
|
||||||
requested size. In all cases, the original aspect ratio of the image will be
|
requested size. In all cases, the original aspect ratio of the image will be
|
||||||
preserved; go-imageproxy will never stretch the original image.
|
preserved; imageproxy will never stretch the original image.
|
||||||
|
|
||||||
When no explicit crop mode is specified, the following rules are followed:
|
When no explicit crop mode is specified, the following rules are followed:
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/disintegration/imaging"
|
"github.com/disintegration/imaging"
|
||||||
"github.com/willnorris/go-imageproxy/data"
|
"github.com/willnorris/imageproxy/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
var emptyOptions = new(data.Options)
|
var emptyOptions = new(data.Options)
|
||||||
|
|
Loading…
Reference in a new issue