Skip to content

feat: refactor core Exif processing logic into @exifi/core - #47

Merged
jeremy-code merged 5 commits into
mainfrom
dev/exifi-core
Sep 5, 2026
Merged

feat: refactor core Exif processing logic into @exifi/core#47
jeremy-code merged 5 commits into
mainfrom
dev/exifi-core

Conversation

@jeremy-code

Copy link
Copy Markdown
Owner
  • Create @exifi/core package
  • Remove Rational class and mapRationalArray function, rely only on RationalObject
  • Refactor logic to handle string and Rational values for serialized Exif data
  • Add initializeGpsEntries action
  • In general, handle string and Rational values as an input whenever possible

…zed Exif data

- serializeExifData now returns a string for ASCII values and RationalObject[]
  for RATIONAL and SRATIONAL values, instead of always returning number[]
- ExifEntryAddEditor and ExifEntryEditor now handle string values for ASCII
  format and RationalObject[] for RATIONAL and SRATIONAL formats, instead of
  always using number[]
- @exifi-core/exif/date/* has a simpler format
- Remove leaflet dependency in @exifi/core, move formatLatLng,
  formatLatLngAsGeoUri, and formatLatLngAsOsmUrl to #lib/leaflet
- Update add editor to assume string value when format is undefined
- Add initializeGpsEntries action in
  @exifi-core/exif/actions/initializeGpsEntries to initialize GPS entries in
  exifDataObject if they are missing
@netlify

netlify Bot commented Sep 5, 2026

Copy link
Copy Markdown

Deploy Preview for exifi ready!

Name Link
🔨 Latest commit 4071808
🔍 Latest deploy log https://app.netlify.com/projects/exifi/deploys/6a9bcb33e4770c0008710740
😎 Deploy Preview https://deploy-preview-47--exifi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jeremy-code

Copy link
Copy Markdown
Owner Author

Deploy Preview: https://deploy-preview-47--exifi.netlify.app/

Viewer: works
Editor:

  1. Update https://upload.wikimedia.org/wikipedia/commons/c/c9/Metadata_demo_exif_only.jpg in editor, save, viewer workers, exiftool works with output
  2. Update Metadata_demo image, delete all GPS tags, works
  3. on ios, use random photo, add tag image description, save
  4. delete and re add xresolution

@jeremy-code jeremy-code closed this Sep 5, 2026
@jeremy-code jeremy-code reopened this Sep 5, 2026
@jeremy-code
jeremy-code merged commit 82578c3 into main Sep 5, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

1 participant