Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/imgproxy/imgproxy
/ functions
Functions
1,844 in github.com/imgproxy/imgproxy
⨍
Functions
1,844
◇
Types & classes
321
↓ 273 callers
Method
Set
Set sets a value for a specific option key.
options/options.go:131
↓ 234 callers
Method
Parse
Parse parses the environment variable and sets the value
env/desc.go:37
↓ 160 callers
Method
Close
()
errorreport/errorreport.go:19
↓ 148 callers
Method
Run
Run runs the given pipeline with the given parameters
processing/pipeline.go:75
↓ 132 callers
Method
Get
(ctx context.Context, opts *options.Options)
auximageprovider/provider.go:17
↓ 125 callers
Method
T
()
testutil/lazy_obj.go:15
↓ 118 callers
Method
Errorf
Errorf formats an error message for invalid env var
env/desc.go:98
↓ 82 callers
Method
Error
Error returns the error message.
errctx/error.go:10
↓ 71 callers
Function
String
String defines string env var descriptor
env/types.go:31
↓ 65 callers
Method
Format
Reader returns a new ReadSeeker for the image data
imagedata/image_data.go:23
↓ 65 callers
Method
GetBool
GetBool retrieves a bool value. If the key doesn't exist, it returns the provided default value. If the value exists but is of a different type, it pa
options/options.go:283
↓ 64 callers
Method
GET
GET adds GET route
server/router.go:88
↓ 64 callers
Function
Get
Get retrieves a value of the specified type from the options. If the key does not exist, it returns the provided default value. If the value exists bu
options/options.go:93
↓ 61 callers
Method
Add
Add adds a new option with the specified key and returns the OptionArgs for setting its arguments. If the option already exists, it returns the existi
testutil/options_builder.go:43
↓ 61 callers
Function
Bool
Bool defines boolean env var descriptor
env/types.go:52
↓ 58 callers
Method
ParsePath
ParsePath parses the given request path and returns the processing options and image URL
options/parser/processing_options.go:198
↓ 56 callers
Method
String
()
xmlparser/name.go:25
↓ 49 callers
Method
WriteHeader
WriteHeader writes the HTTP response header. It ensures that all headers are flushed before writing the status code.
server/responsewriter/writer.go:136
↓ 48 callers
Function
NewLazySuiteObj
NewLazySuiteObj creates a new [LazyObj] instance and registers its cleanup function to a provided [LazySuite].
testutil/lasy_suite.go:46
↓ 45 callers
Method
GetFloat
GetFloat retrieves a float64 value from the options. If the key does not exist, GetFloat returns the provided default value. If the key value exists b
options/options.go:237
↓ 37 callers
Function
Ensure
Ensure ensures that the returned value is not nil. If the provided pointer is nil, the function calls the provided EnsureFunc to obtain a new value. O
ensure/ensure.go:9
↓ 37 callers
Function
Error
()
vips/vips.go:132
↓ 34 callers
Function
NewTextError
NewTextError creates a new [TextError] with the given message and options.
errctx/text_error.go:14
↓ 34 callers
Function
WithPublicMessage
(msg string)
errctx/options.go:21
↓ 33 callers
Function
WithShouldReport
(report bool)
errctx/options.go:27
↓ 33 callers
Function
WithStatusCode
(code int)
errctx/options.go:15
↓ 33 callers
Method
Write
Write writes data to the buffer.
logger/buffer.go:27
↓ 32 callers
Method
Background
()
processing/options.go:138
↓ 32 callers
Method
Main
Main returns the main Options if this is a child Options. If this is the main Options, it returns itself.
options/options.go:35
↓ 32 callers
Method
Warn
Warn logs a warning with the env var details
env/desc.go:90
↓ 31 callers
Method
append
append appends data to the buffer.
logger/buffer.go:54
↓ 30 callers
Method
swapAndUnref
(newImg *C.VipsImage)
vips/vips.go:900
↓ 28 callers
Method
Load
( imgdata imagedata.ImageData, shrink float64, page, pages int, )
vips/vips.go:259
↓ 28 callers
Method
Reader
Close closes the image data and releases any resources held by it
imagedata/image_data.go:22
↓ 27 callers
Function
Int
Int defines integer env var descriptor
env/types.go:70
↓ 27 callers
Method
NewRequest
NewRequest creates a new Request instance from the given user request.
httpheaders/conditionalheaders/factory.go:22
↓ 27 callers
Method
processImageAndCheck
(tc testCaseParams)
processing/suite_test.go:104
↓ 26 callers
Function
New
New creates a new Options map
options/options.go:27
↓ 26 callers
Method
ensureMaxArgs
ensureMaxArgs checks if the number of arguments is as expected
options/parser/parse.go:20
↓ 25 callers
Method
Height
()
processing/options.go:37
↓ 24 callers
Method
SetHeaders
SetHeaders adds headers that will be returned by the server. Odd arguments are treated as keys, even arguments as values.
testutil/test_server.go:83
↓ 24 callers
Method
String
String returns the contents of the buffer as a string.
logger/buffer.go:33
↓ 23 callers
Method
Width
()
processing/options.go:33
↓ 23 callers
Function
Wrap
Wrap creates a new [WrappedError] with the given error and options. It gets the stack trace from the call site. If the provided error already an [Err
errctx/wrapped_error.go:33
↓ 22 callers
Method
GetInt
GetInt retrieves an int value from the options. If the key does not exist, GetInt returns the provided default value. If the key exists but the value
options/options.go:191
↓ 22 callers
Method
ReadAt
ReadAt reads data from the AsyncBuffer at the given offset. Please note that if pause threshold is hit in the middle of the reading, the data beyond
asyncbuffer/buffer.go:236
↓ 21 callers
Method
WithGroup
WithGroup returns a new handler with the given group name added.
logger/handler.go:120
↓ 19 callers
Method
GetInt
(name string)
vips/vips.go:455
↓ 19 callers
Function
NewError
NewError creates a new [Error] instance wrapping the given errctx.Error and category. If err is nil, it returns nil. If the error or any of its cause
server/errors.go:38
↓ 19 callers
Function
hasOperation
(name string)
vips/vips.go:139
↓ 19 callers
Function
newInvalidArgumentError
newInvalidArgumentError creates a standardized error for an invalid single argument
options/parser/errors.go:88
↓ 18 callers
Method
Read
(p []byte)
imagetype/svg_test.go:17
↓ 18 callers
Method
Wait
Wait waits for a Tick() to occur after the given cursor value. Returns the new cursor value when awakened. If the cursor has already advanced beyond t
asyncbuffer/cond.go:47
↓ 17 callers
Method
Bytes
Bytes returns the contents of the buffer as a byte slice.
xmlparser/buffer.go:67
↓ 17 callers
Method
Clone
Clone creates a deep copy of the Text.
xmlparser/tokens.go:199
↓ 17 callers
Method
Len
Len returns the number of bytes written to the buffer.
xmlparser/buffer.go:77
↓ 17 callers
Method
SetBody
SetBody sets the body that will be returned by the server
testutil/test_server.go:76
↓ 17 callers
Method
WithDocsURL
WithDocsURL sets a custom documentation URL for the env var
env/desc.go:53
↓ 16 callers
Function
Scale
(a int, scale float64)
imath/imath.go:24
↓ 16 callers
Function
ScaleToEven
(a int, scale float64)
imath/imath.go:32
↓ 16 callers
Method
Split
()
xmlparser/name.go:7
↓ 16 callers
Method
setSyntaxErrorf
setSyntaxErrorf sets a syntax error with the current line number.
xmlparser/decoder.go:877
↓ 15 callers
Function
New
New creates new buffered reader
bufreader/bufreader.go:26
↓ 15 callers
Method
ServeHTTP
ServeHTTP serves routes
server/router.go:112
↓ 15 callers
Method
Write
Write writes the HTTP response body. It ensures that all headers are flushed before writing the body.
server/responsewriter/writer.go:145
↓ 14 callers
Method
Int
()
imagemeta/iptc/tags.go:448
↓ 14 callers
Method
Release
Release releases the latch, allowing all waiting goroutines to proceed.
asyncbuffer/latch.go:19
↓ 14 callers
Method
StatusCode
StatusCode returns the HTTP status code associated with the error.
errctx/error.go:13
↓ 14 callers
Method
URL
URL returns the actual URL of the request
fetcher/request.go:116
↓ 14 callers
Function
WithDocsURL
(url string)
errctx/options.go:33
↓ 14 callers
Function
cachedCString
(str string)
vips/cached_c_strings.go:8
↓ 14 callers
Method
parseBool
parseBool parses a boolean option value and warns if the value is invalid
options/parser/parse.go:33
↓ 13 callers
Method
Distance
Distance calculates the distance between two hashes Returns error if hash types don't match
testutil/image_hash.go:81
↓ 13 callers
Function
New
New creates a new AsyncBuffer that reads from the given io.ReadCloser in background and closes it when finished. r - io.ReadCloser to read data from
asyncbuffer/buffer.go:86
↓ 13 callers
Method
ResetLazyObjects
ResetLazyObjects resets all lazy objects created with [NewLazySuiteObj]
testutil/lasy_suite.go:34
↓ 13 callers
Method
String
String returns the string representation of the image type.
imagetype/type.go:31
↓ 13 callers
Method
WriteByte
WriteByte writes a single byte to the buffer.
xmlparser/buffer.go:48
↓ 12 callers
Method
GetObject
(ctx context.Context, input *s3.GetObjectInput, opts ...func(*s3.Options))
storage/s3/s3_client.go:11
↓ 12 callers
Function
GetTypeDesc
GetTypeDesc returns the TypeDesc for the given Type. Returns nil if the type is not registered.
imagetype/registry.go:68
↓ 12 callers
Method
Read
Read reads data from the AsyncBuffer.
asyncbuffer/reader.go:16
↓ 12 callers
Method
ShortName
()
processing/processing_test.go:111
↓ 12 callers
Function
StringSlice
StringSlice defines string slice env var descriptor. Parses a comma-separated list of strings.
env/types.go:110
↓ 12 callers
Function
gbool
(b bool)
vips/vips.go:215
↓ 11 callers
Method
DownloadSync
DownloadSync downloads the image synchronously and returns the ImageData and HTTP headers.
imagedata/factory.go:91
↓ 11 callers
Function
Duration
Duration defines duration env var descriptor. Parses an integer as seconds.
env/types.go:90
↓ 11 callers
Function
Enum
Enum defines enum value env var descriptor that maps string keys to values of type T. The format string is generated from the map keys.
env/types.go:41
↓ 11 callers
Method
Error
Size returns the size of the image data in bytes
imagedata/image_data.go:25
↓ 11 callers
Method
Monitoring
()
handlers/processing/handler.go:36
↓ 11 callers
Method
Read
Read reads data from the testReader, simulating a slow read and a potential failure
asyncbuffer/buffer_test.go:54
↓ 11 callers
Function
RegisterType
RegisterType registers a new image type in the global registry. It panics if the type already exists (i.e., if a TypeDesc is already registered for th
imagetype/registry.go:62
↓ 11 callers
Method
Reset
Reset truncates the buffer.
xmlparser/buffer.go:33
↓ 11 callers
Method
discard
discard discards the next n bytes from the reader.
xmlparser/decoder.go:848
↓ 11 callers
Function
generateSourceData
generateSourceData generates a byte slice with 4.5 chunks of data
asyncbuffer/buffer_test.go:109
↓ 10 callers
Method
ErrorZeroOrNegative
ErrorZeroOrNegative formats an error message for zero or less env var
env/desc.go:80
↓ 10 callers
Method
Ext
Ext returns the file extension for the image type.
imagetype/type.go:41
↓ 10 callers
Method
Len
Len returns the length of the hash data (excluding type byte)
testutil/image_hash.go:167
↓ 10 callers
Function
NewObjectNotFound
NewObjectNotFound creates a new Reader with a 404 Not Found status.
storage/reader.go:56
↓ 10 callers
Function
RegisterMagicBytes
RegisterMagicBytes registers magic bytes for a specific image type Magic byte detectors are always tried before custom detectors
imagetype/registry.go:124
↓ 10 callers
Method
Remove
Remove removes the last n bytes.
xmlparser/buffer.go:60
↓ 10 callers
Method
Write
(p []byte)
xmlparser/buffer.go:37
next →
1–100 of 1,844, ranked by callers