[FLOW3-general] Package TYPO3.Image - How to differ between the different image variants?
"Christian Müller (Kitsunet)"
christian.mueller at typo3.org
Thu Dec 8 19:11:19 CET 2011
Hi,
as far as I see there is no method right now to find a specific variant.
Maybe Bastian can comment too when he is back next week. You could use
the hash that is assigned to a variant to recover it from the array. All
needed components to generate the hash should be there.
For me there are two possible ways to go further with that:
1) provide something like getVariantByProcessingInstruction() in the
Image Model
2) Allow tagging of variants and provide methods to get variants by tag
Both could be nice to have, so if you want to go either way, would be
great if you would share the code. :)
Cheers,
Christian
On 08/12/11 18:25, Matthias Habegger wrote:
> Hello there,
>
> With the Package TYPO3.Image can I create different ImageVariants of a
> single image (Very nice :-) ).
>
> So I created a thumbnail (60px width and 60px height) and a larger image
> (600px width and 600px height). Both are saved correctly.
>
> Now I wonna show the thumbnail.
> I could get all variants with the method getImageVariants.
>
> But how can I differ between the different variants, how can I get the
> thumbnail?
>
> Thanks,
> Matthias
More information about the FLOW3-general
mailing list