php - Using liip image filter outside of a twig -


i'm trying use liip outside of twig convert several images (100+) smaller size in cron job. can't seem find documentation on it. have experience this?

the liipimaginebundle integrates standalone php "imagine library".

this library included in project dependency of liipimagebundle can use standalone example:

$imagine = new imagine\imagick\imagine();  $imagine->open('/path/to/image.jpg')    ->save('/path/to/image.jpg', array('jpeg_quality' => 50)) // 0 100    ->save('/path/to/image.png', array('png_compression_level' => 9)); // 0 9 

read here docs , more example.


Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

mouseevent - Catch mouse event on tree widget item in QTreeWidget -

Java JSoup error fetching URL -