imageprocessing

package
v0.0.0-...-244c41e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlipAndRotatePictureByExif

func FlipAndRotatePictureByExif(picture image.Image, exifOrientation int) image.Image

func RotateAndTransformPicture

func RotateAndTransformPicture(file io.Reader) (image.Image, error)

RotateAndTransformPicture reads a file and uses the exif information contained within it to figure out what orientation and inversion it should be shown at as a human-usable image if it doesn't find any orientatoin data, it will just return the original image

func RotateAndTransformPictureByExifData

func RotateAndTransformPictureByExifData(picture image.Image, exifData exif.Exif) (image.Image, error)

RotateAndTransformPictureByExifData takes an image and exifData and returns the transformed image or an error if there was no data to transform with

Types

type Size

type Size struct {
	Width  int
	Height int
}

func GetResizeSize

func GetResizeSize(pictureSize, limit Size) Size

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL