palexer / image-viewer Goto Github PK
View Code? Open in Web Editor NEWA simple image viewer with some editing functionality.
License: MIT License
A simple image viewer with some editing functionality.
License: MIT License
it doesn't seem an "image-viewer" ~
It would be great to have a zoom feature with either a slider or a plus and a minus button.
from go.sum file , i see github.com/nfnt/resize is imported , but image resize feature is not present on user interface , or i just missed it ?
Hello
if the image has not been edited the program crashes when trying to save
*** my fix was to check a.img.EditedImage is set
*** I also added case ".jpg" for encoding
fileio.go
// if file has not been edited
if (a.img.EditedImage == nil ){
a.apply()
}
switch writer.URI().Extension() {
case ".jpg":
jpeg.Encode(writer, a.img.EditedImage, nil)
case ".jpeg":
jpeg.Encode(writer, a.img.EditedImage, nil)
case ".png":
hello
is this project going forward? May I ask in what direction?
Could you add cropping / annotations ?
Thanks
Hi,
It would be great to be able to see thumbnails of the directory. Infinite scroll or paging.
In my use case I could have 2000+ cannon DSLR images in a folder. 3mb + each.
I tried a very crude implementation but it was way to slow. Almost workable if I paged the thumbnails to say show 12 at a time. Thumbnails created on the fly. I did find a fyne implementation of showing thumbnails of large images on the fly that used MD5 and caching..... lightning fast.
Homes-iMac:ImageViewer home$ go build main.go
./main.go:58:13: undefined: Img
./main.go:98:10: undefined: Img
./main.go:135:12: undefined: resourceIconPng
./main.go:136:12: undefined: resourceIconPng
./main.go:139:17: ui.loadMainUI undefined (type *App has no field or method loadMainUI)
./main.go:145:5: ui.open undefined (type *App has no field or method open)
Hello
I like what you have done. Thank you.
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") {
**** 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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.