All Projects → disintegration → imageorient

disintegration / imageorient

Licence: MIT license
Go image decoding with respect to the EXIF orientation tag

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to imageorient

NotionAI-MyMind
This repo uses AI and the wonderful Notion to enable you to add anything on the web to your "Mind" and forget about everything else.
Stars: ✭ 181 (+191.94%)
Mutual labels:  tag
Litrato
Android photo editing app with various filters and tools. Included advanced features like masking, histogram, color picker, EXIF viewer...
Stars: ✭ 54 (-12.9%)
Mutual labels:  exif
fix-decoder
Unravels FIX messages into human readable tables
Stars: ✭ 71 (+14.52%)
Mutual labels:  fix
fzf-checkout.vim
Manage branches and tags with fzf
Stars: ✭ 187 (+201.61%)
Mutual labels:  tag
MP4Parse
C++ library for MP4 file parsing.
Stars: ✭ 55 (-11.29%)
Mutual labels:  tag
audio-tag-analyzer
Extracts metadata music metadata found in audio files
Stars: ✭ 18 (-70.97%)
Mutual labels:  tag
exif-rs
Exif parsing library written in pure Rust
Stars: ✭ 91 (+46.77%)
Mutual labels:  exif
RiiTag
RiiTag is a customizable gamertag for the Wii.
Stars: ✭ 15 (-75.81%)
Mutual labels:  tag
react-tag-manager
Google Tag Manager for React
Stars: ✭ 24 (-61.29%)
Mutual labels:  tag
bcp-47-normalize
Normalize, canonicalize, and format BCP 47 tags
Stars: ✭ 16 (-74.19%)
Mutual labels:  tag
gradle-git-versioning-plugin
This extension will set project version, based on current Git branch or tag.
Stars: ✭ 44 (-29.03%)
Mutual labels:  tag
qrcode-parser
A pure javascript QR code decoding library, accept PNG File object, PNG image url, image base64.
Stars: ✭ 44 (-29.03%)
Mutual labels:  decode
photos2geojson
html map gallery from photos
Stars: ✭ 39 (-37.1%)
Mutual labels:  exif
phppimaco
Biblioteca para geração de Etiquetas PIMACO
Stars: ✭ 61 (-1.61%)
Mutual labels:  tag
pigallery
PiGallery: AI-powered Self-hosted Secure Multi-user Image Gallery and Detailed Image analysis using Machine Learning, EXIF Parsing and Geo Tagging
Stars: ✭ 35 (-43.55%)
Mutual labels:  exif
FireSnapshot
A useful Firebase-Cloud-Firestore Wrapper with Codable.
Stars: ✭ 56 (-9.68%)
Mutual labels:  decode
fixparser
FIX5.0SP2 parser.
Stars: ✭ 50 (-19.35%)
Mutual labels:  fix
crypthash-net
CryptHash.NET is a .NET multi-target library to encrypt/decrypt/hash/encode/decode strings and files, with an optional .NET Core multiplatform console utility.
Stars: ✭ 33 (-46.77%)
Mutual labels:  decode
TagView
The tag selection library with edit text and list
Stars: ✭ 46 (-25.81%)
Mutual labels:  tag
fix-rust
FIX (Financial Information Exchange) client in Rust
Stars: ✭ 16 (-74.19%)
Mutual labels:  fix

imageorient

GoDoc

Package imageorient provides image decoding functions similar to standard library's image.Decode and image.DecodeConfig with the addition that they also handle the EXIF orientation tag (if present).

License: MIT.

See also: http://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/

Install / Update

go get -u github.com/disintegration/imageorient

Documentation

http://godoc.org/github.com/disintegration/imageorient

Usage example

package main

import (
	"image/jpeg"
	"log"
	"os"

	"github.com/disintegration/imageorient"
)

func main() {
	// Open the test image. This particular image have the EXIF
	// orientation tag set to 3 (rotated by 180 deg).
	f, err := os.Open("testdata/orientation_3.jpg")
	if err != nil {
		log.Fatalf("os.Open failed: %v", err)
	}

	// Decode the test image using the imageorient.Decode function
	// to handle the image orientation correctly.
	img, _, err := imageorient.Decode(f)
	if err != nil {
		log.Fatalf("imageorient.Decode failed: %v", err)
	}

	// Save the decoded image to a new file. If we used image.Decode
	// instead of imageorient.Decode on the previous step, the saved
	// image would appear rotated.
	f, err = os.Create("testdata/example_output.jpg")
	if err != nil {
		log.Fatalf("os.Create failed: %v", err)
	}
	err = jpeg.Encode(f, img, nil)
	if err != nil {
		log.Fatalf("jpeg.Encode failed: %v", err)
	}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].