TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] Re sizing images in an extension

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 ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 23.06.2008, 20:22
StephenBungert
Gast
 
Beiträge: n/a
Standard [TYPO3] Re sizing images in an extension

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 23.06.2008, 22:11
Dmitry Dulepov [typo3]
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Re sizing images in an extension

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 23.06.2008, 23:44
bernd wilke
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Re sizing images in an extension

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 24.06.2008, 09:32
StephenBungert
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Re sizing images in an extension

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 24.06.2008, 11:14
Matyi Gábor
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Re sizing images in an extension

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 24.06.2008, 12:46
StephenBungert
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Re sizing images in an extension

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 24.06.2008, 14:28
Matyi Gábor
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Re sizing images in an extension

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:13 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39