Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] Re sizing images in an extension within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; I have an extension that I'm writing that display's images. I want to use TYPO3's ability to ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
I have an extension that I'm writing that display's images. I want to use
TYPO3's ability to resize images to display them smaller than they are, but so that they still look ok. I have discovered from looking at other extensions and from the mailing list that you can do this: $imgConf['file'] = 'uploads/tx_sbportfolio/' . $imageName; $imgOutput = $this->cObj->IMAGE($imgConf); I can see the image on my website, but at its full size. How can I resize it? I saw in the tsref that the IMAGE object has a params property, I tried setting this, things like hspace worked, but width and height didn't. How then do I resize the image? ----- -- Stephen Bungert -- View this message in context: http://www.nabble.com/Resizing-image...p18075150.html Sent from the TYPO3 English mailing list archive at Nabble.com. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi!
StephenBungert wrote: > I have an extension that I'm writing that display's images. I want to use > TYPO3's ability to resize images to display them smaller than they are, but > so that they still look ok. > > I have discovered from looking at other extensions and from the mailing list > that you can do this: > > $imgConf['file'] = 'uploads/tx_sbportfolio/' . $imageName; > > $imgOutput = $this->cObj->IMAGE($imgConf); > > I can see the image on my website, but at its full size. How can I resize > it? I saw in the tsref that the IMAGE object has a params property, I tried > setting this, things like hspace worked, but width and height didn't. > > How then do I resize the image? Take a look to TSRef. TYPO3 can't do magic and guess what size you need. You have to set some properties. My album3x does that. -- Dmitry Dulepov E-mail: dmitry (AT) typo3 (DOT) org Skype: callto:liels_bugs TYPO3 technical: http://typo3bloke.net/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
on Mon, 23 Jun 2008 11:22:06 -0700, StephenBungert wrote:
> I have an extension that I'm writing that display's images. I want to > use TYPO3's ability to resize images to display them smaller than they > are, but so that they still look ok. > > I have discovered from looking at other extensions and from the mailing > list that you can do this: > > $imgConf['file'] = 'uploads/tx_sbportfolio/' . $imageName; > > $imgOutput = $this->cObj->IMAGE($imgConf); > > I can see the image on my website, but at its full size. How can I > resize it? I saw in the tsref that the IMAGE object has a params > property, I tried setting this, things like hspace worked, but width and > height didn't. > > How then do I resize the image? remember the structure typoscript is translated in an array and then insert the correct typoscript in it. just an example: http://www.pi-phi.de/t3v4/rendering.html#c77 bernd -- http://www.pi-phi.de/t3v4/cheatsheet.html _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
Thanks both.
I have it fixed now. $imgConf['file.']['width'] = 70 . 'm'; $imgConf['file.']['height'] = 54 . 'm'; I tried this before but it didn't do anything - it makes an img tag but with every attribute empty, I then looked at the install tool and discovered that ImageMagik wasn't set up correctly. Now it works! ----- -- Stephen Bungert -- View this message in context: http://www.nabble.com/Re-sizing-imag...p18085495.html Sent from the TYPO3 English mailing list archive at Nabble.com. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
Hi!
In this topic I experienced, that the process of the imageresizing start only if the user load the FE-page with browser first time. This can causes a huge page-load time. It is possible to do that that this process should start immediately after the BE user upload the image? Is there any such extension? I experienced this problem f.e. with tt_news, tx_commerce, rgsmoothgallery . F.e. I upload 20 new images, I write the texts (details). If I open first time the frontpage, where f.e. tx_commerce product are listed, I have to wait. In this time I can chech the processes on the server console, that the imagemagic convert every image....but as I wrote this is a slow process. Does anybody experienced such thing? Is there eny solution? Thanks. Gabor Matyi StephenBungert wrote: > > > Thanks both. > > I have it fixed now. > $imgConf['file.']['width'] = 70 . 'm'; > $imgConf['file.']['height'] = 54 . 'm'; > > I tried this before but it didn't do anything - it makes an img tag but > with > every attribute empty, I then looked at the install tool and discovered > that > ImageMagik wasn't set up correctly. Now it works! > > > ----- > -- > Stephen Bungert > -- > View this message in context: > http://www.nabble.com/Re-sizing-imag...p18085495.html > Sent from the TYPO3 English mailing list archive at Nabble.com. > > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english > > > ----- > -- > Stephen Bungert > -- View this message in context: http://www.nabble.com/Re-sizing-imag...p18087077.html Sent from the TYPO3 English mailing list archive at Nabble.com. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
I'm not sure, I quite new to TYPO3 but I think it will cache the images so
that next time it is quicker ----- -- Stephen Bungert -- View this message in context: http://www.nabble.com/Re-sizing-imag...p18088451.html Sent from the TYPO3 English mailing list archive at Nabble.com. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#7
|
|||
|
|||
|
StephenBungert wrote:
> > I'm not sure, I quite new to TYPO3 but I think it will cache the images so > that next time it is quicker > Yes you are right. But this functionality could causes my website unaccessible, therefore I'd like to find a better solution. Dmitry: Do you have any idea? -- View this message in context: http://www.nabble.com/Re-sizing-imag...p18089951.html Sent from the TYPO3 English mailing list archive at Nabble.com. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] Images in the BE RTE | Stephen Bungert | typo3-english@lists.netfielders.de | 3 | 30.05.2008 13:02 |
| [TYPO3] Extension TCA fields... uploading images and resizing them? | Andrew Plank | typo3-english@lists.netfielders.de | 4 | 22.05.2008 23:50 |
| [TYPO3] Images only not rendered in frontend with text w/ images | W van Bruggen | typo3-english@lists.netfielders.de | 2 | 04.03.2008 10:28 |
| [TYPO3-german] RTE und Bilder: Magic Images contra Plain Images | Uschi Renziehausen | typo3-german@lists.netfielders.de | 0 | 08.09.2007 14:44 |
| [TYPO3] extension random images | Patrik | typo3-english@lists.netfielders.de | 0 | 30.03.2007 14:12 |