imageprocessor

package
v0.0.0-...-7f3e199 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2019 License: LGPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

goos: linux
goarch: amd64
pkg: github.com/xaionaro-go/picapi/imageprocessor/cv
BenchmarkResize_smallPictures-8    	   10000	    224289 ns/op	   76152 B/op	      19 allocs/op
BenchmarkResize_mediumPictures-8   	     100	  16256349 ns/op	 4821099 B/op	      25 allocs/op
PASS
ok  	github.com/xaionaro-go/picapi/imageprocessor/cv	5.055s
goos: linux
goarch: amd64
pkg: github.com/xaionaro-go/picapi/imageprocessor/graphicsmagick
BenchmarkResize_smallPictures-8    	    3000	    430436 ns/op	   70794 B/op	      31 allocs/op
BenchmarkResize_mediumPictures-8   	     100	  18352913 ns/op	 4429245 B/op	      33 allocs/op
PASS
ok  	github.com/xaionaro-go/picapi/imageprocessor/graphicsmagick	4.331s
goos: linux
goarch: amd64
pkg: github.com/xaionaro-go/picapi/imageprocessor/imagick
BenchmarkResize_smallPictures-8    	    2000	    609666 ns/op	   75639 B/op	      31 allocs/op
BenchmarkResize_mediumPictures-8   	      50	  27350344 ns/op	 4934413 B/op	      33 allocs/op
PASS
ok  	github.com/xaionaro-go/picapi/imageprocessor/imagick	4.089s
goos: linux
goarch: amd64
pkg: github.com/xaionaro-go/picapi/imageprocessor/imaging
BenchmarkResize_smallPictures-8    	    2000	    770229 ns/op	  207365 B/op	     137 allocs/op
BenchmarkResize_mediumPictures-8   	      20	  59357494 ns/op	 8593362 B/op	      98 allocs/op
PASS
ok  	github.com/xaionaro-go/picapi/imageprocessor/imaging	4.432s
goos: linux
goarch: amd64
pkg: github.com/xaionaro-go/picapi/imageprocessor/nfntresize
BenchmarkResize_smallPictures-8    	    2000	    653626 ns/op	  182103 B/op	     123 allocs/op
BenchmarkResize_mediumPictures-8   	      20	  61011215 ns/op	11213379 B/op	      87 allocs/op
PASS
ok  	github.com/xaionaro-go/picapi/imageprocessor/nfntresize	4.183s
goos: linux
goarch: amd64
pkg: github.com/xaionaro-go/picapi/imageprocessor/vips
BenchmarkResize_smallPictures-8    	     200	   6913212 ns/op	   75592 B/op	      58 allocs/op
BenchmarkResize_mediumPictures-8   	     100	  19660814 ns/op	 4625096 B/op	      51 allocs/op
PASS
ok  	github.com/xaionaro-go/picapi/imageprocessor/vips	5.547s

Documentation

Index

Constants

View Source
const (
	// ImageFormatUndefined is a reserved ImageFormat for cases when it's undefined
	// So if anybody will have an ImageFormat with zero-value (not defined, yet) it won't receive
	// a mis-leading value like ImageFormatJPEG.
	ImageFormatUndefined = imageprocessorcommon.ImageFormatUndefined

	// ImageFormatJPEG is an ImageFormat for JPEGs
	ImageFormatJPEG = imageprocessorcommon.ImageFormatJPEG

	// ImageFormatOther is an ImageFormat for all image formats not listed here in this enumeration
	ImageFormatOther = imageprocessorcommon.ImageFormatOther
)

Variables

View Source
var (
	// ErrInvalidSize is returned when an invalid size is passed in arguments
	// to a function
	ErrInvalidSize = imageprocessorcommon.ErrInvalidSize
)

Functions

This section is empty.

Types

type ImageFormat

type ImageFormat = imageprocessorcommon.ImageFormat

ImageFormat is an enumeration data-type for image formats

type ImageProcessor

type ImageProcessor = imageprocessorcommon.ImageProcessor

ImageProcessor is a tool to manipulate images

func NewImageProcessor

func NewImageProcessor() ImageProcessor

NewImageProcessor creates an instance of `ImageProcessor` (image manipulation tool).

Currently is uses a GraphicsMagick-based implementation (`github.com/xaionaro-go/picapi/imageprocessor/graphicsmagick`).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL