【问题标题】:TYPO3 6.2 scaling img using gifbuilder did't workTYPO3 6.2 使用 gifbuilder 缩放 img 不起作用
【发布时间】:2015-02-27 15:31:14
【问题描述】:

将 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。

有什么想法吗?

【问题讨论】:

    标签: imagemagick typo3 typoscript yag


    【解决方案1】:

    这个问题可能是在 forge https://forge.typo3.org/issues/65378 上发布的。

    如果是这样,我认为您应该将您的 cmets 添加到此线程。这将加快 TYPO3 团队的反应速度。

    【讨论】:

    • 谢谢,我确认了伪造上的错误
    猜你喜欢
    • 2014-02-09
    • 1970-01-01
    • 2017-02-13
    • 1970-01-01
    • 2015-05-26
    • 1970-01-01
    • 2014-10-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多