MCPcopy Create free account

hub / github.com/imgproxy/imgproxy / functions

Functions1,844 in github.com/imgproxy/imgproxy

↓ 1 callersMethodapplyCacheBusterOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:397
↓ 1 callersMethodapplyCropOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:131
↓ 1 callersMethodapplyDprOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:123
↓ 1 callersMethodapplyEnforceThumbnailOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:489
↓ 1 callersMethodapplyExpiresOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:450
↓ 1 callersMethodapplyExtendAspectRatioOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:42
↓ 1 callersMethodapplyFilenameOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:434
↓ 1 callersMethodapplyFlipOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:237
↓ 1 callersMethodapplyFormatQualityOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:261
↓ 1 callersMethodapplyGravityOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:127
↓ 1 callersMethodapplyKeepCopyrightOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:473
↓ 1 callersMethodapplyMaxAnimationFrameResolutionOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:521
↓ 1 callersMethodapplyMaxAnimationFramesOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:513
↓ 1 callersMethodapplyMaxBytesOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:287
↓ 1 callersMethodapplyMaxResultDimensionOption
( ctx context.Context, o *options.Options, args []string, )
options/parser/apply.go:529
↓ 1 callersMethodapplyMaxSrcFileSizeOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:505
↓ 1 callersMethodapplyMaxSrcResolutionOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:497
↓ 1 callersMethodapplyMinHeightOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:30
↓ 1 callersMethodapplyMinWidthOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:26
↓ 1 callersMethodapplyPaddingOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:149
↓ 1 callersMethodapplyPixelateOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:341
↓ 1 callersMethodapplyPreserveHDROption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:481
↓ 1 callersMethodapplyQualityOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:257
↓ 1 callersMethodapplyRawOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:430
↓ 1 callersMethodapplyResizeOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:82
↓ 1 callersMethodapplyReturnAttachmentOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:493
↓ 1 callersMethodapplyRotateOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:225
↓ 1 callersMethodapplySharpenOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:337
↓ 1 callersMethodapplySkipProcessingFormatsOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:412
↓ 1 callersMethodapplyStripColorProfileOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:477
↓ 1 callersMethodapplyStripMetadataOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:469
↓ 1 callersMethodapplyTrimOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:187
↓ 1 callersMethodapplyURLOption
( ctx context.Context, o *options.Options, name string, args []string, usedPresets ...string, )
options/parser/processing_options.go:16
↓ 1 callersMethodapplyWatermarkOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:345
↓ 1 callersMethodapplyZoomOption
(ctx context.Context, o *options.Options, args []string)
options/parser/apply.go:102
↓ 1 callersFunctionbuildEtag
(path string, fi fs.FileInfo)
storage/fs/reader.go:114
↓ 1 callersFunctionbuildExporters
buildExporters builds trace, metric, and log exporters based on the provided configuration.
monitoring/otel/builders.go:29
↓ 1 callersFunctionbuildGRPCLogExporter
buildGRPCLogExporter builds a GRPC log exporter based on the provided configuration.
monitoring/otel/builders.go:243
↓ 1 callersFunctionbuildGRPCMetricExporter
buildGRPCMetricExporter builds a GRPC metric exporter based on the provided configuration.
monitoring/otel/builders.go:136
↓ 1 callersFunctionbuildGRPCTraceExporter
buildGRPCTraceExporter builds a GRPC trace exporter based on the provided configuration.
monitoring/otel/builders.go:113
↓ 1 callersFunctionbuildHTTPLogExporter
buildHTTPLogExporter builds an HTTP log exporter based on the provided configuration.
monitoring/otel/builders.go:266
↓ 1 callersFunctionbuildHTTPMetricExporter
buildHTTPMetricExporter builds an HTTP metric exporter based on the provided configuration.
monitoring/otel/builders.go:181
↓ 1 callersFunctionbuildHTTPTraceExporter
buildHTTPTraceExporter builds an HTTP trace exporter based on the provided configuration.
monitoring/otel/builders.go:159
↓ 1 callersFunctionbuildLogExporter
buildLogExporter builds a log exporter based on the protocol in the configuration.
monitoring/otel/builders.go:95
↓ 1 callersFunctionbuildMetricExporter
buildMetricExporter builds a metric exporter based on the protocol in the configuration.
monitoring/otel/builders.go:77
↓ 1 callersFunctionbuildStackTrace
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 callersFunctionbuildTLSConfig
buildTLSConfig constructs a tls.Config based on the provided configuration.
monitoring/otel/builders.go:203
↓ 1 callersFunctionbuildTraceExporter
buildTraceExporter builds a trace exporter based on the protocol in the configuration.
monitoring/otel/builders.go:63
↓ 1 callersMethodcalcDct2Hash
calcDct2Hash calculates the DCT hash for the given image data buffer
testutil/image_hash.go:179
↓ 1 callersFunctioncalcJpegShink
(shrink float64)
processing/scale_on_load.go:30
↓ 1 callersMethodcalcScale
(width, height int, po ProcessingOptions)
processing/prepare.go:67
↓ 1 callersMethodcalcSha256Hash
calcSha256Hash calculates the SHA-256 hash for the given image data buffer
testutil/image_hash.go:258
↓ 1 callersMethodcalculateHash
calculateHash converts image data to RGBA using VIPS and calculates hash
testutil/image_hash_cache_matcher.go:109
↓ 1 callersFunctioncallWithClient
callWithClient is a helper function to call S3 client method with automatic region error handling
storage/s3/storage.go:200
↓ 1 callersFunctioncallers
callers returns the stack trace, skipping the specified number of frames.
errctx/context.go:93
↓ 1 callersMethodcanScaleOnLoad
(c *Context, shrink float64)
processing/scale_on_load.go:12
↓ 1 callersMethodcheckBOM
checkBOM checks for a Byte Order Mark (BOM) at the start of the stream and adjusts the reader accordingly.
xmlparser/decoder.go:181
↓ 1 callersFunctioncheckPartialContentResponse
checkPartialContentResponse if the response is a partial content response, we check if it contains the entire image.
fetcher/request.go:122
↓ 1 callersMethodcloseGroup
closeGroup closes the most recently opened group of attributes.
logger/formatter_structured.go:141
↓ 1 callersMethodcolorspaceToProcessing
(c *Context)
processing/colorspace_to_processing.go:7
↓ 1 callersMethodcompare
(expected, actual imagedata.ImageData)
processing/svg/svg_test.go:34
↓ 1 callersMethodcomputeEtag
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 callersMethodcomputeIfModifiedSince
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 callersMethodcreateBucketClient
(bucket, region string)
storage/s3/storage.go:124
↓ 1 callersMethodcreateRequest
(path string)
handlers/path_test.go:21
↓ 1 callersMethoddctHashDistance
dctHashDistance calculates the distance between two DCT hashes
testutil/image_hash.go:242
↓ 1 callersMethoddecodeBase64URL
(ctx context.Context, parts []string)
options/parser/url.go:25
↓ 1 callersMethoddecodePlainURL
(ctx context.Context, parts []string)
options/parser/url.go:55
↓ 1 callersFunctiondeepEqual
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 callersFunctiondetectContentType
detectContentType detects the content type of a file by mime or extension
storage/fs/reader.go:121
↓ 1 callersMethoddetermineOutputFormat
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 callersMethoddocsUrl
docsUrl returns the documentation URL for the env var
env/desc.go:109
↓ 1 callersMethoddumpDctHash
dumpDctHash writes the DCT hash to a writer
testutil/image_hash.go:212
↓ 1 callersFunctionencrypt
(target, key)
examples/encrypted_source_url.js:8
↓ 1 callersFunctionerrorKey
(key string)
options/parser/errors.go:97
↓ 1 callersMethodexecute
execute handles the actual streaming logic
handlers/stream/handler.go:94
↓ 1 callersMethodexecute
execute handles the actual processing logic
handlers/processing/request.go:36
↓ 1 callersFunctionextractErraticBody
extractErraticBody extracts the error body from the response if it is a text-based content type
fetcher/request.go:150
↓ 1 callersMethodfetchImage
fetchImage downloads the source image asynchronously
handlers/processing/request_methods.go:69
↓ 1 callersMethodfinalizePipeline
finalizePipeline constructs the finalization pipeline. This pipeline is applied before saving the image.
processing/processing.go:41
↓ 1 callersMethodfindPreferredFormat
findPreferredFormat finds a suitable preferred format based on image's properties.
processing/processing.go:352
↓ 1 callersFunctionfindProjectRoot
findProjectRoot finds the absolute path to the project root by looking for go.mod
testutil/test_data_provider.go:43
↓ 1 callersFunctionfixGifSize
(img *vips.Image)
processing/fix_size.go:60
↓ 1 callersFunctionfixHeifSize
(img *vips.Image)
processing/fix_size.go:40
↓ 1 callersFunctionfixIcoSize
(img *vips.Image)
processing/fix_size.go:84
↓ 1 callersFunctionfixWebpSize
(img *vips.Image)
processing/fix_size.go:20
↓ 1 callersMethodflush
flush unlocks the reader, allowing it to return all data as usual
asyncbuffer/buffer_test.go:103
↓ 1 callersMethodflushHeaders
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 callersFunctiongenerateErrorHTML
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 callersMethodgetBucketClient
(bucket string)
storage/s3/storage.go:108
↓ 1 callersFunctiongetBuildInfo
getBuildInfo returns the Go version and Git commit hash.
server/error_page.go:131
↓ 1 callersMethodgetColor
getColor returns the terminal color sequences for a given log level.
logger/formatter_pretty.go:101
↓ 1 callersMethodgetCookieJar
getCookieJar returns non-empty cookie jar if cookie passthrough is enabled
handlers/stream/handler.go:146
↓ 1 callersMethodgetFallbackImage
getFallbackImage returns fallback image if any
handlers/processing/request_methods.go:127
↓ 1 callersMethodgetImageRequestHeaders
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 callersMethodgetRequestID
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 callersFunctionguessTargetColorspace
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 callersMethodhandleDownloadError
handleDownloadError replaces the image data with fallback image if needed
handlers/processing/request_methods.go:82
↓ 1 callersFunctionhandleError
(err error)
storage/gcs/reader.go:126
↓ 1 callersMethodhandleProcInstEncoding
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
← previousnext →901–1,000 of 1,844, ranked by callers