Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image suffix and orientation - 2 issues #3

Closed
bikedel opened this issue Jan 5, 2021 · 0 comments
Closed

image suffix and orientation - 2 issues #3

bikedel opened this issue Jan 5, 2021 · 0 comments

Comments

@bikedel
Copy link

bikedel commented Jan 5, 2021

Hello

I like what you have done. Thank you.

  1. navigation buttons will not work with images that have a capital suffix

fileio.go LINE 77
if strings.HasSuffix(v, ".png") || strings.HasSuffix(v, ".jpg") || strings.HasSuffix(v, ".jpeg") ||

**** I have it working by checking lowercase suffix as below

if strings.HasSuffix(strings.ToLower(v), ".png") || strings.HasSuffix(strings.ToLower(v), ".jpg") || strings.HasSuffix(strings.ToLower(v), ".jpeg") || strings.HasSuffix(strings.ToLower(v), ".gif") {

  1. image orientation is not correct when viewing portrait images taken with my DSLR

**** I have it working by adding an import and changing one line of code

fileio.go
import "github.com/disintegration/imageorient"
and changed line 67 to
a.img.OriginalImage, _, err = imageorient.Decode(file)

@Palexer Palexer closed this as completed in 90cbdbb Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant