MCPcopy Create free account

hub / github.com/imgproxy/imgproxy / functions

Functions1,844 in github.com/imgproxy/imgproxy

↓ 3 callersFunctionNewDefaultConfig
NewDefaultConfig returns default config values
server/config.go:65
↓ 3 callersFunctionNewDefaultConfig
NewDefaultConfig returns a new Config instance with default values.
server/responsewriter/config.go:29
↓ 3 callersFunctionNewDetector
NewDetector creates a new Detector instance
clientfeatures/detector.go:21
↓ 3 callersFunctionNewFactory
NewFactory creates a new factory
imagedata/factory.go:35
↓ 3 callersMethodNewFromBytes
NewFromBytes creates a new ImageData instance from the provided byte slice.
imagedata/factory.go:53
↓ 3 callersFunctionNewImageHashFromBytes
NewImageHashFromBytes loads an image from a byte slice and calculates its hash
testutil/image_hash.go:58
↓ 3 callersFunctionNewLazySuiteTestServer
NewLazySuiteTestServer creates a lazy TestServer object for use in test suites
testutil/test_server.go:28
↓ 3 callersFunctionNewObjectError
NewObjectError creates a new Reader with a custom status code
storage/reader.go:61
↓ 3 callersFunctionNewObjectInvalidRange
NewObjectInvalidRange creates a new Reader with a 416 Range Not Satisfiable status.
storage/reader.go:88
↓ 3 callersFunctionNewRouter
NewRouter creates a new Router instance
server/router.go:65
↓ 3 callersFunctionNewStaticProvider
NewStaticProvider creates a new ImageProvider from either a base64 string, file path, or URL
auximageprovider/static_provider.go:25
↓ 3 callersMethodPaddingBottom
()
processing/options.go:157
↓ 3 callersMethodPaddingLeft
()
processing/options.go:161
↓ 3 callersMethodPaddingRight
()
processing/options.go:153
↓ 3 callersMethodPaddingTop
()
processing/options.go:149
↓ 3 callersMethodPageHeight
()
vips/vips.go:238
↓ 3 callersFunctionParseEntityMap
ParseEntityMap searches for a DOCTYPE directive in the given nodes and extracts entity declarations into a map.
xmlparser/entities.go:14
↓ 3 callersMethodRead
(p []byte)
storage/fs/file_limiter.go:13
↓ 3 callersMethodSecurity
()
handlers/processing/handler.go:32
↓ 3 callersMethodSendError
(ctx context.Context, errType string, err errctx.Error)
monitoring/monitoring.go:30
↓ 3 callersMethodSetContentLength
SetContentLength sets the Content-Length header
server/responsewriter/writer.go:107
↓ 3 callersMethodSetIsFallbackImage
SetIsFallbackImage sets the Fallback-Image header to indicate that the fallback image was used.
server/responsewriter/writer.go:53
↓ 3 callersMethodSetVary
SetVary sets the Vary header value based on enabled features
clientfeatures/detector.go:95
↓ 3 callersMethodShouldReport
ShouldReport indicates whether the error should be reported.
errctx/error.go:17
↓ 3 callersFunctionShrink
(a int, shrink float64)
imath/imath.go:40
↓ 3 callersFunctionStart
Start starts the http server. cancel is called in case server failed to start, but it happened asynchronously. It should cancel the upstream context.
server/server.go:29
↓ 3 callersFunctionStartRequestTimer
StartRequestTimer starts a new request timer.
server/timer.go:15
↓ 3 callersMethodString
String returns a string representation of the hash
testutil/image_hash.go:155
↓ 3 callersMethodString
()
processing/trim_test.go:52
↓ 3 callersMethodSupportsAlpha
SupportsAlpha checks if the image type supports alpha transparency.
imagetype/type.go:70
↓ 3 callersMethodSupportsAnimationSave
SupportsAnimationSave checks if the image type supports saving animations.
imagetype/type.go:88
↓ 3 callersFunctionUnquoteEtag
UnquoteEtag removes quotes from the ETag value if they are present. It also removes the weak ETag prefix "W/" if it is present.
httpheaders/conditional.go:36
↓ 3 callersMethodWatermarkOpacity
()
processing/options.go:229
↓ 3 callersMethodWithPanic
WithPanic recovers panic and converts it to normal error
server/middlewares.go:64
↓ 3 callersMethodappendInt
appendInt appends an integer value to the buffer.
logger/buffer.go:80
↓ 3 callersMethodappendJSONMarshal
appendJSONMarshal appends a JSON marshaled value to the buffer.
logger/formatter_json.go:198
↓ 3 callersMethodappendTime
appendTime appends a time value to the buffer.
logger/formatter_json.go:191
↓ 3 callersMethodapplyFormatOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:383
↓ 3 callersMethodapplyPresetOption
( ctx context.Context, o *options.Options, args []string, usedPresets ...string, )
options/parser/apply.go:541
↓ 3 callersMethodapplyURLOptions
( ctx context.Context, o *options.Options, options []urlOption, allowAll bool, usedPresets ...string, )
options/parser/processing_options.go:123
↓ 3 callersFunctionbuildPath
buildPath builds a field path for error messages
testutil/equal_but_not_same.go:91
↓ 3 callersFunctioncalcPosition
( width, height, innerWidth, innerHeight int, gravity *GravityOptions, dpr float64, allowOverflow bool, )
processing/calc_position.go:9
↓ 3 callersMethodcheckAndDiscardPrefix
(prefix []byte)
xmlparser/decoder.go:685
↓ 3 callersMethodcheckImageSize
checkImageSize checks the image dimensions and number of frames against security options. It returns the image width, height and a security check erro
processing/processing.go:185
↓ 3 callersMethodclosedError
closedError returns an error if the attempt to read on a closed reader was made. If the reader had an error, it returns that error instead.
asyncbuffer/buffer.go:428
↓ 3 callersMethoderrorDocsURL
errorDocsURL checks if the error value implements [errctx.Error] and has a non-empty DocsURL. If so, it returns a slog.Attr containing the docs URL; o
logger/formatter_common.go:125
↓ 3 callersFunctiongetProtocol
getProtocol returns the specific protocol if set, otherwise falls back to the general protocol.
monitoring/otel/builders.go:55
↓ 3 callersFunctionhasMagicBytes
hasMagicBytes checks if the data matches a magic byte signature Supports '?' characters in signature which match any byte
imagetype/registry.go:186
↓ 3 callersMethodlevelName
levelName returns the string representation of a log level.
logger/formatter_pretty.go:115
↓ 3 callersMethodmustPeek
mustPeek peeks at the next n bytes without advancing the reader. If an error occurs, it sets d.err and returns false. If io.EOF is encountered, it set
xmlparser/decoder.go:828
↓ 3 callersMethodnestedMap
()
options/options.go:369
↓ 3 callersFunctionnewErrorContext
(stackSkip int, opts ...Option)
errctx/context.go:20
↓ 3 callersFunctionnewFormatterCommon
newHandlerFormatterCommon creates a new formatterCommon instance.
logger/formatter_common.go:25
↓ 3 callersFunctionnewInvalidURLErrorf
(docsUrl string, status int, format string, args ...any)
handlers/errors.go:41
↓ 3 callersFunctionnewPartialResponseError
(msg string)
fetcher/errors.go:70
↓ 3 callersFunctionnewSanitizeError
(err error)
processing/svg/errors.go:13
↓ 3 callersMethodparseFloat
parseFloat parses a float64 option value
options/parser/parse.go:55
↓ 3 callersMethodparseGravity
( ctx context.Context, o *options.Options, key string, allowedTypes []processing.GravityType, args ...str
options/parser/parse.go:342
↓ 3 callersMethodparseInt
parseInt parses a positive integer option value
options/parser/parse.go:118
↓ 3 callersFunctionprepareKeyCert
(str string)
monitoring/otel/config.go:165
↓ 3 callersMethodprocessImg
( imgIndex int, opts rotateAndFlipTestCase, )
processing/rotate_and_flip_test.go:50
↓ 3 callersMethodreadNSName
readNSName reads a name with optional namespace prefix (e.g., "svg:svg").
xmlparser/decoder.go:621
↓ 3 callersFunctionreplaceRemoteAddr
replaceRemoteAddr sets the req.RemoteAddr for request
server/router.go:254
↓ 3 callersMethodrunTestCases
(testCases []detectorTestCase)
clientfeatures/detector_test.go:33
↓ 3 callersMethodsaveSpecialAttr
saveSpecialAttr saves special attributes for later use. It returns true if the attribute was saved (meaning it was a special attribute).
logger/formatter_common.go:50
↓ 3 callersMethodsetCacheControl
setCacheControl sets the Cache-Control header with the specified value.
server/responsewriter/writer.go:155
↓ 3 callersMethodsetErr
(err error)
asyncbuffer/buffer.go:312
↓ 3 callersFunctiontestOptions
()
options/options_test.go:195
↓ 3 callersFunctionunmarshalEnv
unmarshalEnv loads environment variables from a string to process environment
env/load.go:61
↓ 3 callersMethodwrapError
(err error)
handlers/stream/handler.go:196
↓ 2 callersMethodAcquire
Acquire acquires a worker. It returns a worker release function and an error if any.
workers/workers.go:43
↓ 2 callersFunctionAddHook
(hook Hook)
logger/logger.go:48
↓ 2 callersMethodApplyWatermark
(wm *Image, left, top int, opacity float64)
vips/vips.go:867
↓ 2 callersMethodAutoRotate
()
processing/options.go:105
↓ 2 callersMethodBuildRequest
BuildRequest creates a new [Request] with the provided context, URL, headers, and cookie jar
fetcher/fetcher.go:38
↓ 2 callersFunctionCalcCropSize
CalcCropSize calculates the crop size based on the original size and crop scale.
processing/prepare.go:56
↓ 2 callersFunctionCleanup
()
vips/vips.go:128
↓ 2 callersMethodClient
Client returns the underlying ABS client for direct API access
storage/abs/storage_test.go:30
↓ 2 callersFunctionContentDispositionValue
ContentDispositionValue generates the content-disposition header value. It uses the following priorities: 1. By default, it uses the filename and ext
httpheaders/cdv.go:32
↓ 2 callersFunctionCopyFromRequest
CopyFromRequest copies specified headers from the http.Request to the provided header.
httpheaders/copy.go:32
↓ 2 callersFunctionCopyToRequest
CopyToRequest copies headers from the provided header to the http.Request.
httpheaders/copy.go:48
↓ 2 callersMethodCrop
(left, top, width, height int)
vips/vips.go:651
↓ 2 callersFunctionDateTime
DateTime defines date-time env var descriptor.
env/types.go:209
↓ 2 callersMethodDecImagesInProgress
DecImagesInProgress decrements the images in progress counter
monitoring/stats/stats.go:47
↓ 2 callersMethodDecodeURL
( ctx context.Context, parts []string, )
options/parser/url.go:81
↓ 2 callersMethodDump
()
imagemeta/iptc/iptc.go:108
↓ 2 callersMethodEmbed
(width, height int, offX, offY int)
vips/vips.go:856
↓ 2 callersMethodEnlarge
()
processing/options.go:69
↓ 2 callersMethodErrorReporter
()
handlers/processing/handler.go:37
↓ 2 callersFunctionEscapeURL
(u string)
fetcher/transport/url.go:8
↓ 2 callersMethodExecute
Execute handles the image passthrough request, streaming the image directly to the response writer
handlers/stream/handler.go:73
↓ 2 callersFunctionExtractGeometry
ExtractGeometry extracts image width, height, orientation angle and flip flag from the image metadata.
processing/prepare.go:11
↓ 2 callersFunctionFatal
(msg string, args ...any)
logger/logger.go:62
↓ 2 callersMethodFeatures
Features detects client features from HTTP headers
clientfeatures/detector.go:44
↓ 2 callersMethodFilterChildNodes
FilterChildNodes removes all child nodes of type *Node that do not satisfy the given predicate function.
xmlparser/node.go:43
↓ 2 callersMethodFlip
(horizontal, vertical bool)
vips/vips.go:635
↓ 2 callersMethodFlipHorizontal
()
processing/options.go:97
↓ 2 callersMethodFlipVertical
()
processing/options.go:101
↓ 2 callersFunctionFloat
Float defines float64 env var descriptor
env/types.go:61
↓ 2 callersFunctionFormatQuality
(format fmt.Stringer)
options/keys/keys.go:127
← previousnext →301–400 of 1,844, ranked by callers