kunstmaan/media-bundle

To build your perfect website you probably need images, video's or maybe even a presentation too. The Kunstmaan Media Bundle handles all those media assets and centralizes them so you can find your content just the way you like it: fast and efficiently. No central asset management module is useful w

Installs: 123 396

Dependents: 7

Suggesters: 1

Security: 0

Stars: 38

Watchers: 15

Forks: 14

Type:symfony-bundle

7.1.2 2024-09-14 17:40 UTC

This package is auto-updated.

Last update: 2024-11-11 14:38:34 UTC


README

Build Status Total Downloads Latest Stable Version Analytics

To build your perfect website you probably need images, video's or maybe even a presentation too. The Kunstmaan Media Bundle handles all those media assets and centralizes them so you can find your content just the way you like it: fast and efficiently. No central asset management module is useful without some pretty advanced image editing functionality. To provide this we have integrated the Aviary image editing service right from the interface.

View more screenshots and information https://cms.kunstmaan.be.

Installation

This bundle is compatible with all Symfony 3.* releases. More information about installing can be found in this line by line walkthrough of installing Symfony and all our bundles, please refer to the Getting Started guide and enjoy the full blown experience.

Symfony 2.2

If you want to use this bundle for a Symfony 2.2 release, use the 2.2 branch.

Audio

If you want to use your own api key for SoundCloud, you can define this in the config.yml of your application but it works fine without it as well.

kunstmaan_media:
    soundcloud_api_key: YOUR_CLIENT_ID

Tooltips

If you want to add a nifty tooltip to your media chooser in the admin, you can just add the following to your form type:

$builder
    ->add(
      'media',
      'media',
      array(
          'pattern' => 'KunstmaanMediaBundle_chooser',
          'mediatype' => 'image',
          'attr' => array('info_text' => 'YOUR TOOLTIP TEXT'),
      )
    );

Generating PDF preview thumbnails

For this functionality to work, you need to install the ImageMagick extension with PDF support (using Ghostscript). You will also have to make sure that the Ghostscript executable (gs) can be found in the path of the user that is executing the code (apache/www or a custom user depending on your setup).

You can determine that path by running which gs on the command line in Linux/OS X.

To install Ghostscript on Mac OS X you can use brew install gs.

On OS X with apache you will probably have to add that path to the apache environment settings in /System/Library/LaunchDaemons/org.apache.httpd.plist. Make sure it contains the following :

<key>EnvironmentVariables</key>
<dict>
    <key>PATH</key>
    <string>/usr/bin:/bin:/usr/sbin:/sbin:/path/to/gs</string>
</dict>

Where /path/to/gs is just the actual path where the gs binary is stored.

NOTE: This functionality has to be enabled by setting the enable_pdf_preview configuration option to true, ie. :

kunstmaan_media:
    enable_pdf_preview: true