问题标签 [liipimaginebundle]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - Symfony2:LiipImagineBundle - 异常:无法为命名路由“_imagine_image_upload_thumbnail”生成 URL,因为这样的路由不存在
我正在使用LiipImagineBundle
我已按照文档中的安装说明进行操作
在 AppKernel.php 中
并在 routing.yml
在 config.yml
在我的树枝文件中
我收到这个错误
我尝试过的:
- 缓存清除
- php 应用程序/控制台路由器:调试 | grep 想象没有找到
- 路线不存在且未注册
- 验证我有
media/cache
具有正确权限的文件夹
symfony - Sonata media Liip Imagine 整合
我正在尝试使用 Liip Imagine 按照集成说明使用 Sonata Media 生成缩略图:
但我无法同时获得参考图像和缩略图的正确路径。我认为我的问题在于这个配置点:
使用 Sonata 媒体的原始配置
参考图片 url 可以,但不会生成拇指,它们的 url 如下所示:
以下集成说明:
其中 myapp.test 指向我的基本根应用程序,默认 htaccess 为 symfony,拇指是使用公共 url 正确生成的,例如:
但参考图片的公共网址是:
不存在,正确的网址是:
所有这些网址都是从奏鸣曲管理员复制的。
遵循 liipimagine 集成说明的设备可能需要触摸其他内容以获得正确的参考图像 url?
我在用:
symfony - symfony:如何在没有 web/ 作为索引目录时引用使用 LiipImagineBundle 生成的图像
我已经LiipImagineBundle
在我的本地主机上安装了对我的图像应用过滤器。它工作完美。它会生成类似的图像my_project/web/media/cache/my_widen/images/products/image.jpg
,我使用它来展示:
问题:在我的远程共享服务器中,索引目录不是my_project/web
我在本地机器中定义的,而只是my_project/
. 由于我无法将其更改为,因此除非我使用它,否则我my_project/web
无法看到图像:web/media/cache...
我应该怎么做才能使用相同的代码在两台机器(本地和远程)上正确显示它们?
symfony - 500 内部服务器错误 - IOException: 无法使用 LiipImagineBundle 创建媒体/缓存/my_thumb
我正在尝试对基于 LiipImagineBundle 的图像应用过滤器。
以下是步骤:
通过添加此行通过 composer 文件进行安装:
"liip/imagine-bundle": "1.0.*@dev"
通过添加以下行来配置 config.yml 文件:
/li>AppKernel.php 中的 bundle 声明:
/li>通过在 twig 文件中添加一行来测试包:
/li>
但是,没有显示图像。生成的 HTML 文件包含:
在浏览器的 javascript 控制台中,我发现了这个错误:
GET http://localhost/tuto/web/app_dev.php/media/cache/my_thumb/img/test.jpg 500 (Internal Server Error)
当我尝试打开链接时(带有 500 Internal Server Error),symfony 抛出这个错误:
Failed to create /home/amine/NetBeansProjects/tuto/app/../web/media/cache/my_thumb/img
500 Internal Server Error - IOException
我想我没有创建以下文件夹的权限:/home/amine/NetBeansProjects/tuto/app/../web/media/cache/my_thumb/img
. 在我看来,自从我在 Ubuntu 上工作以来,这是可以预料的。
web
为了避免这个问题,我直接通过更改文件夹的权限,sudo chmod 777 -R web
但问题还是一样。
有什么想法吗?
symfony - imagine_filter() not generating the correct url in LiipImagineBundle
I think there is a bug in the bundle LiipImagineBundle. I explain:
Here is my new config of the bundle:
This is the twig part for displaying the image:
The generated link of the image is not correct! In fact, the obtained link is:
http://localhost/media/cache/my_thumb/img/test.jpg
The expected correct link is:
http://localhost/tuto/web/img/media/cache/my_thumb/img/test.jpg
There is a missing part in the url: tuto/web/img . Is this a bug?
To avoid that problem, I did this:
I guess that playing with twig is not a good solution.
It is a bug in LiipImagineBundle? If not, please give the correct config for that bundle!
Thanks!
symfony - liipimagineBundle 画质不好
我正在使用 symfony2 捆绑包“LiipImagineBundle”来创建缩略图。
它工作正常,除了一件事:质量非常差,我已将其设置为 100(最大值)。
更改尺寸后如何获得与原始图片相同的质量?
谢谢你的帮助
symfony - 使用带有 LiipImagineBundle 的流时如何在模板中格式化图像标签
如果我将LiipImagineBundle配置为使用流数据加载器,那么如何制作图像标签以在模板中使用该数据加载器?
更新配置
php - Symfony 2.4 LiipImagineBundle
我安装了 LiipImagineBundle,看起来包安装正确。在我的模板中,我添加了以下行:
但此网址存在服务器错误: http://pc.t/app_dev.php/media/cache/my_thumb/bundles/codecatsfront/images/python-bg.png
我的 python-bg.png 是链接到 web/codecatsfront/images 的 src/CodeCats/FrontBundle/Resources/public/images/。
我也试过命令:
它有效,我对此捆绑包的附加配置:
php - Symfony LiipImagineBundle:过滤器不适用于大图像
我目前正在开发一些用户在后端上传图像的可能性。这些图像应该稍后在移动应用程序上呈现。
我处于开发的早期阶段,我想调整任何用户上传到服务器的图像大小。但是现在我在本地使用 Wamp,当我想对大约 1000X1000 以下的图像应用过滤器时效果很好。然后更大的图像不会被过滤,原始图像确实被存储,但过滤后的应该去网络/媒体/缓存的图像不是。
我现在似乎找不到解决方案,我不得不说我是 Symfony 开发的初学者。我开始认为这与 Wamp 的缓存有关。
为了更精确,这是我在 config.yml 中的配置:
有没有人遇到过同样的问题?
symfony - Symfony,Liip Imagine 捆绑包无法在 prod 环境中的服务器上运行
我有一个项目,我将上传的图像保存在src/My/Bundle/Resources/uploads/images/full中,并使用 twig 过滤器imagine_filter
动态创建缩略图。
在我的本地机器上它可以完美运行,在我的服务器上也是如此,但仅在开发环境下。当我删除先前创建的缩略图(仅保留完整目录),清除产品缓存并加载任何网页时,不会创建图像,它们的 url 始终保留在media/cache下,并且记录器给了我request.ERROR
:
一些附加信息:
- 我已将src/My/Bundle/Resources/uploads符号链接到web/uploads
- 我的配置是(
thumbnail_min
是一个自定义过滤器):liip_imagine: loaders: default: filesystem: data_root: %kernel.root_dir%/../web/uploads/images/full resolvers: default: web_path: web_root: %kernel.root_dir%/../web cache_prefix: /uploads/images cache: default filter_sets: avatar: quality: 90 filters: thumbnail_min: { size: 50, mode: inset } .... full: quality: 100
- 权限始终至少是 group rw (这就是服务器所需要的)