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
↓ 5 callers
Method
acquire
(ctx context.Context, n int, delay time.Duration)
workers/workers_test.go:32
↓ 5 callers
Method
add
add adds an abitary route to the router
server/router.go:170
↓ 5 callers
Method
appendKey
appendKey appends an attribute key to the buffer.
logger/formatter_pretty.go:158
↓ 5 callers
Method
appendString
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 callers
Method
appendValue
appendValue appends a value to the buffer, applying quoting rules as necessary.
logger/formatter_json.go:143
↓ 5 callers
Method
appendValue
appendValue appends an attribute value to the buffer, applying quoting.
logger/formatter_structured.go:114
↓ 5 callers
Method
checkNextEntry
(lvl string, msg map[string]any)
logger/formatter_json_test.go:298
↓ 5 callers
Method
handler
handler handles Azure Blob Storage API requests
storage/abs/server_test.go:54
↓ 5 callers
Function
newVipsError
(msg string)
vips/errors.go:19
↓ 5 callers
Method
processImage
(opts optsFactory)
processing/suite_test.go:79
↓ 5 callers
Method
readImageData
Helper function to read data from ImageData
auximageprovider/static_provider_test.go:60
↓ 5 callers
Method
setEncoding
setEncoding recreates the reader with the specified encoding.
xmlparser/decoder.go:164
↓ 4 callers
Method
Colorspace
(colorspace Interpretation)
vips/vips.go:821
↓ 4 callers
Method
Cookies
()
handlers/processing/handler.go:35
↓ 4 callers
Function
Copy
Copy copies specified headers from one header to another.
httpheaders/copy.go:8
↓ 4 callers
Function
ExistingFilePath
ExistingFilePath defines env var descriptor for a path to an existing file.
env/types.go:218
↓ 4 callers
Method
ExtendEnabled
()
processing/options.go:77
↓ 4 callers
Method
FormatStack
FormatStack returns the stack trace as a formatted string.
errctx/error.go:30
↓ 4 callers
Method
GetIntDefault
(name string, def int)
vips/vips.go:464
↓ 4 callers
Method
GetTime
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 callers
Method
HasSuffix
HasSuffix reports whether the buffer ends with the given suffix.
xmlparser/buffer.go:55
↓ 4 callers
Method
ImagesInProgress
ImagesInProgress returns the current number of images being processed
monitoring/stats/stats.go:37
↓ 4 callers
Function
IsBucketAllowed
IsBucketAllowed checks if the provided bucket is allowed based on allowed and denied buckets lists.
storage/common/lists.go:8
↓ 4 callers
Function
IsNotModified
IsNotModified returns true if a file was not modified according to request/response headers
storage/common/notmodified.go:11
↓ 4 callers
Function
LatchDone
LatchDone returns the internal done channel of a Latch for testing.
asyncbuffer/export_test.go:9
↓ 4 callers
Method
Local
()
xmlparser/name.go:20
↓ 4 callers
Method
Log
(msg string)
monitoring/datadog/datadog.go:28
↓ 4 callers
Function
New
New creates a new ImageFetcher with the provided transport
fetcher/fetcher.go:24
↓ 4 callers
Function
New
New creates new semaphores instance
workers/workers.go:22
↓ 4 callers
Function
New
New creates a new SVG processor instance
processing/svg/svg.go:27
↓ 4 callers
Function
New
New creates a new Monitoring instance
monitoring/monitoring.go:43
↓ 4 callers
Function
NewDefaultConfig
NewDefaultConfig returns a new Config instance with default values.
fetcher/config.go:36
↓ 4 callers
Function
NewDefaultConfig
NewDefaultConfig creates a new Config instance with default values
processing/svg/config.go:18
↓ 4 callers
Function
NewDefaultConfig
NewDefaultConfig returns a new default configuration for all monitoring services
monitoring/config.go:24
↓ 4 callers
Function
NewFactory
(config *Config)
server/responsewriter/factory.go:10
↓ 4 callers
Function
NewGravityOptions
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 callers
Function
NewImageHashCacheMatcher
NewImageHashCacheMatcher creates a new ImageHashRegressionMatcher instance
testutil/image_hash_cache_matcher.go:36
↓ 4 callers
Function
NewObjectPartialContent
NewObjectPartialContent creates a new Reader with a 206 Partial Content status.
storage/reader.go:46
↓ 4 callers
Function
NewRegistry
()
imagetype/export_test.go:3
↓ 4 callers
Function
Parse
(s string)
httprange/httprange.go:11
↓ 4 callers
Method
Pos
Pos returns the current read position.
bufreader/bufreader.go:70
↓ 4 callers
Method
Presets
()
options/parser/export_test.go:5
↓ 4 callers
Method
Process
Process processes the given image data
processing/svg/svg.go:34
↓ 4 callers
Method
Read
Read reads a test data file and returns it as bytes
testutil/test_data_provider.go:81
↓ 4 callers
Function
RegexpFromPattern
RegexpFromPattern creates a regexp from a wildcard pattern. Converts shell-style wildcards to regexp patterns.
env/parsers.go:234
↓ 4 callers
Function
ReplaceEntitiesBytes
ReplaceEntitiesBytes replaces XML entities in the given byte slice according to the provided entity map.
xmlparser/entities.go:57
↓ 4 callers
Function
ReplaceEntitiesString
ReplaceEntitiesString replaces XML entities in the given string according to the provided entity map.
xmlparser/entities.go:63
↓ 4 callers
Method
Report
(err errctx.Error, req *http.Request, meta map[string]any)
errorreport/errorreport.go:18
↓ 4 callers
Method
SetCanonical
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 callers
Method
SetInt
(name string, value int)
vips/vips.go:531
↓ 4 callers
Function
SetMetadata
SetMetadata sets a metadata key-value pair in the request context.
errorreport/errorreport.go:74
↓ 4 callers
Method
Silent
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 callers
Method
String
()
processing/crop_test.go:118
↓ 4 callers
Method
String
()
processing/extend_test.go:55
↓ 4 callers
Function
StringSliceFile
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 callers
Function
SupportsSave
(it imagetype.Type)
vips/vips.go:178
↓ 4 callers
Method
SupportsThumbnail
SupportsThumbnail checks if the image type supports thumbnails.
imagetype/type.go:115
↓ 4 callers
Function
TryReadFull
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 callers
Function
Unmute
Unmute restores the default logger to the one created in [Init]
logger/logger.go:93
↓ 4 callers
Method
appendString
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 callers
Method
appendValue
appendValue appends an attribute value to the buffer, applying quoting rules as necessary.
logger/formatter_pretty.go:167
↓ 4 callers
Method
computeDist
(url string, sourceHash *testutil.ImageHash)
integration_test/processing_handler_test.go:599
↓ 4 callers
Method
mustReadUntil
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 callers
Function
newBuffer
newBuffer creates a new buffer from the pool.
logger/buffer.go:21
↓ 4 callers
Function
newSourceAddressError
(msg string)
fetcher/transport/generichttp/errors.go:13
↓ 4 callers
Function
newTypeMismatchError
(key string, exp, got any)
options/errors.go:13
↓ 4 callers
Method
parsePositiveFloat
parsePositiveFloat parses a positive float64 option value
options/parser/parse.go:76
↓ 4 callers
Method
parsePositiveNonZeroFloat
parsePositiveNonZeroFloat parses a positive non-zero float64 option value
options/parser/parse.go:97
↓ 4 callers
Method
runTestCase
(tc testCase[colorspaceTestCase])
processing/colorspace_test.go:68
↓ 4 callers
Function
setDefaultHandler
(h slog.Handler)
logger/logger.go:97
↓ 4 callers
Method
skipSpaces
skipSpaces skips whitespace characters.
xmlparser/decoder.go:650
↓ 4 callers
Method
unreadByte
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 callers
Function
vipsError
(fn string, msg string, args ...any)
vips/vips.go:907
↓ 4 callers
Method
wrapDownloadingErr
wrapDownloadingErr wraps original error to download error
handlers/processing/request_methods.go:256
↓ 3 callers
Method
AddCancel
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 callers
Method
CalcParams
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 callers
Method
Child
Child returns the child Options if any.
options/options.go:44
↓ 3 callers
Method
ClientFeaturesDetector
()
handlers/processing/handler.go:29
↓ 3 callers
Function
CondCh
CondCh returns the internal channel of a Cond for testing.
asyncbuffer/export_test.go:4
↓ 3 callers
Method
Depth
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 callers
Method
Detectors
()
imagetype/export_test.go:7
↓ 3 callers
Method
DocsURL
DocsURL returns the documentation URL associated with the error.
errctx/error.go:19
↓ 3 callers
Method
Dump
Dump writes the hash to a writer Format: [1 byte: type][variable: hash data]
testutil/image_hash.go:103
↓ 3 callers
Method
ExtendAspectRatioEnabled
()
processing/options.go:85
↓ 3 callers
Method
Extract
(out *Image, left, top, width, height int)
vips/vips.go:662
↓ 3 callers
Function
FormatErrType
FormatErrType formats error type string with error concrete type
monitoring/format/format.go:16
↓ 3 callers
Function
FormatSegmentName
FormatSegmentName formats segment name string
monitoring/format/format.go:11
↓ 3 callers
Method
Handle
Handle processes a log record.
logger/handler.go:132
↓ 3 callers
Function
HexSlice
HexSlice defines hex-encoded byte slices env var descriptor. Parses comma-separated hex strings into byte slices.
env/types.go:160
↓ 3 callers
Method
ImageMatches
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 callers
Function
ImageTypes
ImageTypes defines image types slice env var descriptor. Parses a comma-separated list of image format names.
env/types.go:130
↓ 3 callers
Method
InjectUserResponseHeaders
InjectUserResponseHeaders injects conditional headers into the user response
httpheaders/conditionalheaders/request.go:60
↓ 3 callers
Function
LoadImageHash
LoadImageHash loads a hash from a reader
testutil/image_hash.go:128
↓ 3 callers
Function
MegaInt
MegaInt defines "megascale" integer env var descriptor. Parses a float value and multiplies by 1,000,000.
env/types.go:80
↓ 3 callers
Function
Mute
Mute sets the default logger to a discard logger muting all log output
logger/logger.go:88
↓ 3 callers
Function
New
(verifyNetworks bool, config *Config)
fetcher/transport/generichttp/generic_http.go:15
↓ 3 callers
Function
New
New initializes all configured error reporters and returns a Reporter instance.
errorreport/errorreport.go:31
↓ 3 callers
Function
NewCond
NewCond creates a new Cond instance with an initialized channel.
asyncbuffer/cond.go:20
↓ 3 callers
Function
NewDefaultConfig
NewDefaultConfig returns a new default configuration for the generic HTTP transport
fetcher/transport/generichttp/config.go:29
↓ 3 callers
Function
NewDefaultConfig
NewDefaultConfig creates a new Config instance with default values.
errorreport/config.go:22
← previous
next →
201–300 of 1,844, ranked by callers