Bilder mit Graustufe rendern

Wer kennt Sie nicht, den Rendering Effekt "Graustufe" oder "Grayscale" im Content Element Bild bzw. Bild/Text? Dieser macht aus dem einfachen Bild eine Schwarz-Weiß Kopie...

Nun hab ich mich aber gefragt wie ich das im IMAGE Object machen kann und bin zu folgender Lösung gekommen.


Wenn wir dem IMAGE Parameter "file.params" einfach "-colorspace GRAY" übergebe, erhalte wir das gewollte Bildrendering. TYPO3 ist manchmal so einfach...

Hier nochmal das passende TypoScript dazu!

  1. MYIMAGE = IMAGE
  2. MYIMAGE.file = myImage.jpg
  3. MYIMAGE.file.width = 300
  4. MYIMAGE.params = class="gray"
  5. MYIMAGE.file.params = -colorspace GRAY

Das passende Beispiel dazu

Tags: typoscript, bilder, rendering,

Keine Antwort zu “Bilder mit Graustufe rendern”

Mein Kommentar

Social Bookmarking

Bookmark bei: Mr. Wong Bookmark bei: Webnews Bookmark bei: Icio Bookmark bei: Oneview Bookmark bei: Linkarena Bookmark bei: Favoriten Bookmark bei: Seekxl Bookmark bei: Favit Bookmark bei: Social Bookmarking Tool Bookmark bei: Power Oldie Bookmark bei: Bookmarks.cc Bookmark bei: Newskick Bookmark bei: Newsider Bookmark bei: Linksilo Bookmark bei: Readster Bookmark bei: Folkd Bookmark bei: Yigg Bookmark bei: Digg Bookmark bei: Del.icio.us Bookmark bei: Reddit Bookmark bei: Simpy Bookmark bei: StumbleUpon Bookmark bei: Slashdot Bookmark bei: Netscape Bookmark bei: Furl Bookmark bei: Yahoo Bookmark bei: Spurl Bookmark bei: Google Bookmark bei: Blinklist Bookmark bei: Blogmarks Bookmark bei: Diigo Bookmark bei: Technorati Bookmark bei: Newsvine Bookmark bei: Blinkbits Bookmark bei: Ma.Gnolia Bookmark bei: Smarking Bookmark bei: Netvouz Information
 

going up