liipimaginebundle

Symfony2 open_basedir restriction in effect

。_饼干妹妹 提交于 2021-01-28 05:49:46
问题 i'm trying to deploy a symfony 2.7 project to shared hosting. Everything works fine on localhost but on the server i got big fat error... When i try to hit the site: http://infinityproperty.sitetester.biz/ I was getting a error : Warning: is_dir(): open_basedir restriction in effect. File(/srv/www/infinityproperty.sitetester.biz/web) is not within the allowed path(s): When I try to enter 3-4 times it removes the error and i can see the structure. But the issue is there. Also no images from

liip_imagine with vich_uploader not creating cache

僤鯓⒐⒋嵵緔 提交于 2020-02-02 06:37:13
问题 I am working on a Symfony project which consists of two inner projects. ONE project and MARKETPLACE project. Here is how the files strucure in the web. web/ ---one/ #this one is being called from subdomain one.domain.com ------/app_dev.php ---marketplace/ #this one is being called from the main domain domain.com ------/app_dev.php now i have a third folder ---/images i want to allow the user to upload images from the ONE and to be displayed in the MARKETPLACE here is my config apps/config

Filtered image is bigger than original image in file size - LiipImagineBunle

こ雲淡風輕ζ 提交于 2020-01-06 19:52:52
问题 My goal is to generate an image from one original uploaded image. I am using the built-in relative_resize filter of LiipImagineBundle . The configuration of the bundle: my_filter: filters: relative_resize: { widen: 960 } Let's say : for an image filename image.jpeg that is 1280*850, I am having an additional filtered file b_image.jpg .The problem is that b_image.jpg , which is 960*640 is way bigger in file size than image.jpg . Do you have any suggestions regarding how to debug this issue?

Use LiipImagineBundle to Resize Image after Upload?

≡放荡痞女 提交于 2019-12-28 05:21:12
问题 I'm using the LiipImagineBundle with Symfony 2.1 and would like to resize user uploaded images upon upload before saving them to the permanent filesystem location (to strip metadata, impose jpeg format, and limit the size of the file). I have to call a 'strip' and 'resize' filter from the controller and then save the filtered image from a temporary location to a folder of my choosing in the filesystem. I tried to use the LiipImageBundle Controller as a service as indicated in the bundle's

Symfony2 LiipImagineBundle path cache probleme

安稳与你 提交于 2019-12-13 18:29:51
问题 I've setup a LiipImagineBundle configuration on a linux computer (xubuntu 14.10) : routing.yml _liip_imagine: resource: "@LiipImagineBundle/Resources/config/routing.xml" config.yml liip_imagine: resolvers: default: web_path: ~ filter_sets: cache: ~ dashboard_thumb: quality: 75 filters: thumbnail: { size: [60, 60], mode: outbound } and in my twig template : <img src="{{ asset(company.logo.getPath) | imagine_filter('dashboard_thumb') }}"> All sources images are under web/uploads path This was

Access Liip Imagine bundle from Controller - assign service to variable (Symfony 4)

妖精的绣舞 提交于 2019-12-11 16:44:55
问题 On (Symfony 4) How do I access the Liip Imagine bundle from within PHP code? I found a solution to use the Liip Imagine Cache but I can't get it to work. Two solutions, neither of them work for me. I have absolutely no Idea why. When I try harmstyler's solution with $imagineCacheManager = $this->get('liip_imagine.cache.manager'); in my Controller then I get a ServiceNotFoundException Service "liip_imagine.cache.manager" not found: even though it exists in the app's container, the container

Redirect to page prior to login form Symfony 3.4 is resolving to liip_imagine route in a custom listener

匆匆过客 提交于 2019-12-11 15:49:14
问题 I'm having problems getting a redirect after login to work in Symfony. It works for some pages but for others, the last_route session variable is being set to a users profile picture that uses the liip_imagine_filter: "last_route" => [ "name" => "liip_imagine_filter", "params" => [ "filter" => "profile_picture" "path" => "frederick-jacobson/5ba60fc93056b.png" ] ] LoginFormAuthenticator: class LoginFormAuthenticator extends AbstractFormLoginAuthenticator { /*...*/ protected function

LiipImagineBundle can't resolve image

拈花ヽ惹草 提交于 2019-12-10 17:34:13
问题 I'm using liipImagineBundle but I can't get it work. Everything is installed correctly, but when I try to apply a filter the resolver doesn't create the image. <img src="{{ asset('bundles/xy/uploads/images/default/default.png') | imagine_filter('thumb_50x50') }}" /> The generated html code: <img src="http://social.lh.com/app_dev.php/media/cache/resolve/thumb_50x50/bundles/xy/uploads/images/default/default.png"> If I open a console and call php app/console liip:imagine:cache:resolve bundles\xy

Installing and running LiipImagineBundle in symfony 2.1

天大地大妈咪最大 提交于 2019-12-06 04:30:41
问题 Here are the steps I followed: Added following in my composer.json: "require": { "imagine/Imagine": ">=0.2.8", "liip/imagine-bundle": "*@dev", .... } Ran following command at command line: composer update Installing imagine/imagine (v0.4.0) Installing liip/imagine-bundle (dev-master f7d5e4d) After composer update my directory structure inside vendor folder looks like as below: Then update vendor/composer/autoload_namespaces.php 'Imagine' => $vendorDir .'/imagine/Imagine/lib/', 'Liip\

liip_imagine with vich_uploader not creating cache

江枫思渺然 提交于 2019-12-05 21:31:54
I am working on a Symfony project which consists of two inner projects. ONE project and MARKETPLACE project. Here is how the files strucure in the web. web/ ---one/ #this one is being called from subdomain one.domain.com ------/app_dev.php ---marketplace/ #this one is being called from the main domain domain.com ------/app_dev.php now i have a third folder ---/images i want to allow the user to upload images from the ONE and to be displayed in the MARKETPLACE here is my config apps/config/bundles/liip_imagine.yml # LiipImagineBundle liip_imagine: resolvers: default: web_path: web_root: %kernel