[TYPO3-mvc] Render responsive images like TS sourceCollection?
Chris Wolff - AERTiCKET AG
cwolff at aer.de
Mon May 26 16:44:17 CEST 2014
Hi Marc,
yes some of my post got lost (or better I got lost.. as I was distracted)
I was just suggesting to take a look at the css_styled_content typoscript.
There should be all you need to make an Responsive image (I have not looked myself there)
Maybe there is even something like a lib.* object you could use as basis for your Resposive images.
Regards chris.
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Marc Wöhlken
Gesendet: Montag, 26. Mai 2014 16:37
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: Re: [TYPO3-mvc] Render responsive images like TS sourceCollection?
Hi Chris!
Am 26.05.2014 14:33, schrieb Chris Wolff - AERTiCKET AG:
> Hi Marc,
>
> You could use the uri.image ViewHelper to get the accordingly sized image resources. This viewHelper returns the url which could be then included in your template.
>
> Example (untested) FLUID:
>
> <picture>
> <source src="{f:uri.image(src: 'foo', image: [anySimpleType], width: 100, height: 200)}" media=" "/>
> <source src="{f:uri.image(src: 'foo', image: [anySimpleType], width:
> 200, height: 400)}" media=""/> </picture>
>
> This should generate Image Resources for Every needed resoulution and output it as responstive picture element.
This seems like a quite unflexible solution as cropping and applying other image operations seems not to be possible using the view helper.
>
> As css_styled Content is rendering responsive image there should also
> be an Typoscript Option Available if you interested in this you should
> rede
Somehow I have a feeling that some of your post got lost ;-) Would be interested in further info about rendering via typoscript.
Thanks for your ideas
Marc
>
> Regards chris
>
>
> -----Ursprüngliche Nachricht-----
> Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
> [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag
> von Marc Wöhlken
> Gesendet: Montag, 26. Mai 2014 14:17
> An: typo3-project-typo3v4mvc at lists.typo3.org
> Betreff: [TYPO3-mvc] Render responsive images like TS sourceCollection?
>
> Hi there!
> Is there an API for rendering responsive images analog to the typoscript sourceCollection? The goal would be to create a fluid template which gets feed by pre prosessed image data renderd within my extbase extension.
>
> Wrong idea?
>
> Would it be possible to do the image rendering via typoscript and
> insert it into fluid? (aka wrong mailing list ;-))
>
> CU
> Marc
> --
> ...........................................................
> Marc Wöhlken TYPO3 certified integrator
>
> Quadracom - Proffe & Wöhlken
>
> Rembertistraße 32 WWW: http://www.quadracom.de
> D-28203 Bremen E-Mail: woehlken at quadracom.de
> ______________ PGP-Key: http://pgp.quadracom.de
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4m
> vc
>
--
...........................................................
Marc Wöhlken TYPO3 certified integrator
Quadracom - Proffe & Wöhlken
Rembertistraße 32 WWW: http://www.quadracom.de
D-28203 Bremen E-Mail: woehlken at quadracom.de
______________ PGP-Key: http://pgp.quadracom.de
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list