Reputation: 1218
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?
Upvotes: 6
Views: 1258
Reputation: 1489
LiipImagineBundle I think is mainly for filtering images, not uploading. If you are going to upload and mainly want the filtered images viewed, you many want to consider saving the filtered images permanently so that the filters do not need to run every time the cache is cleared.
I use the OneupUploaderBundle for uploading images, and use php's built in functions for resizing and applying simple filters, and then save the copies - a resized one with certain dimensions and a thumbnail. This way the user can upload large files, but the ones served on the webpages are optimized and can easily be cached since they are static and do not need to be created again.
Another benefit is that the user can upload multiple images at one time, plus it supports multiple frontends which allow it to be nicely styled with the look of your app.
Upvotes: 0
Reputation: 1218
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.
Upvotes: 1
Reputation: 6986
try raising the memory limit in php.ini. It works for all heavy php code, not only drupal https://drupal.org/node/29268
Upvotes: 1