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
initialLoadImage
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 callers
Method
injectEtagHeader
injectEtagHeader injects the ETag header into the user response
httpheaders/conditionalheaders/request.go:155
↓ 1 callers
Method
injectLastModifiedHeader
injectLastModifiedHeader injects the Last-Modified header into the user response
httpheaders/conditionalheaders/request.go:128
↓ 1 callers
Method
isImageTypeCompatible
isImageTypeCompatible checks if the given image type is compatible with the image properties.
processing/processing.go:336
↓ 1 callers
Method
isImageTypePreferred
isImageTypePreferred checks if the given image type is in the list of preferred formats.
processing/processing.go:331
↓ 1 callers
Method
isMatch
isMatch checks that a request matches route
server/router.go:271
↓ 1 callers
Method
isStringQuoteSafe
isStringQuoteSafe checks if a string is safe to append without quoting.
logger/buffer.go:114
↓ 1 callers
Method
isStringSafe
isStringSafe checks if a string is safe to append without escaping.
logger/formatter_json.go:181
↓ 1 callers
Method
joinErrors
(errs []error)
logger/handler.go:201
↓ 1 callers
Method
len
len returns the number of bytes written to the buffer.
logger/buffer.go:49
↓ 1 callers
Function
limitResponseSize
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 callers
Method
limitScale
(widthToScale, heightToScale int, po ProcessingOptions)
processing/prepare.go:223
↓ 1 callers
Function
loadAWSSecret
(ctx context.Context)
env/aws.go:30
↓ 1 callers
Function
loadAWSSystemManagerParams
loadAWSSystemManagerParams loads environment variables from AWS System Manager
env/aws.go:84
↓ 1 callers
Method
loadDctHash
loadDctHash reads a DCT hash from a reader
testutil/image_hash.go:227
↓ 1 callers
Function
loadGCPSecret
(ctx context.Context)
env/gcp.go:21
↓ 1 callers
Function
loadLocalFile
loadLocalFile loads environment variables from a local file if IMGPROXY_ENV_LOCAL_FILE_PATH is set
env/load.go:37
↓ 1 callers
Method
makeDownloadOptions
makeDownloadOptions creates a new default download options
handlers/processing/request_methods.go:53
↓ 1 callers
Method
makeImageRequestHeaders
makeImageRequestHeaders creates headers for the image request
handlers/processing/request_methods.go:21
↓ 1 callers
Function
mapSeverity
mapSeverity converts slog.Level to OpenTelemetry log.Severity.
monitoring/otel/log_hook.go:59
↓ 1 callers
Function
nestedMapSet
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 callers
Function
newBlockingReader
newBlockingReader creates a new partialReader in locked state
asyncbuffer/buffer_test.go:75
↓ 1 callers
Function
newBuffer
newBuffer creates a new buffer from the pool.
xmlparser/buffer.go:91
↓ 1 callers
Function
newColorError
(format string, args ...any)
vips/color/errors.go:11
↓ 1 callers
Method
newContext
( ctx context.Context, img *vips.Image, po ProcessingOptions, imgdata imagedata.ImageData, )
processing/pipeline.go:99
↓ 1 callers
Function
newForbiddenOptionError
(ctx context.Context, kind, opt string)
options/parser/errors.go:44
↓ 1 callers
Function
newFormatterPretty
newFormatterPretty creates a new instance of formatterPretty.
logger/formatter_pretty.go:35
↓ 1 callers
Function
newFormatterStructured
newFormatterStructured creates a new formatterStructured instance.
logger/formatter_structured.go:16
↓ 1 callers
Function
newFromRequest
newFromRequest creates a new ConditionalHeaders instance from the given HTTP request.
httpheaders/conditionalheaders/request.go:21
↓ 1 callers
Method
newHttpClient
newHttpClient returns new HTTP client
fetcher/fetcher.go:84
↓ 1 callers
Function
newInvalidSecretError
()
server/errors.go:93
↓ 1 callers
Function
newLazyObj
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 callers
Function
newLogHook
newLogHook creates a new OpenTelemetry log hook.
monitoring/otel/log_hook.go:22
↓ 1 callers
Function
newMalformedSignatureError
(ctx context.Context)
security/errors.go:28
↓ 1 callers
Function
newNotModifiedError
(headers http.Header)
fetcher/errors.go:137
↓ 1 callers
Method
newRequest
newRequest extracts image url and processing options from request URL and verifies them
handlers/processing/handler.go:97
↓ 1 callers
Function
newRequestCanceledError
(err error)
fetcher/errors.go:115
↓ 1 callers
Function
newRequestCancelledError
(after time.Duration)
server/errors.go:65
↓ 1 callers
Function
newRequestSchemeError
(scheme string)
fetcher/errors.go:53
↓ 1 callers
Function
newRequestTimeoutError
(after time.Duration)
server/errors.go:79
↓ 1 callers
Function
newResponseStatusError
(status int, body string)
fetcher/errors.go:80
↓ 1 callers
Function
newRouteNotDefinedError
(path string)
server/errors.go:55
↓ 1 callers
Function
newSaveOptions
(_ *options.Options)
vips/options.go:24
↓ 1 callers
Function
newSecurityOptionsError
(ctx context.Context)
options/parser/errors.go:71
↓ 1 callers
Function
newSourceURLError
(imageURL string)
security/errors.go:52
↓ 1 callers
Function
newSyntaxError
(msg string, args ...any)
xmlparser/errors.go:14
↓ 1 callers
Function
newTooManyRedirectsError
(n int)
fetcher/errors.go:105
↓ 1 callers
Function
newTooManyRequestsError
()
workers/errors.go:11
↓ 1 callers
Function
newTypeDetectionError
(err error)
imagetype/errors.go:14
↓ 1 callers
Function
newUnknownFormatError
()
imagetype/errors.go:25
↓ 1 callers
Function
newUnknownOptionError
(ctx context.Context, kind, opt string)
options/parser/errors.go:33
↓ 1 callers
Method
parseBase64String
parseBase64String parses a base64-encoded string option value
options/parser/parse.go:246
↓ 1 callers
Function
parseEnumValue
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 callers
Function
parseFromMap
parseFromMap parses an option value from a map of allowed values
options/parser/parse.go:288
↓ 1 callers
Method
parseOpacityFloat
parseOpacityFloat parses an opacity float option value (0-1)
options/parser/parse.go:203
↓ 1 callers
Method
parsePathOptions
parsePathOptions parses processing options from the URL path
options/parser/processing_options.go:223
↓ 1 callers
Method
parsePathPresets
parsePathPresets parses presets from the URL path
options/parser/processing_options.go:258
↓ 1 callers
Method
parsePositiveNonZeroInt
parsePositiveNonZeroInt parses a positive non-zero integer option value
options/parser/parse.go:139
↓ 1 callers
Method
parsePreset
parsePreset parses a preset string and returns the name and options
options/parser/presets.go:23
↓ 1 callers
Method
parsePresets
parsePresets parses presets from the config and fills the presets map
options/parser/presets.go:12
↓ 1 callers
Function
parseRangeHeader
(opts *blob.DownloadStreamOptions, reqHeader http.Header)
storage/abs/reader.go:105
↓ 1 callers
Function
parseStringSliceSep
parseStringSliceSep returns a parser that splits by a custom separator. The separator is obtained from the provided StringVar descriptor.
env/parsers.go:84
↓ 1 callers
Function
pkcs7pad
(data []byte, blockSize int)
examples/encrypted_source_url.go:15
↓ 1 callers
Method
prepareWatermark
( ctx context.Context, wm *vips.Image, wmData imagedata.ImageData, po ProcessingOptions, imgWidth, imgHei
processing/watermark.go:31
↓ 1 callers
Method
processImage
processImage calls actual image processing
handlers/processing/request_methods.go:150
↓ 1 callers
Method
readAttrValue
readAttrValue reads an attribute value.
xmlparser/decoder.go:333
↓ 1 callers
Method
readByte
readByte reads a single byte from the reader. If an error occurs, it sets d.err and returns false.
xmlparser/decoder.go:699
↓ 1 callers
Method
readCData
readCData reads a CDATA section (until `]]>`).
xmlparser/decoder.go:519
↓ 1 callers
Method
readComment
readComment reads a comment (until `-->`).
xmlparser/decoder.go:492
↓ 1 callers
Method
readDoctype
readDoctype reads a directive (until `>`).
xmlparser/decoder.go:547
↓ 1 callers
Method
readEndTag
readEndTag reads an end tag.
xmlparser/decoder.go:372
↓ 1 callers
Method
readFrom
readFrom reads XML data from the provided reader and populates the node and its children accordingly.
xmlparser/node.go:93
↓ 1 callers
Method
readProcInst
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 callers
Method
readStartTag
readStartTag reads a start tag.
xmlparser/decoder.go:226
↓ 1 callers
Method
readText
readText reads text until the `<` character or EOF.
xmlparser/decoder.go:211
↓ 1 callers
Function
regionFromError
(err error)
storage/s3/storage.go:172
↓ 1 callers
Method
registerAllProtocols
RegisterAllProtocols registers all enabled protocols in the given transport
fetcher/transport/transport.go:77
↓ 1 callers
Method
reloadImageForProcessing
reloadImageForProcessing reloads the image for processing. For animated images, it loads all frames up to MaxAnimationFrames.
processing/processing.go:166
↓ 1 callers
Method
remove
remove removes the last n bytes from the buffer.
logger/buffer.go:100
↓ 1 callers
Method
removeNewline
removeNewline removes the trailing newline character from the buffer, if present.
logger/buffer.go:107
↓ 1 callers
Method
replaceEntities
replaceEntities replaces XML entities in the node according to the provided entity map.
xmlparser/node.go:178
↓ 1 callers
Method
replaceRemoteAddr
replaceRemoteAddr rewrites the req.RemoteAddr property from request headers
server/router.go:235
↓ 1 callers
Method
respondWithImage
(statusCode int, resultData imagedata.ImageData)
handlers/processing/request_methods.go:209
↓ 1 callers
Method
respondWithNotModified
respondWithNotModified writes not-modified response
handlers/processing/request_methods.go:194
↓ 1 callers
Method
runMetricsCollector
runMetricsCollector periodically collects and sends custom metrics to New Relic
monitoring/newrelic/newrelic.go:171
↓ 1 callers
Method
runMetricsCollector
runMetricsCollector collects and sends metrics to CloudWatch
monitoring/cloudwatch/cloudwatch.go:118
↓ 1 callers
Method
runMetricsCollector
runMetricsCollector periodically collects and sends custom metrics to DataDog
monitoring/datadog/datadog.go:199
↓ 1 callers
Method
sanitize
sanitize sanitizes the SVG data. It strips <script> and unsafe attributes (on* events).
processing/svg/svg.go:51
↓ 1 callers
Method
saveImage
( ctx context.Context, img *vips.Image, po ProcessingOptions, )
processing/processing.go:498
↓ 1 callers
Function
saveImageToFitBytes
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 callers
Method
saveTmpImage
saveTmpImage saves the provided image data to a temporary file
testutil/image_hash_cache_matcher.go:142
↓ 1 callers
Method
setCSP
setCSP sets the Content-Security-Policy header to prevent script execution.
server/responsewriter/writer.go:192
↓ 1 callers
Method
setCacheControlNoCache
setCacheControlNoCache sets the Cache-Control header to no-cache (default).
server/responsewriter/writer.go:165
↓ 1 callers
Method
setCacheControlPassthrough
setCacheControlPassthrough sets the Cache-Control header from the request if passthrough is enabled in the configuration.
server/responsewriter/writer.go:171
↓ 1 callers
Method
setContentDisposition
setContentDisposition writes the headers to the response writer
handlers/stream/handler.go:160
↓ 1 callers
Function
shouldImportICC
shouldImportICC returns true if we need to import ICC profile for the image.
processing/colorspace_to_processing.go:68
↓ 1 callers
Method
shouldSkipStandardProcessing
Returns true if image should not be processed as usual
processing/processing.go:225
↓ 1 callers
Function
sign
(salt, target, secret)
examples/signature.js:8
↓ 1 callers
Function
sign
(salt, target, secret, size)
examples/signature-truncated.mjs:9
↓ 1 callers
Function
sign
(salt, target, secret)
examples/signature-cloudfront-functions.js:8
← previous
next →
1,001–1,100 of 1,844, ranked by callers