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

Extracting additional information from images #176

Open
6 tasks
HadrienGardeur opened this issue Jan 4, 2025 · 0 comments
Open
6 tasks

Extracting additional information from images #176

HadrienGardeur opened this issue Jan 4, 2025 · 0 comments
Assignees
Labels

Comments

@HadrienGardeur
Copy link
Member

HadrienGardeur commented Jan 4, 2025

We'd like to extract the following information from every bitmap image present in an EPUB package:

  • height
  • width
  • size of the file
  • presence of animated content
  • cryptographic hash
  • perceptual hash

This will be based on https://pkg.go.dev/golang.org/x/image plus additional packages for hashing.

All of these info will be added to the shared model for the Link Object and also included in the JSON/RWPM output:

  • Link Objects can already document a height and a width
  • We might consider adding the size of a file as a core property of the Link Object (size?)
  • While the presence of animated content and crypto/perspectual hashes should rely on properties and extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants