
The new media type supports pdf and a subset of media recognized by libreoffice via unoconv. Every document added goes through: * conversion to pdf with unoconv if not already a pdf * creation of thumbnail and medium sized image, and pdfinfo generates some information (even for unoconv produces docs - should fix this) Poppler (pdftocairo, pdfinfo) is used. http://poppler.freedesktop.org/ A working but uglified pdf.js integration exists, which is enabled by setting pdf.pdf_js=true mediagoblin_local.ini (disabled in mediagoblin.ini) Adds one test to the test_submission test suite, and another separate test_pdf suite. The tests are only run if media_types.pdf.processing.check_prerequisites passes, so the test suite will not require any extra package. TODO: make test suite say 'skipped' in that case instead of just 'ok' Signed-off-by: Alon Levy <alon@pobox.com>
38 lines
982 B
INI
38 lines
982 B
INI
[mediagoblin]
|
|
direct_remote_path = /test_static/
|
|
email_sender_address = "notice@mediagoblin.example.org"
|
|
email_debug_mode = true
|
|
|
|
# TODO: Switch to using an in-memory database
|
|
sql_engine = "sqlite:///%(here)s/test_user_dev/mediagoblin.db"
|
|
|
|
# tag parsing
|
|
tags_max_length = 50
|
|
|
|
# So we can start to test attachments:
|
|
allow_attachments = True
|
|
|
|
# Celery shouldn't be set up by the application as it's setup via
|
|
# mediagoblin.init.celery.from_celery
|
|
celery_setup_elsewhere = true
|
|
|
|
media_types = mediagoblin.media_types.image, mediagoblin.media_types.pdf
|
|
|
|
[storage:publicstore]
|
|
base_dir = %(here)s/test_user_dev/media/public
|
|
base_url = /mgoblin_media/
|
|
|
|
[storage:queuestore]
|
|
base_dir = %(here)s/test_user_dev/media/queue
|
|
|
|
[celery]
|
|
CELERY_ALWAYS_EAGER = true
|
|
CELERY_RESULT_DBURI = "sqlite:///%(here)s/test_user_dev/celery.db"
|
|
BROKER_HOST = "sqlite:///%(here)s/test_user_dev/kombu.db"
|
|
|
|
[plugins]
|
|
[[mediagoblin.plugins.api]]
|
|
[[mediagoblin.plugins.oauth]]
|
|
[[mediagoblin.plugins.httpapiauth]]
|
|
|