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
↓ 1 callers
Method
applyCacheBusterOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:397
↓ 1 callers
Method
applyCropOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:131
↓ 1 callers
Method
applyDprOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:123
↓ 1 callers
Method
applyEnforceThumbnailOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:489
↓ 1 callers
Method
applyExpiresOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:450
↓ 1 callers
Method
applyExtendAspectRatioOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:42
↓ 1 callers
Method
applyFilenameOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:434
↓ 1 callers
Method
applyFlipOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:237
↓ 1 callers
Method
applyFormatQualityOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:261
↓ 1 callers
Method
applyGravityOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:127
↓ 1 callers
Method
applyKeepCopyrightOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:473
↓ 1 callers
Method
applyMaxAnimationFrameResolutionOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:521
↓ 1 callers
Method
applyMaxAnimationFramesOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:513
↓ 1 callers
Method
applyMaxBytesOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:287
↓ 1 callers
Method
applyMaxResultDimensionOption
( ctx context.Context, o *options.Options, args []string, )
options/parser/apply.go:529
↓ 1 callers
Method
applyMaxSrcFileSizeOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:505
↓ 1 callers
Method
applyMaxSrcResolutionOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:497
↓ 1 callers
Method
applyMinHeightOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:30
↓ 1 callers
Method
applyMinWidthOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:26
↓ 1 callers
Method
applyPaddingOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:149
↓ 1 callers
Method
applyPixelateOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:341
↓ 1 callers
Method
applyPreserveHDROption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:481
↓ 1 callers
Method
applyQualityOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:257
↓ 1 callers
Method
applyRawOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:430
↓ 1 callers
Method
applyResizeOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:82
↓ 1 callers
Method
applyReturnAttachmentOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:493
↓ 1 callers
Method
applyRotateOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:225
↓ 1 callers
Method
applySharpenOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:337
↓ 1 callers
Method
applySkipProcessingFormatsOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:412
↓ 1 callers
Method
applyStripColorProfileOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:477
↓ 1 callers
Method
applyStripMetadataOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:469
↓ 1 callers
Method
applyTrimOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:187
↓ 1 callers
Method
applyURLOption
( ctx context.Context, o *options.Options, name string, args []string, usedPresets ...string, )
options/parser/processing_options.go:16
↓ 1 callers
Method
applyWatermarkOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:345
↓ 1 callers
Method
applyZoomOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:102
↓ 1 callers
Function
buildEtag
(path string, fi fs.FileInfo)
storage/fs/reader.go:114
↓ 1 callers
Function
buildExporters
buildExporters builds trace, metric, and log exporters based on the provided configuration.
monitoring/otel/builders.go:29
↓ 1 callers
Function
buildGRPCLogExporter
buildGRPCLogExporter builds a GRPC log exporter based on the provided configuration.
monitoring/otel/builders.go:243
↓ 1 callers
Function
buildGRPCMetricExporter
buildGRPCMetricExporter builds a GRPC metric exporter based on the provided configuration.
monitoring/otel/builders.go:136
↓ 1 callers
Function
buildGRPCTraceExporter
buildGRPCTraceExporter builds a GRPC trace exporter based on the provided configuration.
monitoring/otel/builders.go:113
↓ 1 callers
Function
buildHTTPLogExporter
buildHTTPLogExporter builds an HTTP log exporter based on the provided configuration.
monitoring/otel/builders.go:266
↓ 1 callers
Function
buildHTTPMetricExporter
buildHTTPMetricExporter builds an HTTP metric exporter based on the provided configuration.
monitoring/otel/builders.go:181
↓ 1 callers
Function
buildHTTPTraceExporter
buildHTTPTraceExporter builds an HTTP trace exporter based on the provided configuration.
monitoring/otel/builders.go:159
↓ 1 callers
Function
buildLogExporter
buildLogExporter builds a log exporter based on the protocol in the configuration.
monitoring/otel/builders.go:95
↓ 1 callers
Function
buildMetricExporter
buildMetricExporter builds a metric exporter based on the protocol in the configuration.
monitoring/otel/builders.go:77
↓ 1 callers
Function
buildStackTrace
buildStackTrace gets the stack trace from the outermost error and marks which frames correspond to which errors in the chain.
server/error_page.go:91
↓ 1 callers
Function
buildTLSConfig
buildTLSConfig constructs a tls.Config based on the provided configuration.
monitoring/otel/builders.go:203
↓ 1 callers
Function
buildTraceExporter
buildTraceExporter builds a trace exporter based on the protocol in the configuration.
monitoring/otel/builders.go:63
↓ 1 callers
Method
calcDct2Hash
calcDct2Hash calculates the DCT hash for the given image data buffer
testutil/image_hash.go:179
↓ 1 callers
Function
calcJpegShink
(shrink float64)
processing/scale_on_load.go:30
↓ 1 callers
Method
calcScale
(width, height int, po ProcessingOptions)
processing/prepare.go:67
↓ 1 callers
Method
calcSha256Hash
calcSha256Hash calculates the SHA-256 hash for the given image data buffer
testutil/image_hash.go:258
↓ 1 callers
Method
calculateHash
calculateHash converts image data to RGBA using VIPS and calculates hash
testutil/image_hash_cache_matcher.go:109
↓ 1 callers
Function
callWithClient
callWithClient is a helper function to call S3 client method with automatic region error handling
storage/s3/storage.go:200
↓ 1 callers
Function
callers
callers returns the stack trace, skipping the specified number of frames.
errctx/context.go:93
↓ 1 callers
Method
canScaleOnLoad
(c *Context, shrink float64)
processing/scale_on_load.go:12
↓ 1 callers
Method
checkBOM
checkBOM checks for a Byte Order Mark (BOM) at the start of the stream and adjusts the reader accordingly.
xmlparser/decoder.go:181
↓ 1 callers
Function
checkPartialContentResponse
checkPartialContentResponse if the response is a partial content response, we check if it contains the entire image.
fetcher/request.go:122
↓ 1 callers
Method
closeGroup
closeGroup closes the most recently opened group of attributes.
logger/formatter_structured.go:141
↓ 1 callers
Method
colorspaceToProcessing
(c *Context)
processing/colorspace_to_processing.go:7
↓ 1 callers
Method
compare
(expected, actual imagedata.ImageData)
processing/svg/svg_test.go:34
↓ 1 callers
Method
computeEtag
computeEtag determines whether the If-None-Match header should be sent to the source image server. It returns etag value to be set and boolean indicat
httpheaders/conditionalheaders/request.go:95
↓ 1 callers
Method
computeIfModifiedSince
computeIfModifiedSince determines whether the If-Modified-Since header should be sent to the source image server. It returns value to be set (if any)
httpheaders/conditionalheaders/request.go:67
↓ 1 callers
Method
createBucketClient
(bucket, region string)
storage/s3/storage.go:124
↓ 1 callers
Method
createRequest
(path string)
handlers/path_test.go:21
↓ 1 callers
Method
dctHashDistance
dctHashDistance calculates the distance between two DCT hashes
testutil/image_hash.go:242
↓ 1 callers
Method
decodeBase64URL
(ctx context.Context, parts []string)
options/parser/url.go:25
↓ 1 callers
Method
decodePlainURL
(ctx context.Context, parts []string)
options/parser/url.go:55
↓ 1 callers
Function
deepEqual
deepEqual recursively verifies that all values are equal but pointers are different except for the Expires field which is explicitly allowed to be sha
testutil/equal_but_not_same.go:24
↓ 1 callers
Function
detectContentType
detectContentType detects the content type of a file by mime or extension
storage/fs/reader.go:121
↓ 1 callers
Method
determineOutputFormat
determineOutputFormat determines the output image format based on the processing options and image properties. It modifies the ProcessingOptions in p
processing/processing.go:284
↓ 1 callers
Method
docsUrl
docsUrl returns the documentation URL for the env var
env/desc.go:109
↓ 1 callers
Method
dumpDctHash
dumpDctHash writes the DCT hash to a writer
testutil/image_hash.go:212
↓ 1 callers
Function
encrypt
(target, key)
examples/encrypted_source_url.js:8
↓ 1 callers
Function
errorKey
(key string)
options/parser/errors.go:97
↓ 1 callers
Method
execute
execute handles the actual streaming logic
handlers/stream/handler.go:94
↓ 1 callers
Method
execute
execute handles the actual processing logic
handlers/processing/request.go:36
↓ 1 callers
Function
extractErraticBody
extractErraticBody extracts the error body from the response if it is a text-based content type
fetcher/request.go:150
↓ 1 callers
Method
fetchImage
fetchImage downloads the source image asynchronously
handlers/processing/request_methods.go:69
↓ 1 callers
Method
finalizePipeline
finalizePipeline constructs the finalization pipeline. This pipeline is applied before saving the image.
processing/processing.go:41
↓ 1 callers
Method
findPreferredFormat
findPreferredFormat finds a suitable preferred format based on image's properties.
processing/processing.go:352
↓ 1 callers
Function
findProjectRoot
findProjectRoot finds the absolute path to the project root by looking for go.mod
testutil/test_data_provider.go:43
↓ 1 callers
Function
fixGifSize
(img *vips.Image)
processing/fix_size.go:60
↓ 1 callers
Function
fixHeifSize
(img *vips.Image)
processing/fix_size.go:40
↓ 1 callers
Function
fixIcoSize
(img *vips.Image)
processing/fix_size.go:84
↓ 1 callers
Function
fixWebpSize
(img *vips.Image)
processing/fix_size.go:20
↓ 1 callers
Method
flush
flush unlocks the reader, allowing it to return all data as usual
asyncbuffer/buffer_test.go:103
↓ 1 callers
Method
flushHeaders
flushHeaders writes the headers to the response writer. It does not overwrite target headers, which were set outside the header writer.
server/responsewriter/writer.go:198
↓ 1 callers
Function
generateErrorHTML
generateErrorHTML renders the error page template with the given error information. It returns the generated HTML as a byte slice and a Content-Type s
server/error_page.go:150
↓ 1 callers
Method
getBucketClient
(bucket string)
storage/s3/storage.go:108
↓ 1 callers
Function
getBuildInfo
getBuildInfo returns the Go version and Git commit hash.
server/error_page.go:131
↓ 1 callers
Method
getColor
getColor returns the terminal color sequences for a given log level.
logger/formatter_pretty.go:101
↓ 1 callers
Method
getCookieJar
getCookieJar returns non-empty cookie jar if cookie passthrough is enabled
handlers/stream/handler.go:146
↓ 1 callers
Method
getFallbackImage
getFallbackImage returns fallback image if any
handlers/processing/request_methods.go:127
↓ 1 callers
Method
getImageRequestHeaders
getImageRequestHeaders returns a new http.Header containing only the headers that should be passed through from the user request
handlers/stream/handler.go:152
↓ 1 callers
Method
getRequestID
getRequestID tries to read request id from headers or from lambda context or generates a new one if nothing found.
server/router.go:208
↓ 1 callers
Function
guessTargetColorspace
guessTargetColorspace returns the colorspace to which the image should be saved. If target format supports 16-bit colorspace, it will be preferred.
processing/colorspace_to_processing.go:37
↓ 1 callers
Method
handleDownloadError
handleDownloadError replaces the image data with fallback image if needed
handlers/processing/request_methods.go:82
↓ 1 callers
Function
handleError
(err error)
storage/gcs/reader.go:126
↓ 1 callers
Method
handleProcInstEncoding
handleProcInstEncoding replaces the encoding declaration in the processing instruction data with "UTF-8" and returns the updated data. It also recreat
xmlparser/decoder.go:456
← previous
next →
901–1,000 of 1,844, ranked by callers