将TYPO3从版本6.2.9升级到6.2.10后,使用GIFBUILDER的缩放图像不起作用。当我在安装工具中测试图像处理时,一切看起来都不错,当我想使用GIFBUILDER更改img时,img不起作用。我的实际配置如下所示:
'GFX' => array(
'colorspace' => 'sRGB',
'gdlib_png' => '1',
'im' => '1',
'im_mask_temp_ext_gif' => '1',
'im_noFramePrepended' => '1',
'im_noScaleUp' => '0',
'im_path' => '/usr/local/bin/',
'im_path_lzw' => '/usr/local/bin/',
'im_stripProfileCommand' => '-strip',
'im_v5effects' => '-1',
'im_version_5' => 'im6',
'image_processing' => '1',
'jpg_quality' => '70',
'thumbnails' => '1',
'thumbnails_png' => '1',
),
“昨天”工作的代码看起来像那样:
plugin.tx_yag.settings.themes.default {
resolutionConfigs {
thumb >
thumb = GIFBUILDER
thumb {
XY = [10.w],[10.h]
format = jpg
quality = 60
10 = IMAGE
10 {
file.maxW >
file.maxH >
file.width = 380c
file.height = 240c
file.width.override.field = imagewidth
file.height.override.field = imageheight
file.import.field = yagImage
}
}
albumThumb < plugin.tx_yag.settings.themes.default.resolutionConfigs.thumb
galleryThumb < plugin.tx_yag.settings.themes.default.resolutionConfigs.thumb
medium >
medium = GIFBUILDER
medium {
XY = [10.w],[10.h]
format = jpg
quality = 65
10 = IMAGE
10 {
file.maxW = 783
file.maxH = 600
file.import.field = yagImage
}
// Load watermark image file
20 = IMAGE
20 {
file = fileadmin/media/watermark_logo.png
// Center the watermark image (for a watermark size of 100x100px): offset = [10.w]/2-50,[10.h]/2-50
offset = [10.w]-190,[10.h]-40
}
}
}
}
之前代码生成的每张图片都会将原始图像裁剪为maxW和maxH尺寸,但不会缩放,因此我只有每个img的1/4。
任何想法出了什么问题?
答案 0 :(得分:0)
这个问题可能发布在forge https://forge.typo3.org/issues/65378上。
如果是这样,我认为你应该将你的评论添加到这个帖子中。这将加快TYPO3团队的反应。