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
↓ 2 callers
Method
WithFormat
WithFormat sets a custom format description for the env var
env/desc.go:59
↓ 2 callers
Function
WrapError
WrapError wraps generic error into fetcher-specific error types
fetcher/errors.go:155
↓ 2 callers
Method
ZoomHeight
()
processing/options.go:57
↓ 2 callers
Method
ZoomWidth
()
processing/options.go:53
↓ 2 callers
Function
anyToString
anyToString converts an any to a string for path building
testutil/equal_but_not_same.go:99
↓ 2 callers
Method
appendAttribute
appendAttribute appends a single attribute to the buffer.
logger/formatter_json.go:114
↓ 2 callers
Method
appendAttribute
appendAttribute appends a single attribute to the buffer.
logger/formatter_structured.go:84
↓ 2 callers
Method
appendAttribute
appendAttribute appends a single attribute to the buffer.
logger/formatter_pretty.go:138
↓ 2 callers
Method
appendAttributes
appendAttributes appends a list of attributes to the buffer.
logger/formatter_json.go:107
↓ 2 callers
Method
appendAttributes
appendAttributes appends a list of attributes to the buffer.
logger/formatter_structured.go:77
↓ 2 callers
Method
appendAttributes
appendAttributes appends a list of attributes to the buffer.
logger/formatter_pretty.go:131
↓ 2 callers
Method
appendBool
appendBool appends a boolean value to the buffer.
logger/buffer.go:95
↓ 2 callers
Method
appendStringQuoted
appendStringQuoted appends a string value to the buffer, escaping and quoting it as necessary.
logger/buffer.go:75
↓ 2 callers
Method
appendUint
appendUint appends an unsigned integer value to the buffer.
logger/buffer.go:85
↓ 2 callers
Method
applyEnlargeOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:34
↓ 2 callers
Method
applyExtendOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:38
↓ 2 callers
Method
applyHeightOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:22
↓ 2 callers
Method
applyOptions
(opts ...Option)
errctx/context.go:84
↓ 2 callers
Method
applyResizingTypeOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:78
↓ 2 callers
Method
applySizeOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:46
↓ 2 callers
Method
applyWatermark
( ctx context.Context, img *vips.Image, po ProcessingOptions, offsetScale float64, framesCount int, )
processing/watermark.go:106
↓ 2 callers
Method
applyWidthOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:18
↓ 2 callers
Method
beforeWrite
beforeWrite is called before [WriteHeader] and [Write]
server/responsewriter/writer.go:219
↓ 2 callers
Function
cRGB
(c color.RGB)
vips/vips.go:222
↓ 2 callers
Method
calcSizes
(widthToScale, heightToScale int, po ProcessingOptions)
processing/prepare.go:175
↓ 2 callers
Method
callFinishFn
callFinishFn calls the finish functions registered with the AsyncBuffer.
asyncbuffer/buffer.go:302
↓ 2 callers
Method
closeGroup
closeGroup closes the most recently opened group in the buffer.
logger/formatter_json.go:248
↓ 2 callers
Method
closeGroup
closeGroup closes the most recently opened group of attributes.
logger/formatter_pretty.go:197
↓ 2 callers
Method
collectRotationsFlips
(imgIndex int, autoRotate bool)
processing/rotate_and_flip_test.go:76
↓ 2 callers
Method
countNewLines
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 callers
Function
createClient
(conf aws.Config, opts []func(*s3.Options), config *Config)
storage/s3/storage.go:152
↓ 2 callers
Function
cropImage
(img *vips.Image, cropWidth, cropHeight int, gravity *GravityOptions, offsetScale float64)
processing/crop.go:8
↓ 2 callers
Method
defaultProcessingOptions
( ctx context.Context, features *clientfeatures.Features, )
options/parser/processing_options.go:145
↓ 2 callers
Function
extendImage
(c *Context, width, height int, gravity *GravityOptions)
processing/extend.go:3
↓ 2 callers
Method
fetch
fetch ensures the buffer contains at least 'need' bytes
bufreader/bufreader.go:75
↓ 2 callers
Method
flushNextChunk
flushNextChunk unlocks the reader, allowing it to return the next chunk of data
asyncbuffer/buffer_test.go:98
↓ 2 callers
Method
format
format formats a log record and writes it to the buffer.
logger/handler.go:174
↓ 2 callers
Function
generateErrorText
(err errctx.Error)
server/error_page.go:177
↓ 2 callers
Function
getFreePort
getFreePort finds an available TCP port
storage/gcs/storage_test.go:57
↓ 2 callers
Method
getImageSize
getImageSize returns the width and height of the image, taking into account orientation and animation.
processing/processing.go:204
↓ 2 callers
Method
grow
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 callers
Function
handleError
(err error)
storage/s3/storage.go:185
↓ 2 callers
Function
hexDecode
(hex)
examples/signature.js:6
↓ 2 callers
Function
hexDecode
(hex)
examples/signature-truncated.mjs:7
↓ 2 callers
Function
hexDecode
(hex)
examples/signature-cloudfront-functions.js:6
↓ 2 callers
Method
hexStringToByteArray
(String hex)
examples/signature.java:39
↓ 2 callers
Method
isGravityOffsetValid
( gravity processing.GravityType, offset float64, )
options/parser/parse.go:335
↓ 2 callers
Function
isSpace
isSpace checks if a byte is a whitespace character.
xmlparser/decoder.go:681
↓ 2 callers
Method
mainPipeline
mainPipeline constructs the main image processing pipeline. This pipeline is applied to each image frame.
processing/processing.go:19
↓ 2 callers
Method
makeReq
helper creates a minimal request object with given config and optional headers
httpheaders/conditionalheaders/request_test.go:39
↓ 2 callers
Method
makeTargetPath
makeTargetPath creates the target directory and returns file path for saving the image or hash.
testutil/image_hash_cache_matcher.go:121
↓ 2 callers
Method
mustPeekBuffered
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 callers
Method
mustReadWhileFn
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 callers
Function
newCountingReader
(r io.Reader)
asyncbuffer/buffer_test.go:31
↓ 2 callers
Function
newFileSizeError
()
imagedata/errors.go:13
↓ 2 callers
Function
newFormatterJSON
newFormatterJSON creates a new formatterJSON instance.
logger/formatter_json.go:29
↓ 2 callers
Function
newImageResolutionError
(msg string)
security/errors.go:41
↓ 2 callers
Function
newLoadOptions
(shrink float64, page, pages int)
vips/options.go:11
↓ 2 callers
Function
newRegistry
newRegistry creates a new image type registry.
imagetype/registry.go:53
↓ 2 callers
Function
newRequestError
(err error)
fetcher/errors.go:33
↓ 2 callers
Function
newRequestTimeoutError
(err error)
fetcher/errors.go:126
↓ 2 callers
Function
newSaveFormatError
(format imagetype.Type)
processing/errors.go:15
↓ 2 callers
Function
newSignatureError
(msg string)
security/errors.go:17
↓ 2 callers
Function
newVipsImgproxySource
newVipsSource creates a new VipsAsyncSource from an io.ReadSeeker.
vips/source.go:19
↓ 2 callers
Method
offsetAvailable
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 callers
Method
openGroup
openGroup opens a new group in the buffer.
logger/formatter_json.go:239
↓ 2 callers
Method
openGroup
openGroup opens a new group of attributes.
logger/formatter_structured.go:135
↓ 2 callers
Method
openGroup
openGroup opens a new group of attributes.
logger/formatter_pretty.go:189
↓ 2 callers
Method
parseExtend
( ctx context.Context, o *options.Options, key string, args []string, )
options/parser/parse.go:399
↓ 2 callers
Method
parseGravityType
( ctx context.Context, o *options.Options, key string, allowedTypes []processing.GravityType, args ...str
options/parser/parse.go:310
↓ 2 callers
Method
parseHexRGBColor
parseHexRGBColor parses a hex-encoded RGB color option value
options/parser/parse.go:267
↓ 2 callers
Method
parseQualityInt
parseQualityInt parses a quality integer option value (minQ-100)
options/parser/parse.go:181
↓ 2 callers
Method
parseResolution
parseResolution parses a resolution option value in megapixels and stores it as pixels
options/parser/parse.go:224
↓ 2 callers
Method
parseURLOptions
(opts []string)
options/parser/url_options.go:12
↓ 2 callers
Method
peek
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 callers
Method
preprocessURL
(u string)
options/parser/url.go:13
↓ 2 callers
Method
readChunkAt
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 callers
Method
readChunks
readChunks reads data from the upstream reader in background and stores them in the pool
asyncbuffer/buffer.go:343
↓ 2 callers
Method
readName
readName reads a name (tag or attribute) to the buffer until a non-name byte is encountered.
xmlparser/decoder.go:630
↓ 2 callers
Method
readTestFile
(name string)
processing/svg/svg_test.go:29
↓ 2 callers
Method
readUntil
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 callers
Method
removeColorCodes
()
logger/formatter_pretty_test.go:296
↓ 2 callers
Function
replaceEntities
( data T, em map[string][]byte, indexFn func(T, byte) int, )
xmlparser/entities.go:67
↓ 2 callers
Method
sendRequest
sendRequest is a common logic between sync and async download.
imagedata/factory.go:197
↓ 2 callers
Function
setHeadersFromReader
(header http.Header, reader *gcs.Reader, size int64)
storage/gcs/reader.go:134
↓ 2 callers
Function
setMetadata
setMetadata sets metadata on the given New Relic attributable entity
monitoring/newrelic/newrelic.go:93
↓ 2 callers
Function
setMetadata
setMetadata sets metadata on the given DataDog span
monitoring/datadog/datadog.go:134
↓ 2 callers
Function
setMetadata
setMetadata sets metadata on the given OpenTelemetry span
monitoring/otel/otel.go:279
↓ 2 callers
Method
setReader
setReader sets a new reader for the decoder, wrapping it in a bufio.Reader from the pool.
xmlparser/decoder.go:158
↓ 2 callers
Function
shouldReplicateWatermark
(gt GravityType)
processing/watermark.go:27
↓ 2 callers
Method
startDuration
startDuration starts a timer and returns a cancel function to record the duration
monitoring/prometheus/prometheus.go:220
↓ 2 callers
Method
startMonitoringSpan
( ctx context.Context, imageURL, desc string, )
imagedata/factory.go:247
↓ 2 callers
Method
testConditionalHeaders
(reqValue, resValue string, status int)
storage/testsuite/reader.go:178
↓ 2 callers
Function
vipsErrorMessage
vipsErrorMessage reads VIPS error message
testutil/vips.go:13
↓ 2 callers
Method
withGroup
withGroup returns a new handler with the given attribute group added.
logger/handler.go:227
↓ 2 callers
Method
writeChildrenTo
writeChildrenTo writes all child tokens of the node to the provided writer.
xmlparser/node.go:166
↓ 1 callers
Method
AddCancel
AddCancel attaches a cancel function to the image data
imagedata/image_data.go:115
↓ 1 callers
Method
AddHook
AddHook adds a new hook to the handler.
logger/handler.go:76
↓ 1 callers
Method
AddTag
(key TagKey, data []byte)
imagemeta/iptc/iptc.go:14
↓ 1 callers
Method
ApplyFilters
(blurSigma, sharpSigma float64, pixelatePixels int)
vips/vips.go:707
← previous
next →
501–600 of 1,844, ranked by callers