MCPcopy Create free account

hub / github.com/imgproxy/imgproxy / functions

Functions1,844 in github.com/imgproxy/imgproxy

↓ 1 callersMethodinitialLoadImage
initialLoadImage loads a single page/frame of the image. If the image format supports thumbnails and thumbnail loading is enforced, it tries to load t
processing/processing.go:148
↓ 1 callersMethodinjectEtagHeader
injectEtagHeader injects the ETag header into the user response
httpheaders/conditionalheaders/request.go:155
↓ 1 callersMethodinjectLastModifiedHeader
injectLastModifiedHeader injects the Last-Modified header into the user response
httpheaders/conditionalheaders/request.go:128
↓ 1 callersMethodisImageTypeCompatible
isImageTypeCompatible checks if the given image type is compatible with the image properties.
processing/processing.go:336
↓ 1 callersMethodisImageTypePreferred
isImageTypePreferred checks if the given image type is in the list of preferred formats.
processing/processing.go:331
↓ 1 callersMethodisMatch
isMatch checks that a request matches route
server/router.go:271
↓ 1 callersMethodisStringQuoteSafe
isStringQuoteSafe checks if a string is safe to append without quoting.
logger/buffer.go:114
↓ 1 callersMethodisStringSafe
isStringSafe checks if a string is safe to append without escaping.
logger/formatter_json.go:181
↓ 1 callersMethodjoinErrors
(errs []error)
logger/handler.go:201
↓ 1 callersMethodlen
len returns the number of bytes written to the buffer.
logger/buffer.go:49
↓ 1 callersFunctionlimitResponseSize
limitResponseSize limits the size of the response body to MaxSrcFileSize (if set). First, it tries to use Content-Length header to check the limit. If
imagedata/response_limit.go:35
↓ 1 callersMethodlimitScale
(widthToScale, heightToScale int, po ProcessingOptions)
processing/prepare.go:223
↓ 1 callersFunctionloadAWSSecret
(ctx context.Context)
env/aws.go:30
↓ 1 callersFunctionloadAWSSystemManagerParams
loadAWSSystemManagerParams loads environment variables from AWS System Manager
env/aws.go:84
↓ 1 callersMethodloadDctHash
loadDctHash reads a DCT hash from a reader
testutil/image_hash.go:227
↓ 1 callersFunctionloadGCPSecret
(ctx context.Context)
env/gcp.go:21
↓ 1 callersFunctionloadLocalFile
loadLocalFile loads environment variables from a local file if IMGPROXY_ENV_LOCAL_FILE_PATH is set
env/load.go:37
↓ 1 callersMethodmakeDownloadOptions
makeDownloadOptions creates a new default download options
handlers/processing/request_methods.go:53
↓ 1 callersMethodmakeImageRequestHeaders
makeImageRequestHeaders creates headers for the image request
handlers/processing/request_methods.go:21
↓ 1 callersFunctionmapSeverity
mapSeverity converts slog.Level to OpenTelemetry log.Severity.
monitoring/otel/log_hook.go:59
↓ 1 callersFunctionnestedMapSet
nestedMapSet sets a value in a nested map[string]any structure. If the key has more than one element, it creates nested maps as needed.
options/options.go:381
↓ 1 callersFunctionnewBlockingReader
newBlockingReader creates a new partialReader in locked state
asyncbuffer/buffer_test.go:75
↓ 1 callersFunctionnewBuffer
newBuffer creates a new buffer from the pool.
xmlparser/buffer.go:91
↓ 1 callersFunctionnewColorError
(format string, args ...any)
vips/color/errors.go:11
↓ 1 callersMethodnewContext
( ctx context.Context, img *vips.Image, po ProcessingOptions, imgdata imagedata.ImageData, )
processing/pipeline.go:99
↓ 1 callersFunctionnewForbiddenOptionError
(ctx context.Context, kind, opt string)
options/parser/errors.go:44
↓ 1 callersFunctionnewFormatterPretty
newFormatterPretty creates a new instance of formatterPretty.
logger/formatter_pretty.go:35
↓ 1 callersFunctionnewFormatterStructured
newFormatterStructured creates a new formatterStructured instance.
logger/formatter_structured.go:16
↓ 1 callersFunctionnewFromRequest
newFromRequest creates a new ConditionalHeaders instance from the given HTTP request.
httpheaders/conditionalheaders/request.go:21
↓ 1 callersMethodnewHttpClient
newHttpClient returns new HTTP client
fetcher/fetcher.go:84
↓ 1 callersFunctionnewInvalidSecretError
()
server/errors.go:93
↓ 1 callersFunctionnewLazyObj
newLazyObj creates a new [LazyObj] that initializes the object on the first call. It returns a function that can be called to get the object and a can
testutil/lazy_obj.go:29
↓ 1 callersFunctionnewLogHook
newLogHook creates a new OpenTelemetry log hook.
monitoring/otel/log_hook.go:22
↓ 1 callersFunctionnewMalformedSignatureError
(ctx context.Context)
security/errors.go:28
↓ 1 callersFunctionnewNotModifiedError
(headers http.Header)
fetcher/errors.go:137
↓ 1 callersMethodnewRequest
newRequest extracts image url and processing options from request URL and verifies them
handlers/processing/handler.go:97
↓ 1 callersFunctionnewRequestCanceledError
(err error)
fetcher/errors.go:115
↓ 1 callersFunctionnewRequestCancelledError
(after time.Duration)
server/errors.go:65
↓ 1 callersFunctionnewRequestSchemeError
(scheme string)
fetcher/errors.go:53
↓ 1 callersFunctionnewRequestTimeoutError
(after time.Duration)
server/errors.go:79
↓ 1 callersFunctionnewResponseStatusError
(status int, body string)
fetcher/errors.go:80
↓ 1 callersFunctionnewRouteNotDefinedError
(path string)
server/errors.go:55
↓ 1 callersFunctionnewSaveOptions
(_ *options.Options)
vips/options.go:24
↓ 1 callersFunctionnewSecurityOptionsError
(ctx context.Context)
options/parser/errors.go:71
↓ 1 callersFunctionnewSourceURLError
(imageURL string)
security/errors.go:52
↓ 1 callersFunctionnewSyntaxError
(msg string, args ...any)
xmlparser/errors.go:14
↓ 1 callersFunctionnewTooManyRedirectsError
(n int)
fetcher/errors.go:105
↓ 1 callersFunctionnewTooManyRequestsError
()
workers/errors.go:11
↓ 1 callersFunctionnewTypeDetectionError
(err error)
imagetype/errors.go:14
↓ 1 callersFunctionnewUnknownFormatError
()
imagetype/errors.go:25
↓ 1 callersFunctionnewUnknownOptionError
(ctx context.Context, kind, opt string)
options/parser/errors.go:33
↓ 1 callersMethodparseBase64String
parseBase64String parses a base64-encoded string option value
options/parser/parse.go:246
↓ 1 callersFunctionparseEnumValue
parseEnumValue returns a parser function that looks up the input value in a map. The input value is trimmed before lookup. It assumes that m contains
env/parsers.go:28
↓ 1 callersFunctionparseFromMap
parseFromMap parses an option value from a map of allowed values
options/parser/parse.go:288
↓ 1 callersMethodparseOpacityFloat
parseOpacityFloat parses an opacity float option value (0-1)
options/parser/parse.go:203
↓ 1 callersMethodparsePathOptions
parsePathOptions parses processing options from the URL path
options/parser/processing_options.go:223
↓ 1 callersMethodparsePathPresets
parsePathPresets parses presets from the URL path
options/parser/processing_options.go:258
↓ 1 callersMethodparsePositiveNonZeroInt
parsePositiveNonZeroInt parses a positive non-zero integer option value
options/parser/parse.go:139
↓ 1 callersMethodparsePreset
parsePreset parses a preset string and returns the name and options
options/parser/presets.go:23
↓ 1 callersMethodparsePresets
parsePresets parses presets from the config and fills the presets map
options/parser/presets.go:12
↓ 1 callersFunctionparseRangeHeader
(opts *blob.DownloadStreamOptions, reqHeader http.Header)
storage/abs/reader.go:105
↓ 1 callersFunctionparseStringSliceSep
parseStringSliceSep returns a parser that splits by a custom separator. The separator is obtained from the provided StringVar descriptor.
env/parsers.go:84
↓ 1 callersFunctionpkcs7pad
(data []byte, blockSize int)
examples/encrypted_source_url.go:15
↓ 1 callersMethodprepareWatermark
( ctx context.Context, wm *vips.Image, wmData imagedata.ImageData, po ProcessingOptions, imgWidth, imgHei
processing/watermark.go:31
↓ 1 callersMethodprocessImage
processImage calls actual image processing
handlers/processing/request_methods.go:150
↓ 1 callersMethodreadAttrValue
readAttrValue reads an attribute value.
xmlparser/decoder.go:333
↓ 1 callersMethodreadByte
readByte reads a single byte from the reader. If an error occurs, it sets d.err and returns false.
xmlparser/decoder.go:699
↓ 1 callersMethodreadCData
readCData reads a CDATA section (until `]]>`).
xmlparser/decoder.go:519
↓ 1 callersMethodreadComment
readComment reads a comment (until `-->`).
xmlparser/decoder.go:492
↓ 1 callersMethodreadDoctype
readDoctype reads a directive (until `>`).
xmlparser/decoder.go:547
↓ 1 callersMethodreadEndTag
readEndTag reads an end tag.
xmlparser/decoder.go:372
↓ 1 callersMethodreadFrom
readFrom reads XML data from the provided reader and populates the node and its children accordingly.
xmlparser/node.go:93
↓ 1 callersMethodreadProcInst
readProcInst reads a processing instruction (until `?>`). If the processing instruction specifies an encoding, it recreates the reader with the speci
xmlparser/decoder.go:408
↓ 1 callersMethodreadStartTag
readStartTag reads a start tag.
xmlparser/decoder.go:226
↓ 1 callersMethodreadText
readText reads text until the `<` character or EOF.
xmlparser/decoder.go:211
↓ 1 callersFunctionregionFromError
(err error)
storage/s3/storage.go:172
↓ 1 callersMethodregisterAllProtocols
RegisterAllProtocols registers all enabled protocols in the given transport
fetcher/transport/transport.go:77
↓ 1 callersMethodreloadImageForProcessing
reloadImageForProcessing reloads the image for processing. For animated images, it loads all frames up to MaxAnimationFrames.
processing/processing.go:166
↓ 1 callersMethodremove
remove removes the last n bytes from the buffer.
logger/buffer.go:100
↓ 1 callersMethodremoveNewline
removeNewline removes the trailing newline character from the buffer, if present.
logger/buffer.go:107
↓ 1 callersMethodreplaceEntities
replaceEntities replaces XML entities in the node according to the provided entity map.
xmlparser/node.go:178
↓ 1 callersMethodreplaceRemoteAddr
replaceRemoteAddr rewrites the req.RemoteAddr property from request headers
server/router.go:235
↓ 1 callersMethodrespondWithImage
(statusCode int, resultData imagedata.ImageData)
handlers/processing/request_methods.go:209
↓ 1 callersMethodrespondWithNotModified
respondWithNotModified writes not-modified response
handlers/processing/request_methods.go:194
↓ 1 callersMethodrunMetricsCollector
runMetricsCollector periodically collects and sends custom metrics to New Relic
monitoring/newrelic/newrelic.go:171
↓ 1 callersMethodrunMetricsCollector
runMetricsCollector collects and sends metrics to CloudWatch
monitoring/cloudwatch/cloudwatch.go:118
↓ 1 callersMethodrunMetricsCollector
runMetricsCollector periodically collects and sends custom metrics to DataDog
monitoring/datadog/datadog.go:199
↓ 1 callersMethodsanitize
sanitize sanitizes the SVG data. It strips <script> and unsafe attributes (on* events).
processing/svg/svg.go:51
↓ 1 callersMethodsaveImage
( ctx context.Context, img *vips.Image, po ProcessingOptions, )
processing/processing.go:498
↓ 1 callersFunctionsaveImageToFitBytes
saveImageToFitBytes tries to save the image to fit into the specified max bytes by lowering the quality. It returns the image data that fits the requi
processing/save_fit_bytes.go:18
↓ 1 callersMethodsaveTmpImage
saveTmpImage saves the provided image data to a temporary file
testutil/image_hash_cache_matcher.go:142
↓ 1 callersMethodsetCSP
setCSP sets the Content-Security-Policy header to prevent script execution.
server/responsewriter/writer.go:192
↓ 1 callersMethodsetCacheControlNoCache
setCacheControlNoCache sets the Cache-Control header to no-cache (default).
server/responsewriter/writer.go:165
↓ 1 callersMethodsetCacheControlPassthrough
setCacheControlPassthrough sets the Cache-Control header from the request if passthrough is enabled in the configuration.
server/responsewriter/writer.go:171
↓ 1 callersMethodsetContentDisposition
setContentDisposition writes the headers to the response writer
handlers/stream/handler.go:160
↓ 1 callersFunctionshouldImportICC
shouldImportICC returns true if we need to import ICC profile for the image.
processing/colorspace_to_processing.go:68
↓ 1 callersMethodshouldSkipStandardProcessing
Returns true if image should not be processed as usual
processing/processing.go:225
↓ 1 callersFunctionsign
(salt, target, secret)
examples/signature.js:8
↓ 1 callersFunctionsign
(salt, target, secret, size)
examples/signature-truncated.mjs:9
↓ 1 callersFunctionsign
(salt, target, secret)
examples/signature-cloudfront-functions.js:8
← previousnext →1,001–1,100 of 1,844, ranked by callers