Commit Graph

50 Commits

Author SHA1 Message Date
c32b99f53e augment CreateFoldersSelect to support supplying js 2025-10-01 23:39:17 +10:00
cbfd00fe53 make dev PA go via container name instead of via mara for DB connection 2024-12-07 19:39:12 +11:00
06ceefda97 popped face recog load_image_fil into a try block as it clearly has/can fail 2024-06-29 13:54:22 +10:00
d86893875d added capability to run a dev container for pa, and if we re-build we create a new .sk and remove old PA_UserState on fresh login. BUG-120 is either fixed by this or at least the log catches it and does not crash now (if we rebuild between re-use) 2024-03-10 23:52:34 +11:00
1005acb339 use jpegtran to do lossless 90 rotations 2023-11-11 21:28:04 +11:00
b952fe82f6 large refactor of code to use venv (in .python) for DEV, to use consistent python versions with PROD, sepcifically flask 2.2.2 to address the deprecation of FLASK_ENV -> replaced with ENV. Fixed up git and dockerignores to be more stringent 2022-12-31 15:42:03 +11:00
7df340e142 improved PA class __repr() to handle bytes and thumbnails and remove internal sql alchemy 2022-12-23 11:55:41 +11:00
b82d3107dc fix BUG-104 by only calling exif auto trans on jpegs, not all images 2022-08-03 18:00:02 +10:00
91b5e1b6d2 created own version of exifautotran (placed into utils), and call it from ./ in non PROD and explciti /code in PROD - it deals with the Samsung created images with invalid SOS which dont autorotate 2022-08-02 18:47:24 +10:00
0ea6a38269 remove debugs 2022-07-21 20:56:18 +10:00
84a4cf7cf8 added ability to auto-rotate jpegs as we import them. The auto-rotation uses /usr/bin/exifautotran which rotates losslessly, and we optimised to then not also re-rotate the thumbmail. This address a few bugs in the 90s, including the one where Mandys photos were not getting faces (they were rotated), and without really doing anything the odd one where we sometimes lost tmp_locn on first load after db recreation - I cant reproduce so ignoring it 2022-07-15 17:18:31 +10:00
3710b573ea added auto-rotate to settings, not used in job mgr yet 2022-07-13 00:26:24 +10:00
9f2ecb1901 just in case, if location or encoding is null when GenFace is run then return None, and catch this in person and show error on GUI -- for now uploading from a phone does odd things to the image format and fails to work in face_recognition.load_image() 2022-07-10 16:22:35 +10:00
79a817fa90 removed useless [0] for face_locn in refimg code 2022-01-31 21:08:33 +11:00
491663f1c9 update comment 2022-01-21 18:21:21 +11:00
a2fb877f12 implemented job archiving (via a Setting, and just viewing recent or all) 2022-01-13 23:11:21 +11:00
8a6a7a5115 joblog rewrite to show only a few "newest" lines and "oldest" logs for a job, with the more button in the middle, also has a little icon to show the re-ordering that goes with each view - should really make this clickable/togglable. 2022-01-13 21:12:09 +11:00
10866c3147 scheduled jobs implemented, after X days in settings we scan import, storage paths, and check the Bin for old files and actually delete them from the file system 2022-01-13 13:27:55 +11:00
d422fdf3ad fix new bug introd, where after exif transpose I stupidly im to use im_orig always, instead of if its not a JPEG 2021-09-22 18:41:19 +10:00
6f17e1677d be more explicit, only exif_transform jpegs, and if mode is not rgb convert it first before thumbnail - fixes BUG-63 no thumbs for GIFs 2021-09-21 16:53:47 +10:00
10fcda0d7c convert OPT from a dict to a class 2021-08-29 20:13:26 +10:00
7bd4552727 updated comments 2021-08-11 18:05:54 +10:00
6ce92c3398 remove debug 2021-07-29 21:47:27 +10:00
dc35417933 allowed CreateSelect to take list of values for options - used in cnn/hog AI model menu in viewer 2021-07-29 21:42:35 +10:00
b7d346c206 model_used is now per file, not per face, implemented split of default_model to default_refimg_model and default_scan_model in settings, and default_refimg_model actualy works when creating refimgs in person.py. The model_used in face_file_link is based on default settings model and will scan with cnn if chosen and store that in DB as needed. Need viewer to allow changing per file / not just default for future scans 2021-07-27 17:14:03 +10:00
915063a7a7 semi fixed move dbox, the input group is still not right, but it will suffice, more use of svg and ditching font awesome 2021-07-22 00:50:45 +10:00
b9f05d64f8 okay this now works with bootstrap 5, I dont love the sz buttons / mixed black and white hover text needs love - probably own class with own styles, but I dont want to hard-code info color, need to work out how to do style / css using the right bs variable for info color 2021-07-20 19:03:14 +10:00
6737664c4c remove debug 2021-07-17 16:32:45 +10:00
e622774c0f made GenThumb return thumb and orig_w, orig_h - not sure this stays, but for optimising it prob. will -- its not being used in pa_job_mgr yet, and that will see the final version of this 2021-07-11 22:31:37 +10:00
b811f8710e moved GenFace and GenThumb common code into shared, and hook it in both f/e and b/e where needed 2021-07-04 20:04:25 +10:00
a6782c24ff if you dont pass an FLASK_ENV, we now assume development 2021-06-28 17:02:41 +10:00
126b17aa33 make prod pa_job_manager have FLASK_ENV of production and use localhost for job mgr host 2021-06-27 14:37:53 +10:00
4bda64ca17 hide prod DB inside docker network so only paweb can get to prod, created a new DEV DB on port 65432 and if FLASK_ENV is development you get that one 2021-06-27 13:12:42 +10:00
173e1f0de7 whitespc 2021-06-24 17:32:48 +10:00
9eb82bf1c3 added comment & TODO to recode SymlinkName one day 2021-06-22 18:42:03 +10:00
1234a3c804 remove debug 2021-06-13 21:28:26 +10:00
ecefb59458 added icons for paths into a dict ICON, and func to retrieve the icon based on objects type of path 2021-06-06 17:21:45 +10:00
7e2494884e can now toggle between folder or flat view, its a bit ugly, but it works 2021-06-06 14:09:11 +10:00
5e03650ed5 first cut of paths actually working with folder viewing - for now defaulting on for both Storage only 2021-05-01 18:16:45 +10:00
9c263f54e3 minor fix to only remove trailing slash if there is content at all in sig_bit of SymlinkName 2021-03-21 12:06:56 +11:00
b763a59b2b whitespace removed 2021-03-19 18:06:16 +11:00
40dba847c1 moved SymlinkName into shared 2021-02-27 18:30:20 +11:00
Damien De Paoli
4042fdef77 put explicit use of locahost:5432 for pg, and localhost:5000 for flask for lappy 2021-02-27 10:57:57 +11:00
1795e91126 hard hacked a class modifier in CreateSelect(), should make it a param 2021-02-07 20:42:41 +11:00
96bcada5c5 CreateSelect() in py called in jinja to neaten up selects 2021-02-02 00:18:52 +11:00
98d4c7d43e Fixed BUG-19 - video thumbs being out of ratio, using THUMBSIZE in shared.py to also make sure images and videos have at least one of their width / height be 256 in their thumbnail 2021-01-30 20:16:36 +11:00
777d0099ce fixed non-PROD run of job manager to use localhost 2021-01-21 16:09:54 +11:00
Cam
ddd409650d updated shared to work on local environments too 2021-01-21 15:19:38 +11:00
2b9dedb9b9 change how we calculate active jobs, probably will remove it from pa_job_engine, safer with threads I think. But, mostyle, added in client / server socket comms between web FE and job manager, with better job creation message (including link to job detail) and when you view job detail it auto-refreshes every few seconds until job complete) 2021-01-17 12:35:28 +11:00
a6d2e424d2 added shared.py at least for DB_URL, maybe more 2021-01-16 17:46:28 +11:00