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

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -