$ git tag

$ git branch
* master

NoccyLabs/Page2Images Bundle


Install via composer:

    $ composer require noccylabs/page2images-bundle:*

Then add the bundle to your AppKernel:

    new NoccyLabs\Page2Images\Page2ImagesBundle(),

Configuration Parameters

Add to your parameters.yml file:

    page2images_apikey: <rest-api-key>
    page2images_imgkey: <direct-link-image-key>
    page2images_api: <rest-or-direct>
    page2images_device: desktop
    page2images_size: 160x160

API selection

By specifying page2images_api: rest or page2images_api: direct you can lock the API being used. The differences are as follows:

Direct API

Restful API

Device selection


The specified size is used as default if no size is specified for the url:

    {{ ""|page2images }}

The size can always be overriden:

    {{ ""|page2images("320x240") }}

As can the device:

    {{ ""|page2images("400x800","phone") }}


The filter page2images is used to return the appropriate URL to the specified URL.

    {{ page.getUrl()|page2images }}