Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Info on CameraSettings #113

Open
cimba007 opened this issue Jan 4, 2024 · 2 comments
Open

More Info on CameraSettings #113

cimba007 opened this issue Jan 4, 2024 · 2 comments

Comments

@cimba007
Copy link

cimba007 commented Jan 4, 2024

Hello,

it would be nice if the information would show a little bit more from the exif data.

As I don't know how to do a proper PullRequest but I still want to contribute .. here is my try:

{ title: 'Camera Settings', value: `ISO ${entry.iso}, Aperture ${entry.aperture}` },

{title:"Camera Settings",value:`ISO ${e.iso}, Aperture ${e.aperture}, FocalLength ${e.focalLength}mm, ExposureTime ${e.exposureTime}`}

whiteBalance: exif.WhiteBalance

...
whiteBalance: exif.WhiteBalance,
exposureTime: exif.ExposureTime

Other Data from Exif can be added the same way it seems. It might require a rebuild of the database to store this information.
If you want to make this change locally you just need to do the changes to.

  • exif.js
  • App.XXXX.js
@xemle
Copy link
Owner

xemle commented Jan 5, 2024

Hi @cimba007

thank you for your input. you are on the right track. To create a proper PR you need to have a development setup with git and nodejs environment. I can recommend to use visual studio code as editor. Than you can check if your changes are working as desired. Some skeleton steps for the development setup is:

  • install git, nodejs and visual studio code
  • fork the project and checkout your home-gallery fork repository
  • run npm install
  • run npm run build
  • create a branch git checkout -b feature/webapp-add-camera-settings
  • add your changes in packages/database and packages/webapp
  • run npm run build, rebuild your database via ./gallery.js run import, restart the gallery to validate your changes. There are shortcuts for the webapp if the database is updated in package/webapp via npm run dev.
  • commit your changes and push it to your fork
  • create the PR on github

@xemle
Copy link
Owner

xemle commented Jan 5, 2024

Currently I am keeping calm by implementing your suggestion right away by my own. I am rewriting the webapp UI using tailwind and the detail view gets a new layout. Since this work takes time and HomeGallery is a spare time project the progress of the UI rewrite is currently on slow progress. The preview looks like:

Screenshot_20231203-100135

So I do not want to change the current (old) state by my own. I am fine to apply a proper PR if you have one with your changes. This can be the current master without the UI rewrite since the UI rewrite has currently private state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants