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

config: set default preview image size limit to 5mb #180

Closed
wants to merge 1 commit into from

Conversation

ppanero
Copy link
Member

@ppanero ppanero commented Jul 23, 2021

Open Questions
While we do not have IIIF or any better performing previewer... is 5 MB a sensible limit? before it was set to 500KB, which was making it fail for mostly every file.

IMPORTANT NOTE: Remember to merge this commit also to v5 branch for it to be included in the release.

@lnielsen
Copy link
Member

Question: Is the 5mb for the IIIF previewer?

@ppanero
Copy link
Member Author

ppanero commented Jul 23, 2021

No, the IIIF previewer is deactivated by default because of inveniosoftware/invenio-iiif#43. i.e. it works externally but seems not to work for the landing page? Dan might have more details.

This limit is for the simple_image previewer: https://github.com/inveniosoftware/invenio-previewer/blob/master/invenio_previewer/extensions/simple_image.py#L22

We might want to remove the config variable once the IIIF is working.

@lnielsen lnielsen closed this Mar 2, 2022
@ppanero ppanero deleted the preview_img branch March 3, 2022 07:13
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.

landing page: png preview not working
2 participants