Skip to content

Commit

Permalink
Revert "Clean up"
Browse files Browse the repository at this point in the history
This reverts commit bd859a6.
  • Loading branch information
Xavier-LB committed Nov 18, 2023
1 parent bd859a6 commit 9a63e99
Show file tree
Hide file tree
Showing 44 changed files with 5,108 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*


# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 PhotoFolder

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
![277478745-ac9ec8a9-7e79-47e4-8b45-945366200842](https://github.com/PhotoFolder/app/assets/61973781/3b178d5d-ea4b-4980-a0dc-8037879cdebf)

# File explorer made for pictures
PhotoFolder uses file's metadata to give you the experience of Google Photos, but locally, no need to launch a server.

- Website: https://photofolder.github.io/
- Presentation video (4:22 min): https://youtu.be/5VEm7qhPo2M

> ⚠️ This project is not stable yet, backup your files before using it. [Get notified](https://forms.gle/UPmNKp9FncKYnvcW7) when we have a stable version.

## Features

### Calendar view
![calendar-screenshot](https://github.com/PhotoFolder/app/assets/27826950/9096c416-b26b-4611-8c01-948596039951)

### Map view
![map-screenshot](https://github.com/PhotoFolder/app/assets/27826950/c04067b2-0b5e-4eeb-95c1-ae16cea08040)

### Face Detection
![faces-screenshot](https://github.com/PhotoFolder/app/assets/27826950/1b652e3a-6743-4288-9074-485f8244e9d6)


## Tech Stack
- Lang: [Rust](https://www.rust-lang.org/)
- UI: [Svelte](https://svelte.dev/) and [Tailwind](https://tailwindcss.com/)
- Image Analysis: [Tenserflow Rust](https://github.com/tensorflow/rust) and [RustFace](https://github.com/atomashpolskiy/rustface)

If you want to contribute to the [project let us know](https://forms.gle/UPmNKp9FncKYnvcW7)!

![bottom-photos](https://github.com/PhotoFolder/app/assets/27826950/9f1b14fd-6629-4c21-8d9f-bdfeb669c0ed)
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri + Svelte + TS</title>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "photofolder",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^1.5.0",
"blueimp-load-image": "^5.16.0",
"exif-js": "^2.3.0"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@tauri-apps/cli": "^1.5.0",
"@tsconfig/svelte": "^5.0.0",
"svelte": "^4.0.5",
"svelte-check": "^3.4.6",
"svelte-preprocess": "^5.0.0",
"tslib": "^2.6.0",
"typescript": "^5.0.2",
"vite": "^4.4.4"
}
}
1 change: 1 addition & 0 deletions public/svelte.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/tauri.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions rust-examples/hello-rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "hello-rust"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
kamadak-exif = "0.5.5"
little_exif = "0.1.1"
Binary file added rust-examples/hello-rust/monalisa.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions rust-examples/hello-rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
fn read_files() {
for path in &["./monalisa.jpg"] {
let file = std::fs::File::open(path).unwrap();
let mut bufreader = std::io::BufReader::new(&file);
let exifreader = exif::Reader::new();
let exif = exifreader.read_from_container(&mut bufreader).unwrap();
for f in exif.fields() {
println!("{} {} {}", f.tag, f.ifd_num, f.display_value().with_unit(&exif));
}
}
}

fn main() {
println!("Hello, world!");
read_files();
}
Binary file added rust-examples/hello-rust/tiff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src-tauri/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Generated by Cargo
# will have compiled files and executables
/target/

Loading

0 comments on commit 9a63e99

Please sign in to comment.