MCPcopy Create free account

hub / github.com/imgproxy/imgproxy / functions

Functions1,844 in github.com/imgproxy/imgproxy

↓ 5 callersMethodacquire
(ctx context.Context, n int, delay time.Duration)
workers/workers_test.go:32
↓ 5 callersMethodadd
add adds an abitary route to the router
server/router.go:170
↓ 5 callersMethodappendKey
appendKey appends an attribute key to the buffer.
logger/formatter_pretty.go:158
↓ 5 callersMethodappendString
appendString appends a string value to the buffer. If the string does not require escaping, it is appended directly. Otherwise, it is JSON marshaled.
logger/formatter_json.go:169
↓ 5 callersMethodappendValue
appendValue appends a value to the buffer, applying quoting rules as necessary.
logger/formatter_json.go:143
↓ 5 callersMethodappendValue
appendValue appends an attribute value to the buffer, applying quoting.
logger/formatter_structured.go:114
↓ 5 callersMethodcheckNextEntry
(lvl string, msg map[string]any)
logger/formatter_json_test.go:298
↓ 5 callersMethodhandler
handler handles Azure Blob Storage API requests
storage/abs/server_test.go:54
↓ 5 callersFunctionnewVipsError
(msg string)
vips/errors.go:19
↓ 5 callersMethodprocessImage
(opts optsFactory)
processing/suite_test.go:79
↓ 5 callersMethodreadImageData
Helper function to read data from ImageData
auximageprovider/static_provider_test.go:60
↓ 5 callersMethodsetEncoding
setEncoding recreates the reader with the specified encoding.
xmlparser/decoder.go:164
↓ 4 callersMethodColorspace
(colorspace Interpretation)
vips/vips.go:821
↓ 4 callersMethodCookies
()
handlers/processing/handler.go:35
↓ 4 callersFunctionCopy
Copy copies specified headers from one header to another.
httpheaders/copy.go:8
↓ 4 callersFunctionExistingFilePath
ExistingFilePath defines env var descriptor for a path to an existing file.
env/types.go:218
↓ 4 callersMethodExtendEnabled
()
processing/options.go:77
↓ 4 callersMethodFormatStack
FormatStack returns the stack trace as a formatted string.
errctx/error.go:30
↓ 4 callersMethodGetIntDefault
(name string, def int)
vips/vips.go:464
↓ 4 callersMethodGetTime
GetTime retrieves a [time.Time] value. If the key doesn't exist, it returns the zero time. If the value exists but is of a different type, it panics.
options/options.go:290
↓ 4 callersMethodHasSuffix
HasSuffix reports whether the buffer ends with the given suffix.
xmlparser/buffer.go:55
↓ 4 callersMethodImagesInProgress
ImagesInProgress returns the current number of images being processed
monitoring/stats/stats.go:37
↓ 4 callersFunctionIsBucketAllowed
IsBucketAllowed checks if the provided bucket is allowed based on allowed and denied buckets lists.
storage/common/lists.go:8
↓ 4 callersFunctionIsNotModified
IsNotModified returns true if a file was not modified according to request/response headers
storage/common/notmodified.go:11
↓ 4 callersFunctionLatchDone
LatchDone returns the internal done channel of a Latch for testing.
asyncbuffer/export_test.go:9
↓ 4 callersMethodLocal
()
xmlparser/name.go:20
↓ 4 callersMethodLog
(msg string)
monitoring/datadog/datadog.go:28
↓ 4 callersFunctionNew
New creates a new ImageFetcher with the provided transport
fetcher/fetcher.go:24
↓ 4 callersFunctionNew
New creates new semaphores instance
workers/workers.go:22
↓ 4 callersFunctionNew
New creates a new SVG processor instance
processing/svg/svg.go:27
↓ 4 callersFunctionNew
New creates a new Monitoring instance
monitoring/monitoring.go:43
↓ 4 callersFunctionNewDefaultConfig
NewDefaultConfig returns a new Config instance with default values.
fetcher/config.go:36
↓ 4 callersFunctionNewDefaultConfig
NewDefaultConfig creates a new Config instance with default values
processing/svg/config.go:18
↓ 4 callersFunctionNewDefaultConfig
NewDefaultConfig returns a new default configuration for all monitoring services
monitoring/config.go:24
↓ 4 callersFunctionNewFactory
(config *Config)
server/responsewriter/factory.go:10
↓ 4 callersFunctionNewGravityOptions
NewGravityOptions builds a new [GravityOptions] instance. It fills the [GravityOptions] struct with the options values under the given prefix. If the
processing/gravity.go:68
↓ 4 callersFunctionNewImageHashCacheMatcher
NewImageHashCacheMatcher creates a new ImageHashRegressionMatcher instance
testutil/image_hash_cache_matcher.go:36
↓ 4 callersFunctionNewObjectPartialContent
NewObjectPartialContent creates a new Reader with a 206 Partial Content status.
storage/reader.go:46
↓ 4 callersFunctionNewRegistry
()
imagetype/export_test.go:3
↓ 4 callersFunctionParse
(s string)
httprange/httprange.go:11
↓ 4 callersMethodPos
Pos returns the current read position.
bufreader/bufreader.go:70
↓ 4 callersMethodPresets
()
options/parser/export_test.go:5
↓ 4 callersMethodProcess
Process processes the given image data
processing/svg/svg.go:34
↓ 4 callersMethodRead
Read reads a test data file and returns it as bytes
testutil/test_data_provider.go:81
↓ 4 callersFunctionRegexpFromPattern
RegexpFromPattern creates a regexp from a wildcard pattern. Converts shell-style wildcards to regexp patterns.
env/parsers.go:234
↓ 4 callersFunctionReplaceEntitiesBytes
ReplaceEntitiesBytes replaces XML entities in the given byte slice according to the provided entity map.
xmlparser/entities.go:57
↓ 4 callersFunctionReplaceEntitiesString
ReplaceEntitiesString replaces XML entities in the given string according to the provided entity map.
xmlparser/entities.go:63
↓ 4 callersMethodReport
(err errctx.Error, req *http.Request, meta map[string]any)
errorreport/errorreport.go:18
↓ 4 callersMethodSetCanonical
SetCanonical sets the Link header with the canonical URL. It is mandatory for any response if enabled in the configuration.
server/responsewriter/writer.go:122
↓ 4 callersMethodSetInt
(name string, value int)
vips/vips.go:531
↓ 4 callersFunctionSetMetadata
SetMetadata sets a metadata key-value pair in the request context.
errorreport/errorreport.go:74
↓ 4 callersMethodSilent
Silent sets Silent flag which suppresses logs to true. We do not need to log requests like /health of /favicon.ico
server/router.go:265
↓ 4 callersMethodString
()
processing/crop_test.go:118
↓ 4 callersMethodString
()
processing/extend_test.go:55
↓ 4 callersFunctionStringSliceFile
StringSliceFile defines string slice from file env var descriptor. The file path is read from CLI args (--{cliArgName}) or falls back to the env varia
env/types.go:191
↓ 4 callersFunctionSupportsSave
(it imagetype.Type)
vips/vips.go:178
↓ 4 callersMethodSupportsThumbnail
SupportsThumbnail checks if the image type supports thumbnails.
imagetype/type.go:115
↓ 4 callersFunctionTryReadFull
TryReadFull acts like io.ReadFull with a couple of differences: 1. It doesn't return io.ErrUnexpectedEOF if the reader returns less data than requeste
ioutil/ioutil.go:9
↓ 4 callersFunctionUnmute
Unmute restores the default logger to the one created in [Init]
logger/logger.go:93
↓ 4 callersMethodappendString
appendString appends a string value to the buffer. If the string does not require escaping, it is appended directly. Otherwise, it is escaped and quot
logger/buffer.go:61
↓ 4 callersMethodappendValue
appendValue appends an attribute value to the buffer, applying quoting rules as necessary.
logger/formatter_pretty.go:167
↓ 4 callersMethodcomputeDist
(url string, sourceHash *testutil.ImageHash)
integration_test/processing_handler_test.go:599
↓ 4 callersMethodmustReadUntil
mustReadUntil reads bytes to the buffer until the specified delimiter byte is encountered. The delimiter byte is included in the buffer. If an error o
xmlparser/decoder.go:770
↓ 4 callersFunctionnewBuffer
newBuffer creates a new buffer from the pool.
logger/buffer.go:21
↓ 4 callersFunctionnewSourceAddressError
(msg string)
fetcher/transport/generichttp/errors.go:13
↓ 4 callersFunctionnewTypeMismatchError
(key string, exp, got any)
options/errors.go:13
↓ 4 callersMethodparsePositiveFloat
parsePositiveFloat parses a positive float64 option value
options/parser/parse.go:76
↓ 4 callersMethodparsePositiveNonZeroFloat
parsePositiveNonZeroFloat parses a positive non-zero float64 option value
options/parser/parse.go:97
↓ 4 callersMethodrunTestCase
(tc testCase[colorspaceTestCase])
processing/colorspace_test.go:68
↓ 4 callersFunctionsetDefaultHandler
(h slog.Handler)
logger/logger.go:97
↓ 4 callersMethodskipSpaces
skipSpaces skips whitespace characters.
xmlparser/decoder.go:650
↓ 4 callersMethodunreadByte
unreadByte unreads the last byte read from the reader. If an error occurs, it sets d.err and returns false. nolint:unparam
xmlparser/decoder.go:728
↓ 4 callersFunctionvipsError
(fn string, msg string, args ...any)
vips/vips.go:907
↓ 4 callersMethodwrapDownloadingErr
wrapDownloadingErr wraps original error to download error
handlers/processing/request_methods.go:256
↓ 3 callersMethodAddCancel
Error returns any error that occurred during reading data from source AddCancel attaches a cancel function to the image data. Please note that Cancel
imagedata/image_data.go:30
↓ 3 callersMethodCalcParams
CalcParams calculates context image parameters based on the current image size. Some steps (like trim) must call this function when finished.
processing/prepare.go:269
↓ 3 callersMethodChild
Child returns the child Options if any.
options/options.go:44
↓ 3 callersMethodClientFeaturesDetector
()
handlers/processing/handler.go:29
↓ 3 callersFunctionCondCh
CondCh returns the internal channel of a Cond for testing.
asyncbuffer/export_test.go:4
↓ 3 callersMethodDepth
Depth returns the depth of the Options in the hierarchy. The main Options has a depth of 0, its child has a depth of 1, and so on.
options/options.go:80
↓ 3 callersMethodDetectors
()
imagetype/export_test.go:7
↓ 3 callersMethodDocsURL
DocsURL returns the documentation URL associated with the error.
errctx/error.go:19
↓ 3 callersMethodDump
Dump writes the hash to a writer Format: [1 byte: type][variable: hash data]
testutil/image_hash.go:103
↓ 3 callersMethodExtendAspectRatioEnabled
()
processing/options.go:85
↓ 3 callersMethodExtract
(out *Image, left, top, width, height int)
vips/vips.go:662
↓ 3 callersFunctionFormatErrType
FormatErrType formats error type string with error concrete type
monitoring/format/format.go:16
↓ 3 callersFunctionFormatSegmentName
FormatSegmentName formats segment name string
monitoring/format/format.go:11
↓ 3 callersMethodHandle
Handle processes a log record.
logger/handler.go:132
↓ 3 callersFunctionHexSlice
HexSlice defines hex-encoded byte slices env var descriptor. Parses comma-separated hex strings into byte slices.
env/types.go:160
↓ 3 callersMethodImageMatches
ImageMatches is a testing helper, which accepts image as reader, calculates hash and compares it with a hash saved to testdata/test-hashes folder.
testutil/image_hash_cache_matcher.go:51
↓ 3 callersFunctionImageTypes
ImageTypes defines image types slice env var descriptor. Parses a comma-separated list of image format names.
env/types.go:130
↓ 3 callersMethodInjectUserResponseHeaders
InjectUserResponseHeaders injects conditional headers into the user response
httpheaders/conditionalheaders/request.go:60
↓ 3 callersFunctionLoadImageHash
LoadImageHash loads a hash from a reader
testutil/image_hash.go:128
↓ 3 callersFunctionMegaInt
MegaInt defines "megascale" integer env var descriptor. Parses a float value and multiplies by 1,000,000.
env/types.go:80
↓ 3 callersFunctionMute
Mute sets the default logger to a discard logger muting all log output
logger/logger.go:88
↓ 3 callersFunctionNew
(verifyNetworks bool, config *Config)
fetcher/transport/generichttp/generic_http.go:15
↓ 3 callersFunctionNew
New initializes all configured error reporters and returns a Reporter instance.
errorreport/errorreport.go:31
↓ 3 callersFunctionNewCond
NewCond creates a new Cond instance with an initialized channel.
asyncbuffer/cond.go:20
↓ 3 callersFunctionNewDefaultConfig
NewDefaultConfig returns a new default configuration for the generic HTTP transport
fetcher/transport/generichttp/config.go:29
↓ 3 callersFunctionNewDefaultConfig
NewDefaultConfig creates a new Config instance with default values.
errorreport/config.go:22
← previousnext →201–300 of 1,844, ranked by callers