Documentation ¶
Index ¶
- func GetRotatedImage(src io.Reader) (image.Image, string, error)
- func ImageData(storage store.ImageStore, gc groupcache.Context) ([]byte, error)
- func PickResizer(src io.Reader, c *CacheContext) (io.Reader, error)
- func Resize(src io.Reader, c *CacheContext) (io.Reader, error)
- func ResizeGif(src io.Reader, c *CacheContext) (io.Reader, error)
- type CacheContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageData ¶
func ImageData(storage store.ImageStore, gc groupcache.Context) ([]byte, error)
func PickResizer ¶
Types ¶
type CacheContext ¶
func RequestContext ¶
func RequestContext(r *http.Request) *CacheContext
func (*CacheContext) CacheKey ¶
func (c *CacheContext) CacheKey() string
func (*CacheContext) ReadModified ¶
func (c *CacheContext) ReadModified(s store.ImageStore) (io.ReadCloser, error)
func (*CacheContext) ReadOriginal ¶
func (c *CacheContext) ReadOriginal(s store.ImageStore) (io.ReadCloser, error)
func (*CacheContext) WriteModified ¶
func (c *CacheContext) WriteModified(buf []byte, s store.ImageStore) error
Click to show internal directories.
Click to hide internal directories.