evol / gif Goto Github PK
View Code? Open in Web Editor NEWA command-line image library manager for nerds.
License: MIT License
A command-line image library manager for nerds.
License: MIT License
Started playing with this, and it's well designed ("do one thing well"), thank you!
One problem: it doesn't need to assume that all input is Gif, so why do so? This would be more useful if I could also use it for png, jpg, mp4, mov... etcetera.
This could be a lot simpler than using libmagic or similar, just try to preserve the input file extension?
It would be good to store MIME types of images inside the database. At the same time, extensions of internal files would correspond to their types, so JPEG files would end in .jpg
and so on.
Current behavior causes some inconvenience in certain workflows and I want to avoid it.
Currently, the development of gif
very much depends on me thinking and checking all corner cases. Since I'm working on it on and off in my spare time and the feature base keeps increasing, this becomes harder and harder to do. Automated tests would solve the issue for most cases. However, the codebase isn't really testable at the moment, with globals and cross-cutting concerns.
My plan is to revisit and rework the architecture and then introduce tests. That's something I think is essential if I want gif
to evolve further.
The problem I have with current prefix matching is that when you have lots of images inside gif
, you don't really remember exactly how you tagged your images. Fuzzy matching would help a lot.
According to some research I've done on the matter, SQLite's full text search isn't up to the task. However, we can use a separate model just for matching tags with something like https://github.com/sajari/fuzzy.
A common workflow I use is:
gif add IMAGE_URL
gif upload ID_OF_THAT_IMAGE
I propose to make this easier by having -
to be a virtual ID of the last added image. The above workflow would then turn into:
gif add IMAGE_URL
gif upload -
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.