Skip to content

Instantly share code, notes, and snippets.

@manuelselbach
Last active June 17, 2016 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelselbach/5e57dcbe8196b46ad2d759dc2c4e8b91 to your computer and use it in GitHub Desktop.
Save manuelselbach/5e57dcbe8196b46ad2d759dc2c4e8b91 to your computer and use it in GitHub Desktop.
Use TYPO3 7 LTS crop feature in TypoScript
lib.headerimage = COA
lib.headerimage {
10 = FILES
10 {
references {
data = levelmedia:-1, slide
listNum = 0
}
renderObj = IMG_RESOURCE
renderObj {
file {
import.data = file:current:publicUrl
crop.data = file:current:crop
maxW = 1920
params = -quality 70
ext = jpg
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment