1
Fork 0
Commit Graph

813 Commits

Author SHA1 Message Date
viktorstrate faf8602c59
Clean up EXIF info in sidebar and add tests for it
- Move debounce function to new file 'utils.js'
- Add 'isNil' function to 'utils.js'
2021-04-03 18:33:07 +02:00
viktorstrate a8ec5db9dc
Move some files to ui/helpers dir 2021-04-03 17:56:41 +02:00
viktorstrate 95c174d3a5
Setup husky hooks for api 2021-04-03 17:49:18 +02:00
viktorstrate 0a5e6bf350
Update Husky hooks 2021-04-03 17:32:01 +02:00
viktorstrate 7d2ded2cdf
Update npm dependencies 2021-04-03 17:09:57 +02:00
viktorstrate 17fe8c01dc
Update go dependencies 2021-04-03 16:43:11 +02:00
Viktor Strate Kløvedal c0bced8c0a
Merge pull request #258 from Kjeldgaard/244_exiftool
Use exiftool for parsing exif data
2021-04-02 23:03:26 +02:00
Viktor Strate Kløvedal fcae4a89ec
Merge pull request #275 from stz184/implement-custom-lazy-loading
Replace react-lazyload with custom IntersectionObserver
2021-04-02 10:10:32 +02:00
stz184 d2a739de93 Fixes photoview/issues#189
- Added missing dependencies array on useEffect hook in ProtectedMedia.js
- The new property of ProtectedImage component is renamed from loading to lazyLoading and its type is changed to boolean. Since <img loading /> attribute is pointless when it is not supported by the browser or when it is used with default value "eager", there is no much sense in setting it at all.
- Added description how does the new property works as part of the docblock.
2021-04-02 09:59:25 +03:00
Kjeldgaard 3bde799fb3 Fix log bug
Fix log bug, exposure time is now float and not string.

Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
2021-03-31 23:43:44 +02:00
Kjeldgaard f946500eaa Use barasher/go-exiftool
Use barasher/go-exiftool again.
Exposure is not saved as float and not a string.

Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
2021-03-31 23:35:25 +02:00
viktorstrate ef063df34d
Fix Docker builds for arm 2021-03-31 23:32:37 +02:00
stz184 cdc13fce5c Fixes photoview/issues#189
- LazyLoad helper is now a singleton class reusing the same IntersectionObserver instance for performance reasons
- IntersectionObserver is now disconnected when the component is unmounted for performance reasons
- StyledPhoto is now using useCallback to avoid unnecessary rerenderings
- Fixed issue setting loading attribute to the <img /> rendered by <ProtectedImage/> component
2021-03-31 04:58:28 +03:00
stz184 c40f3cc066 Fixes photoview/issues#189
- Fixed issue setting loading attribute to the HTML tag <img />
2021-03-31 03:30:37 +03:00
stz184 fc794b8e6a Fixes photoview/issues#189
- Removed accidentally committed debug code
2021-03-31 03:13:59 +03:00
Viktor Strate Kløvedal c7c1a3ebae
Remove commas from list in build action 2021-03-30 20:13:08 +02:00
Viktor Strate Kløvedal d7e42c8bc9
Don't escape env vars in build action 2021-03-30 20:10:25 +02:00
Viktor Strate Kløvedal f5d44cf789
Fix syntax error in build action 2021-03-30 20:03:26 +02:00
Viktor Strate Kløvedal 1b70142ddc
Cleanup unused tags after manifest is created 2021-03-30 20:00:30 +02:00
stz184 152b4c7e34 Fixes photoview/issues#189
- If it is possible, HTMLImageElement.loading is used a lightweight native browser lazy loading solution
- Custom lazyLoad library is created depending on IntersectionObserver. If IntersectionObserver is not available, the images are eagerly loaded
- removed react-lazyload from the dependencies
2021-03-30 16:51:19 +03:00
viktorstrate ce80ef281b
Merge branch 'master' into 244_exiftool 2021-03-29 12:40:52 +02:00
viktorstrate 1ba62ab03a
Add back docker push conditions to build action 2021-03-29 12:36:14 +02:00
Viktor Strate Kløvedal 454b2dbadd
Merge branch 'master' into 244_exiftool 2021-03-29 12:10:02 +02:00
viktorstrate da664c7766
Use strict equal when comparing exif values
This fixes a problem where flash values of 0 (no flash)
would not show up in the side bar
2021-03-29 11:57:57 +02:00
Kjeldgaard 1193222f92 Update external exif parser method
Exiftool meta data parsed as intergers and not strings. Keep internal
exif parsing functionality.

Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
2021-03-28 23:52:51 +02:00
Viktor Strate Kløvedal 804b4576ec
Push correct tags to dockerhub 2021-03-28 23:32:41 +02:00
Viktor Strate Kløvedal aa7588145f
Fix docker username variable 2021-03-28 23:15:42 +02:00
Viktor Strate Kløvedal e2fd7a7a70
Fix typo 2021-03-28 23:11:00 +02:00
Viktor Strate Kløvedal c432036a7f
Fix syntax error 2021-03-28 23:07:06 +02:00
Viktor Strate Kløvedal cf36b9ec8d
Push individual images, combine afterwards 2021-03-28 23:03:42 +02:00
Viktor Strate Kløvedal 1543f74f6c
Update load images step 2021-03-28 21:52:26 +02:00
Viktor Strate Kløvedal 41520f912a
Format artifact name to not contain '/' 2021-03-28 21:46:50 +02:00
Viktor Strate Kløvedal 9d43104126
Fix path to artifact 2021-03-28 21:32:22 +02:00
Viktor Strate Kløvedal d7bdefa42b
Add missing docker build output directory 2021-03-28 21:30:20 +02:00
Viktor Strate Kløvedal 5ec05e54ea
Ghactions save docker images in artifacts 2021-03-28 21:24:32 +02:00
Viktor Strate Kløvedal f2bb1335e6
Merge pull request #271 from photoview/heic-support
- Add HEIC image file support
- Optimize the Dockerfile and add support for libheif which is needed for decoding `.heic` images
- Change ghactions docker build action to build each architecure as individual jobs
2021-03-28 20:01:37 +02:00
Viktor Strate Kløvedal 3224cc8ce7
Use a ghaction matrix in docker build
to build each architecture individually
2021-03-28 19:39:22 +02:00
Viktor Strate Kløvedal e29beea1ff
Add secret to cache key
To make it possible to invalidate cache if needed
2021-03-28 19:27:25 +02:00
viktorstrate ec2a6e4ded
Remove cache restore key 2021-03-28 18:43:58 +02:00
viktorstrate b59ba20bd1
Refactor Dockerfile
- Use debian:bullseye instad for newer packages
- Only install necessary dependencies for targeted arch
- Make it work with libheif
2021-03-28 13:57:57 +02:00
viktorstrate 93d6962a35
Add libheif ppa to ghactions API tests 2021-03-27 23:15:14 +01:00
viktorstrate 1cd94eab5f
Add libheif-dev dependenc to gh-actions api tests 2021-03-27 22:36:21 +01:00
viktorstrate a039941dda
Add libheif to Dockerfile 2021-03-27 22:30:26 +01:00
viktorstrate 4344e895d1
Support .heic images + refactor EncodeMediaData 2021-03-27 21:14:42 +01:00
Viktor Strate Kløvedal bb03cb1631
Add sponsor section to readme (#270) 2021-03-26 11:20:41 +01:00
Kjeldgaard 7b5305579b Extract metadata as integers
Extract all metada as integers fomr exiftool.

Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
2021-03-23 21:36:03 +01:00
viktorstrate b590413e76
Fix share media not working with postgres
This closes #265
2021-03-23 14:04:44 +01:00
Kjeldgaard 1f9f6ebf9a Use exiftool for parsing exif data
Use exiftool to parse exif metadata.

Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
2021-03-20 00:26:05 +01:00
viktorstrate a14b12b8d4
Fix bug where DetectFaces would be called with the wrong media.
This happend because the go routine did not capture the media variable,
and so the it would change before the go routine could start
and call the DetectFaces function.
2021-03-16 22:27:27 +01:00
viktorstrate 3ae92086cd
Pass database as argument to individual face_detector functions
This allows the face detector to use transactions,
such that faces can be detected on media that has not
been fully commited yet.

This solves #214
2021-03-16 18:26:51 +01:00