Standard Library

GoImageJpeg

Go stdlib package — image/jpeg. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Decode()Neutral
#
Signature
Decode(r io.Reader) (image.Image, error)

Decode reads a JPEG image from r and returns it as an image.Image.

.DecodeConfig()Neutral
#
Signature
DecodeConfig(r io.Reader) (image.Config, error)

DecodeConfig returns the color model and dimensions of a JPEG image without

.Encode()Neutral
#
Signature
Encode(w io.Writer, m image.Image, o *Options) error

Encode writes the Image m to w in JPEG 4:2:0 baseline format with the given

.FormatError.Error()Neutral
#
Signature
FormatError.Error() string

FormatError.Error function.

.UnsupportedError.Error()Neutral
#
Signature
UnsupportedError.Error() string

UnsupportedError.Error function.

.FormatError()Neutral
#
Signature
type FormatError ...

A FormatError reports that the input is not a valid JPEG.

.Options()Neutral
#
Signature
type Options ...

Options are the encoding parameters.

.Reader()Neutral
#
Signature
type Reader ...

Deprecated: Reader is not used by the image/jpeg package and should

.UnsupportedError()Neutral
#
Signature
type UnsupportedError ...

An UnsupportedError reports that the input uses a valid but unimplemented JPEG feature.

Fully-Qualified Names

FQNField
image/jpegfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # image/jpeg