图像处理配置

时间:2016-05-02 20:18:42

标签: typo3 typo3-7.6.x

我需要Typo3 7.6.4中图像处理配置的帮助。无论它们有多大,所有图像都在处理中。这导致图像不是原始大小并且在处理文件夹中不锐化,重命名和复制。我想配置图像处理,以便仅在图像具有某些特定大小(px或kb / mb)时才激活它。例如,如果图像大于1MB或者宽度大于800px,则处理它,否则保持原样并链接到原始文件(无复制,无处理)。谢谢

    page.10 = FLUIDTEMPLATE
page.10 {
    template = CASE
    template {
      key.data = levelfield:-1,backend_layout_next_level,slide
      key.override.field = backend_layout

      1 = FILE
      1.file = fileadmin/templates/sitename/main_1_column.html

      2 = FILE
      2.file = fileadmin/templates/sitename/main_2_column.html
    }
    partialRootPath = fileadmin/templates/sitename/partials/
    layoutRootPath = fileadmin/templates/sitename/layouts/
    variables {

      siteName = TEXT
      siteName.value = sitename

      header < styles.content.get
      header.select.where = colPos = 0

      contentMain < styles.content.get
      contentMain.select.where = colPos = 1

      content_column_1 < styles.content.get
      content_column_1.select.where = colPos = 1

      content_column_2 < styles.content.get
      content_column_2.select.where = colPos = 2

      footer < styles.content.get
      footer.select.where = colPos = 3
  }
}

tt_content {
    stdWrap {
        innerWrap {
            cObject {
                default.20.40 = CASE
                default.20.40 {
                    key.field = layout

                    default = TEXT
                    default.value = img-responsive
                }
            }
        }

        innerWrap2 >
    }

    image {
        20 {
            1 {
                params.cObject = TEXT
                params.cObject {
                    wrap = class="|"
                    cObject < tt_content.stdWrap.innerWrap.cObject.default.20.40
                }
                sourceCollection >
                sourceCollection {
                    big {
                        maxW = 5000
                        dataKey = big
                    }
                    small {
                        maxW = 500
                        dataKey = small
                    }
                    smallLandscape {
                        maxW = 800
                        dataKey = smallLandscape
                    }
                }
            }
            maxW = 5000
        }
    }
}

0 个答案:

没有答案