Zum Inhalt springen

Bildzuschnitt festlegen Contentelement Text & Bilder / Bilder

Erstellt am 24. Februar 2017 · 1 Antwort · letzte Antwort am 27. Februar 2017

Tags: Inhaltselemente, Bilder, Frage

in-session ·

Bin gerade etwas am verzweifeln, probiere den die Bilder auf ein bestimmtest Format zu bringen.
Die Bilder sollen nachher das Format 252 x 163 px haben, aber leider greift das crop nicht.
Egal was ich probiere, entweder wird die Größe von 252 px dargestellt aber die Höhe stimmt nicht.
Oder die Höhe wird richtig angezeigt aber die Breite nicht.

Habt Ihr eine Idee?

temp.tt_content.textpic  < tt_content.textpic 
tt_content.textpic  = CASE
tt_content.textpic  {
  key.field = section_frame
  0 < temp.tt_content.textpic 
  default < temp.tt_content.textpic 
  60 < temp.tt_content.textpic 
}
tt_content.textpic.60.20 {
	1 {
		maxH >
		maxW >
		maxH = 163
		maxW = 252
		file.width >
		file.width.override.field = imagewidth
		file.width = 252-0
		file.height >
		file.height.override.field = imageheight
		file.height = 163c-0
	}
	equalH >
	equalW >
}
Norman2k ·

Bei mir funktioniert es so, width und height können im CE überschrieben werden

tt_content.image.20.1 {
  file.width.field >
  file.width = 200c
  file.height = 200c
  file.width.override.field = imagewidth
  file.height.override.field = imageheight
}