Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony LiipImagineBundle: filters not working for big images

I am currently developing the possibility for some users to upload images on a backend. Those images are supposed to be rendered on a mobile app later.

I am in an early stage of development, I want to resize images that any users are uploading to the server. But for now I am working locally with Wamp, works fine when I want to apply filter to images under approximately 1000X1000. Then bigger images are not filtered, the original image is stored indeed, but the filtered one supposed to go to web/media/cache isn't.

I can't seem to find a solution for now, I have to say I am a beginner in Symfony development. I am starting to think this is something related to cache with Wamp.

Here is my configuration in config.yml for more precision:

liip_imagine:
resolvers:
    default:
        web_path: ~
filter_sets:
    my_small:
        quality: 100
        filters:
            thumbnail: { size: [275, 100], mode: outbound }
    my_big:
        quality: 100
        filters:
            thumbnail: { size: [550, 550], mode: inset}

Has anyone ever experienced the same problem?

like image 790
Tíbó Avatar asked May 17 '14 14:05

Tíbó


2 Answers

try raising the memory limit in php.ini. It works for all heavy php code, not only drupal https://drupal.org/node/29268

like image 81
vodolaz095 Avatar answered Nov 15 '22 06:11

vodolaz095


I was ignoring Symfony's profiler. Now I have more information:

post_max_size_message -> The uploaded file was too large. Please try to upload a smaller file.

like image 35
Tíbó Avatar answered Nov 15 '22 07:11

Tíbó