MCPcopy Create free account

hub / github.com/imgproxy/imgproxy / functions

Functions1,844 in github.com/imgproxy/imgproxy

↓ 2 callersMethodWithFormat
WithFormat sets a custom format description for the env var
env/desc.go:59
↓ 2 callersFunctionWrapError
WrapError wraps generic error into fetcher-specific error types
fetcher/errors.go:155
↓ 2 callersMethodZoomHeight
()
processing/options.go:57
↓ 2 callersMethodZoomWidth
()
processing/options.go:53
↓ 2 callersFunctionanyToString
anyToString converts an any to a string for path building
testutil/equal_but_not_same.go:99
↓ 2 callersMethodappendAttribute
appendAttribute appends a single attribute to the buffer.
logger/formatter_json.go:114
↓ 2 callersMethodappendAttribute
appendAttribute appends a single attribute to the buffer.
logger/formatter_structured.go:84
↓ 2 callersMethodappendAttribute
appendAttribute appends a single attribute to the buffer.
logger/formatter_pretty.go:138
↓ 2 callersMethodappendAttributes
appendAttributes appends a list of attributes to the buffer.
logger/formatter_json.go:107
↓ 2 callersMethodappendAttributes
appendAttributes appends a list of attributes to the buffer.
logger/formatter_structured.go:77
↓ 2 callersMethodappendAttributes
appendAttributes appends a list of attributes to the buffer.
logger/formatter_pretty.go:131
↓ 2 callersMethodappendBool
appendBool appends a boolean value to the buffer.
logger/buffer.go:95
↓ 2 callersMethodappendStringQuoted
appendStringQuoted appends a string value to the buffer, escaping and quoting it as necessary.
logger/buffer.go:75
↓ 2 callersMethodappendUint
appendUint appends an unsigned integer value to the buffer.
logger/buffer.go:85
↓ 2 callersMethodapplyEnlargeOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:34
↓ 2 callersMethodapplyExtendOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:38
↓ 2 callersMethodapplyHeightOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:22
↓ 2 callersMethodapplyOptions
(opts ...Option)
errctx/context.go:84
↓ 2 callersMethodapplyResizingTypeOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:78
↓ 2 callersMethodapplySizeOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:46
↓ 2 callersMethodapplyWatermark
( ctx context.Context, img *vips.Image, po ProcessingOptions, offsetScale float64, framesCount int, )
processing/watermark.go:106
↓ 2 callersMethodapplyWidthOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:18
↓ 2 callersMethodbeforeWrite
beforeWrite is called before [WriteHeader] and [Write]
server/responsewriter/writer.go:219
↓ 2 callersFunctioncRGB
(c color.RGB)
vips/vips.go:222
↓ 2 callersMethodcalcSizes
(widthToScale, heightToScale int, po ProcessingOptions)
processing/prepare.go:175
↓ 2 callersMethodcallFinishFn
callFinishFn calls the finish functions registered with the AsyncBuffer.
asyncbuffer/buffer.go:302
↓ 2 callersMethodcloseGroup
closeGroup closes the most recently opened group in the buffer.
logger/formatter_json.go:248
↓ 2 callersMethodcloseGroup
closeGroup closes the most recently opened group of attributes.
logger/formatter_pretty.go:197
↓ 2 callersMethodcollectRotationsFlips
(imgIndex int, autoRotate bool)
processing/rotate_and_flip_test.go:76
↓ 2 callersMethodcountNewLines
countNewLines counts the number of new lines in the given byte slice and increments the decoder's line counter accordingly.
xmlparser/decoder.go:864
↓ 2 callersFunctioncreateClient
(conf aws.Config, opts []func(*s3.Options), config *Config)
storage/s3/storage.go:152
↓ 2 callersFunctioncropImage
(img *vips.Image, cropWidth, cropHeight int, gravity *GravityOptions, offsetScale float64)
processing/crop.go:8
↓ 2 callersMethoddefaultProcessingOptions
( ctx context.Context, features *clientfeatures.Features, )
options/parser/processing_options.go:145
↓ 2 callersFunctionextendImage
(c *Context, width, height int, gravity *GravityOptions)
processing/extend.go:3
↓ 2 callersMethodfetch
fetch ensures the buffer contains at least 'need' bytes
bufreader/bufreader.go:75
↓ 2 callersMethodflushNextChunk
flushNextChunk unlocks the reader, allowing it to return the next chunk of data
asyncbuffer/buffer_test.go:98
↓ 2 callersMethodformat
format formats a log record and writes it to the buffer.
logger/handler.go:174
↓ 2 callersFunctiongenerateErrorText
(err errctx.Error)
server/error_page.go:177
↓ 2 callersFunctiongetFreePort
getFreePort finds an available TCP port
storage/gcs/storage_test.go:57
↓ 2 callersMethodgetImageSize
getImageSize returns the width and height of the image, taking into account orientation and animation.
processing/processing.go:204
↓ 2 callersMethodgrow
grow ensures that the buffer has at least n free bytes of capacity. It grows the buffer to the next power of two if necessary.
xmlparser/buffer.go:83
↓ 2 callersFunctionhandleError
(err error)
storage/s3/storage.go:185
↓ 2 callersFunctionhexDecode
(hex)
examples/signature.js:6
↓ 2 callersFunctionhexDecode
(hex)
examples/signature-truncated.mjs:7
↓ 2 callersFunctionhexDecode
(hex)
examples/signature-cloudfront-functions.js:6
↓ 2 callersMethodhexStringToByteArray
(String hex)
examples/signature.java:39
↓ 2 callersMethodisGravityOffsetValid
( gravity processing.GravityType, offset float64, )
options/parser/parse.go:335
↓ 2 callersFunctionisSpace
isSpace checks if a byte is a whitespace character.
xmlparser/decoder.go:681
↓ 2 callersMethodmainPipeline
mainPipeline constructs the main image processing pipeline. This pipeline is applied to each image frame.
processing/processing.go:19
↓ 2 callersMethodmakeReq
helper creates a minimal request object with given config and optional headers
httpheaders/conditionalheaders/request_test.go:39
↓ 2 callersMethodmakeTargetPath
makeTargetPath creates the target directory and returns file path for saving the image or hash.
testutil/image_hash_cache_matcher.go:121
↓ 2 callersMethodmustPeekBuffered
mustPeekBuffered peeks at all currently buffered bytes without advancing the reader. If no bytes are buffered, it peeks at least 1 byte. If an error o
xmlparser/decoder.go:842
↓ 2 callersMethodmustReadWhileFn
mustReadWhileFn reads bytes to the buffer while the provided function returns true. The byte that causes the function to return false is not included
xmlparser/decoder.go:782
↓ 2 callersFunctionnewCountingReader
(r io.Reader)
asyncbuffer/buffer_test.go:31
↓ 2 callersFunctionnewFileSizeError
()
imagedata/errors.go:13
↓ 2 callersFunctionnewFormatterJSON
newFormatterJSON creates a new formatterJSON instance.
logger/formatter_json.go:29
↓ 2 callersFunctionnewImageResolutionError
(msg string)
security/errors.go:41
↓ 2 callersFunctionnewLoadOptions
(shrink float64, page, pages int)
vips/options.go:11
↓ 2 callersFunctionnewRegistry
newRegistry creates a new image type registry.
imagetype/registry.go:53
↓ 2 callersFunctionnewRequestError
(err error)
fetcher/errors.go:33
↓ 2 callersFunctionnewRequestTimeoutError
(err error)
fetcher/errors.go:126
↓ 2 callersFunctionnewSaveFormatError
(format imagetype.Type)
processing/errors.go:15
↓ 2 callersFunctionnewSignatureError
(msg string)
security/errors.go:17
↓ 2 callersFunctionnewVipsImgproxySource
newVipsSource creates a new VipsAsyncSource from an io.ReadSeeker.
vips/source.go:19
↓ 2 callersMethodoffsetAvailable
offsetAvailable checks if the data at the given offset is available for reading. It may return io.EOF if the reader is finished reading and the offset
asyncbuffer/buffer.go:444
↓ 2 callersMethodopenGroup
openGroup opens a new group in the buffer.
logger/formatter_json.go:239
↓ 2 callersMethodopenGroup
openGroup opens a new group of attributes.
logger/formatter_structured.go:135
↓ 2 callersMethodopenGroup
openGroup opens a new group of attributes.
logger/formatter_pretty.go:189
↓ 2 callersMethodparseExtend
( ctx context.Context, o *options.Options, key string, args []string, )
options/parser/parse.go:399
↓ 2 callersMethodparseGravityType
( ctx context.Context, o *options.Options, key string, allowedTypes []processing.GravityType, args ...str
options/parser/parse.go:310
↓ 2 callersMethodparseHexRGBColor
parseHexRGBColor parses a hex-encoded RGB color option value
options/parser/parse.go:267
↓ 2 callersMethodparseQualityInt
parseQualityInt parses a quality integer option value (minQ-100)
options/parser/parse.go:181
↓ 2 callersMethodparseResolution
parseResolution parses a resolution option value in megapixels and stores it as pixels
options/parser/parse.go:224
↓ 2 callersMethodparseURLOptions
(opts []string)
options/parser/url_options.go:12
↓ 2 callersMethodpeek
peek peeks at the next n bytes without advancing the reader. If an error occurs, it sets d.err and returns false.
xmlparser/decoder.go:816
↓ 2 callersMethodpreprocessURL
(u string)
options/parser/url.go:13
↓ 2 callersMethodreadChunkAt
readChunkAt copies data from the chunk at the given absolute offset to the provided slice. Chunk must be available when this method is called. Returns
asyncbuffer/buffer.go:476
↓ 2 callersMethodreadChunks
readChunks reads data from the upstream reader in background and stores them in the pool
asyncbuffer/buffer.go:343
↓ 2 callersMethodreadName
readName reads a name (tag or attribute) to the buffer until a non-name byte is encountered.
xmlparser/decoder.go:630
↓ 2 callersMethodreadTestFile
(name string)
processing/svg/svg_test.go:29
↓ 2 callersMethodreadUntil
readUntil reads bytes to the buffer until the specified delimiter byte is encountered. The delimiter byte is included in the buffer. If an error occur
xmlparser/decoder.go:742
↓ 2 callersMethodremoveColorCodes
()
logger/formatter_pretty_test.go:296
↓ 2 callersFunctionreplaceEntities
( data T, em map[string][]byte, indexFn func(T, byte) int, )
xmlparser/entities.go:67
↓ 2 callersMethodsendRequest
sendRequest is a common logic between sync and async download.
imagedata/factory.go:197
↓ 2 callersFunctionsetHeadersFromReader
(header http.Header, reader *gcs.Reader, size int64)
storage/gcs/reader.go:134
↓ 2 callersFunctionsetMetadata
setMetadata sets metadata on the given New Relic attributable entity
monitoring/newrelic/newrelic.go:93
↓ 2 callersFunctionsetMetadata
setMetadata sets metadata on the given DataDog span
monitoring/datadog/datadog.go:134
↓ 2 callersFunctionsetMetadata
setMetadata sets metadata on the given OpenTelemetry span
monitoring/otel/otel.go:279
↓ 2 callersMethodsetReader
setReader sets a new reader for the decoder, wrapping it in a bufio.Reader from the pool.
xmlparser/decoder.go:158
↓ 2 callersFunctionshouldReplicateWatermark
(gt GravityType)
processing/watermark.go:27
↓ 2 callersMethodstartDuration
startDuration starts a timer and returns a cancel function to record the duration
monitoring/prometheus/prometheus.go:220
↓ 2 callersMethodstartMonitoringSpan
( ctx context.Context, imageURL, desc string, )
imagedata/factory.go:247
↓ 2 callersMethodtestConditionalHeaders
(reqValue, resValue string, status int)
storage/testsuite/reader.go:178
↓ 2 callersFunctionvipsErrorMessage
vipsErrorMessage reads VIPS error message
testutil/vips.go:13
↓ 2 callersMethodwithGroup
withGroup returns a new handler with the given attribute group added.
logger/handler.go:227
↓ 2 callersMethodwriteChildrenTo
writeChildrenTo writes all child tokens of the node to the provided writer.
xmlparser/node.go:166
↓ 1 callersMethodAddCancel
AddCancel attaches a cancel function to the image data
imagedata/image_data.go:115
↓ 1 callersMethodAddHook
AddHook adds a new hook to the handler.
logger/handler.go:76
↓ 1 callersMethodAddTag
(key TagKey, data []byte)
imagemeta/iptc/iptc.go:14
↓ 1 callersMethodApplyFilters
(blurSigma, sharpSigma float64, pixelatePixels int)
vips/vips.go:707
← previousnext →501–600 of 1,844, ranked by callers