Git Product home page Git Product logo

filepreviews's Introduction

Neos CMS filepreviews.io integration

This package generate thumbnail and extract metadata from different type of document based on the API of filepreviews.io.

This package is Composer ready, PSR-2 and PSR-4 compliant.

How it work ?

This Generator call the FilePreviews.io API to generate Thumbnail for many different file formats. Check filepreviews.io website for more informations.

Configuration

Like any other Thumbnail Generator, you can change default settings. First step, you need to configure your API keys.

Neos:
  Media:
    thumbnailGenerator:

      'Ttree\FilePreviews\Domain\Model\ThumbnailGenerator\FilePreviewsThumbnailGenerator':
        apiKey: 'api-key'
        apiSecret: 'api-secret'
        maximumWaitingTime: 30
        defaultOptions:
          format: 'jpg'
        retryInterval: 1
        supportedExtensions: [ 'doc', 'docx', 'ppt', 'pptx', 'xls', 'xlxs', 'odt', 'ott', 'odp', 'txt', 'rtf', 'eps', 'psd', 'ai' ]
  • supportedExtensions: check the official documentation of FilePreviews Supported Formats and enjoy.
  • defaultOptions: check the API endpoint documentation.

Acknowledgments

Development sponsored by ttree ltd - neos solution provider.

We try our best to craft this package with a lots of love, we are open to sponsoring, support request, ... just contact us.

License

The MIT License (MIT). Please see LICENSE for more information.

filepreviews's People

Contributors

dfeyer avatar aertmann avatar

Stargazers

Jon Uhlmann avatar Gabe Montalvo avatar José Padilla avatar

Watchers

José Padilla avatar  avatar Laurent Cherpit avatar James Cloos avatar

filepreviews's Issues

Lot of Exceptions regarding API change

Thanks for creating this package. We had 15k exceptions in the last days regarding this service. It seems that they changed the API behaviour and did not raise the API version number.

The package is always checking for a success response but the endpoint is always sending pending now. And you need to fetch the data later on with a pet request and the file id.

The also offer a webhook.

So we need to overhaul the package a bit.
Plan to do that. Fork first and create a PR for that change :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.