typo3 flexslider应该使用原始图像而不是裁切一个 [英] typo3 flexslider should user original image and not cropped one
问题描述
在我的typo3 7.6.19网站中,我想使用flexslider插件. 效果很好,我的问题是图像是裁剪的,而不是我上传的原始文件.
In my typo3 7.6.19 Website I want to user the flexslider plugin. That works fine, my problem is that the image is a cropped one and not the original file I uploaded.
如何更改它以使用原始图片?
How can I change it to use the original picture?
预先感谢
推荐答案
该插件设置了TypoScript常量
The plugin sets up a TypoScript constant
plugin.tx_wsflexslider.maxwidth=800px
您可以在TypoScript模板中修改此值(模块模板">常量编辑器">选择"PLUGIN.TX_WSFLEXSLIDER"
You can modify this value in your TypoScript template (Module Template > Constant Editor > select "PLUGIN.TX_WSFLEXSLIDER"
关于另一个问题,即缩小图像中的伪像,我认为将图像从2550px调整为800px时,画质可能会降低:)您可以在安装工具">所有配置">中检查这些设置"图像处理[GFX],看看是否可以改善它们.
About your other problem that is artifacts in the reduced image, I think that when resizing an image from 2550px to 800px, it is probable that the quality will be reduced :) You could check those settings in Install Tool >All Configuration > Image Processing [GFX] and see if you can improve them.
最后一句话:我不会使用2550px的图像,看来它们会很重!我会尝试做出妥协(例如plugin.tx_wsflexslider.maxwidth=1200px
).
A last word: I would not use images of 2550px, it seems that they will be very heavy! I would try to set a compromise (e.g. plugin.tx_wsflexslider.maxwidth=1200px
).
您还可以评估扩展名EXT:image_autoresize https://extensions.typo3.org/extension /image_autoresize/ 在上载图像时自动调整图像的大小,并限制编辑器将上载的图像的重量或尺寸.
You could also evalutate the extension EXT:image_autoresize https://extensions.typo3.org/extension/image_autoresize/ to automatically resize the images when uploading them and limit the weight or dimensions of the images that your editor will upload.
从此答案中 typo3使用裁剪图像如何避免这我看到(当然),您也可以修改渲染图像的部分内容,并且完全避免使用TypoScript常量,但是由于我上面提到的原因,我不建议这样做.
From this answer typo3 uses crop images how can I avoid this I see that (of course) you can also modify the partial that renders the image and avoid using the TypoScript constants at all, but for the reasons I mentioned above, I would not recommend it.
这篇关于typo3 flexslider应该使用原始图像而不是裁切一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!