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

♻️ Leveraging Marcel to better derive "mime_type" #44

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented May 31, 2023

Prior to this we were using a naive extension sniffer to determine a "mime_type" (which we used to decide on thumbnail dimensions).

With this commit, we leverage Marcel (a Rails gem) that can detect mime based on the magic stings at the beginning of files or based on extensions and some lower "cost" processing (compared to fits.sh).

Related to:

Prior to this we were using a naive extension sniffer to determine a
"mime_type" (which we used to decide on thumbnail dimensions).

With this commit, we leverage Marcel (a Rails gem) that can detect mime
based on the magic stings at the beginning of files or based on
extensions and some lower "cost" processing (compared to `fits.sh`).

Related to:

- #30
- https://github.com/scientist-softserv/adventist-dl/issues/330
@jeremyf jeremyf merged commit 2ca9261 into main Jun 1, 2023
@jeremyf jeremyf deleted the adding-marcel-service-class branch July 6, 2023 14:44
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.

2 participants