PHP code example of pixxio / pixxio-extension
1. Go to this page and download the library: Download pixxio/pixxio-extension library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pixxio / pixxio-extension example snippets
html
<f:if condition="{file.properties.pixxio_direct_link}">
<f:then>
<img src="{file.properties.pixxio_direct_link}" alt="{file.properties.alternative}">
</f:then>
<f:else>
<f:media file="{file}" alt="{file.properties.alternative}" />
</f:else>
</f:if>
html
<img src="{file.properties.pixxio_direct_link}?format=auto&quality=80&width=1200"
alt="{file.properties.alternative}">