MCPcopy Create free account

hub / github.com/imgproxy/imgproxy / functions

Functions1,844 in github.com/imgproxy/imgproxy

↓ 10 callersMethodappendStringRaw
appendStringRaw appends a string value to the buffer without escaping.
logger/buffer.go:70
↓ 10 callersMethodparsePositiveInt
parsePositiveInt parses a positive integer option value
options/parser/parse.go:160
↓ 9 callersMethodCopyMemory
()
vips/vips.go:836
↓ 9 callersMethodDelete
Delete removes an option by its key.
options/options.go:149
↓ 9 callersMethodEnabled
Enabled checks if the hook is enabled for the given log level.
logger/handler.go:43
↓ 9 callersFunctionIsSVG
(r bufreader.ReadPeeker, _, _ string)
imagetype/svg.go:17
↓ 9 callersFunctionMinNonZero
(a, b int)
imath/imath.go:5
↓ 9 callersFunctionNewOptionsBuilder
NewOptionsBuilder creates a new OptionsBuilder.
testutil/options_builder.go:36
↓ 9 callersFunctionReadersEqual
ReadersEqual compares two io.Reader contents in a streaming manner. It fails the test if contents differ or if reading fails.
testutil/readers_equal.go:17
↓ 9 callersMethodShutdown
Shutdown gracefully shuts down the server
server/server.go:78
↓ 9 callersMethodStop
(ctx context.Context)
monitoring/monitoring.go:18
↓ 9 callersMethodString
String returns the string representation of the options, joining them with '/'.
testutil/options_builder.go:52
↓ 9 callersMethodType
Type returns the current colorspace interpretation of the image.
vips/vips.go:720
↓ 9 callersMethodVerifySignature
(ctx context.Context, signature, path string)
security/signature.go:12
↓ 9 callersMethodappendKey
appendKey appends an attribute key to the buffer.
logger/formatter_json.go:134
↓ 9 callersMethodexecute
( imageURL string, header http.Header, o *options.Options, )
handlers/stream/handler_test.go:148
↓ 9 callersFunctionnewInvalidURLError
(ctx context.Context, format string, args ...any)
options/parser/errors.go:22
↓ 9 callersMethodnewParser
(presets ...string)
options/parser/presets_test.go:79
↓ 8 callersMethodCopyValue
CopyValue copies a value from one option key to another.
options/options.go:174
↓ 8 callersMethodErrorEmpty
ErrorEmpty formats an error message for empty env var
env/desc.go:70
↓ 8 callersMethodErrorNegative
ErrorNegative formats an error message for negative env var
env/desc.go:85
↓ 8 callersMethodHas
Has checks if an option key exists.
options/options.go:181
↓ 8 callersMethodIsVector
IsVector checks if the image type is a vector format.
imagetype/type.go:61
↓ 8 callersMethodLazy
()
testutil/lasy_suite.go:41
↓ 8 callersFunctionNewHandler
NewHandler creates a new [Handler] instance.
logger/handler.go:67
↓ 8 callersMethodPath
Path returns the absolute path to a file in the testdata directory
testutil/test_data_provider.go:75
↓ 8 callersMethodRegisterDetector
RegisterDetector registers a custom detector function on this registry instance
imagetype/registry.go:135
↓ 8 callersMethodappendKey
appendKey appends an attribute key to the buffer.
logger/formatter_structured.go:104
↓ 8 callersMethodfree
free truncates the buffer and returns it to the pool.
logger/buffer.go:38
↓ 8 callersFunctionnewOptionArgumentError
(ctx context.Context, key, format string, args ...any)
options/parser/errors.go:55
↓ 7 callersFunctionDocsBaseURL
DocsBaseURL returns documentation base url set for context or default
errctx/docs_base_url.go:10
↓ 7 callersMethodErrorRange
ErrorRange formats an error message for out of range env var
env/desc.go:75
↓ 7 callersMethodFileEqualsToReader
FileEqualsToReader compares the contents of a test data file with the contents of the given reader
testutil/test_data_provider.go:95
↓ 7 callersFunctionNewFromBytesWithFormat
NewFromBytesWithFormat creates a new ImageData instance from the provided format and byte slice.
imagedata/factory.go:44
↓ 7 callersFunctionNewLatch
NewLatch creates a new Latch.
asyncbuffer/latch.go:14
↓ 7 callersFunctionNewRoundTripper
NewRoundTripper creates a new RoundTripper
fetcher/transport/round_tripper.go:18
↓ 7 callersFunctionNewTestDataProvider
NewTestDataProvider creates a new TestDataProvider
testutil/test_data_provider.go:28
↓ 7 callersMethodPeek
(n int)
bufreader/bufreader.go:13
↓ 7 callersMethodRead
Read reads data into p from the buffered reader.
bufreader/bufreader.go:35
↓ 7 callersMethodRotate
()
processing/options.go:93
↓ 7 callersMethodSeek
Seek sets the position of the reader to the given offset and returns the new position
asyncbuffer/reader.go:26
↓ 7 callersMethodSetOriginHeaders
SetOriginHeaders sets the origin headers for the request.
httpheaders/conditionalheaders/request.go:34
↓ 7 callersMethodTrim
(threshold float64, smart bool, color color.RGB, equalHor bool, equalVer bool)
vips/vips.go:680
↓ 7 callersMethodmaxAgeValue
maxAgeValue parses max-age from cache-control
handlers/stream/handler_test.go:492
↓ 6 callersMethodAddAttribute
(key string, value any)
monitoring/newrelic/newrelic.go:20
↓ 6 callersMethodAddChild
AddChild creates a new child Options that inherits from the current Options. If the current Options already has a child, it returns the existing child
options/options.go:66
↓ 6 callersMethodBytesRead
()
asyncbuffer/buffer_test.go:43
↓ 6 callersFunctionCheckTimeout
CheckTimeout checks if the request context has timed out or cancelled and returns wrapped error.
server/timer.go:32
↓ 6 callersFunctionCopyAll
CopyAll copies all headers from one header to another.
httpheaders/copy.go:18
↓ 6 callersMethodCursor
Cursor returns the current cursor value. Capture this before checking your condition, then pass it to Wait().
asyncbuffer/cond.go:40
↓ 6 callersMethodDetect
Detect runs image format detection
imagetype/registry.go:167
↓ 6 callersFunctionErrorType
ErrorType returns the type name of the given error. If the error is [WrappedError], it returns the type of the inner error.
errctx/error.go:39
↓ 6 callersMethodFilter
Filter creates a copy of Meta with only the specified keys.
monitoring/meta.go:20
↓ 6 callersMethodLevel
Level returns the minimum log level for the handler.
logger/handler.go:88
↓ 6 callersFunctionLogResponse
( reqID string, r *http.Request, status int, err errctx.Error, additional ...slog.Attr, )
server/logging.go:27
↓ 6 callersMethodNestedMap
NestedMap returns Options as a nested map[string]any. Each key is split by dots (.) and the resulting keys are used to create a nested structure. If t
options/options.go:331
↓ 6 callersFunctionNewObjectOK
NewObjectOK creates a new Reader with a 200 OK status.
storage/reader.go:36
↓ 6 callersFunctionNewWrappedError
NewWrappedError creates a new [WrappedError] with the given error and options. It wraps the provided even if it already is an [WrappedError] and alway
errctx/wrapped_error.go:18
↓ 6 callersFunctionRoundToEven
(a float64)
imath/imath.go:20
↓ 6 callersMethodSetExpires
SetExpires sets the TTL from time
server/responsewriter/writer.go:66
↓ 6 callersMethodSize
Format returns the image format from the metadata (shortcut)
imagedata/image_data.go:24
↓ 6 callersMethodStartSpan
( ctx context.Context, name string, meta map[string]any, )
monitoring/monitoring.go:24
↓ 6 callersMethodStats
Stats returns the stats instance
monitoring/monitoring.go:96
↓ 6 callersMethodTick
Tick signals that an event has occurred by closing the channel and incrementing cursor.
asyncbuffer/cond.go:27
↓ 6 callersFunctionWithPrefix
(prefix string)
errctx/options.go:5
↓ 6 callersFunctionWrapWithStackSkip
WrapWithStackSkip creates a new [WrappedError] with the given error and options. It the first stackSkip frames from the call stack. If the provided e
errctx/wrapped_error.go:45
↓ 6 callersMethodappendString
appendString appends a string value to the buffer, applying quoting rules as necessary.
logger/formatter_common.go:88
↓ 6 callersMethodcalcHash
( filename string, hashType testutil.ImageHashType, )
testutil/image_hash_test.go:221
↓ 6 callersMethodcheckNextEntry
(lvl, msg string)
logger/formatter_structured_test.go:63
↓ 6 callersMethodcheckNextEntry
(lvl, msg string)
logger/formatter_pretty_test.go:317
↓ 6 callersMethodmustReadByte
mustReadByte reads a single byte from the reader. If an error occurs, it sets d.err and returns false. If io.EOF is encountered, it sets d.err to a mo
xmlparser/decoder.go:714
↓ 6 callersFunctionnewInvalidArgsError
newInvalidArgsError creates a standardized error for invalid arguments
options/parser/errors.go:83
↓ 6 callersFunctionnewIptcError
(format string, args ...any)
imagemeta/iptc/errors.go:12
↓ 6 callersFunctiontestNestedOptions
()
options/options_test.go:210
↓ 6 callersFunctionwithDefaultTimeout
(config *Config, timeout time.Duration)
monitoring/otel/builders.go:233
↓ 6 callersFunctionwrapDownloadError
(err error, desc string)
imagedata/errors.go:23
↓ 5 callersFunctionAppendToSlice
AppendToSlice appends a value to a slice option. If the option does not exist, it creates a new slice with the value.
options/options.go:108
↓ 5 callersMethodCancel
Cancel cancels the request context
fetcher/request.go:111
↓ 5 callersMethodClear
()
vips/vips.go:394
↓ 5 callersMethodDescendants
Descendants returns an iterator over the child Options if any.
options/options.go:49
↓ 5 callersFunctionDetect
Detect attempts to detect the image type from a reader. It first tries magic byte detection, then custom detectors in registration order
imagetype/registry.go:130
↓ 5 callersFunctionDurationMillis
DurationMillis defines duration env var descriptor. Parses an integer as milliseconds.
env/types.go:100
↓ 5 callersMethodError
Error returns the error that occurred during reading data in background.
asyncbuffer/buffer.go:184
↓ 5 callersMethodGetEnv
GetEnv returns the value of the env variable
env/desc.go:26
↓ 5 callersFunctionGetTypeByName
GetTypeByName returns all registered image types.
imagetype/registry.go:73
↓ 5 callersMethodIsSecurityOptionsAllowed
(ctx context.Context)
options/parser/parser.go:33
↓ 5 callersMethodMap
Map returns a copy of the Options as a map[string]any If the Options has a child, it combines the main and child maps, prepending each key with the op
options/options.go:298
↓ 5 callersFunctionNewDefaultConfig
()
logger/config.go:43
↓ 5 callersFunctionNewDocument
(r io.Reader)
xmlparser/document.go:11
↓ 5 callersFunctionNewImageHash
NewImageHash creates a new hash from an image reader
testutil/image_hash.go:38
↓ 5 callersFunctionNewObjectNotModified
NewObjectNotModified creates a new Reader with a 304 Not Modified status.
storage/reader.go:71
↓ 5 callersMethodNewWriter
NewWriter wraps [http.ResponseWriter] into [Writer].
server/responsewriter/factory.go:19
↓ 5 callersMethodRegisterProtocol
RegisterProtocol registers a new transport protocol with the transport
fetcher/transport/transport.go:64
↓ 5 callersMethodRequestsInProgress
RequestsInProgress returns the current number of requests in progress
monitoring/stats/stats.go:22
↓ 5 callersMethodResize
(wscale, hscale float64)
vips/vips.go:578
↓ 5 callersMethodSetStatusCode
SetStatusCode sets the status code that will be returned by the server
testutil/test_server.go:70
↓ 5 callersFunctionSliceContains
SliceContains checks if a slice option contains a specific value. If the option does not exist, it returns false. If the value exists but is of a diff
options/options.go:125
↓ 5 callersMethodWithReportError
WithReportError handles error reporting. It should be placed after `WithMonitoring`, but before `WithPanic`.
server/middlewares.go:94
↓ 5 callersMethodWorkersUtilization
WorkersUtilization returns the current workers utilization percentage
monitoring/stats/stats.go:52
↓ 5 callersMethodWriteTo
(w TokenWriter)
xmlparser/tokens.go:10
← previousnext →101–200 of 1,844, ranked by callers