[TYPO3] re sizing images in tt_news
StephenBungert
stephenbungert at yahoo.de
Fri Jul 4 15:49:27 CEST 2008
This had the same effect as setting just width and height without m or c in
typo3.
Looks ok, as long as the images are larger then 150 x 100 otherwise they
stretch.
The shrinkage for large images is not so noticable.
What I#m after are images 150 x 100,
scaled so that that whole sapce is filled with the image (whatever size it
originally is), and if the resulting image (after scaling) is to big, it
gets cropped.
Chris-334 wrote:
>
> Eventually a div around the image would do the trick,
> with fixed dimensions + overflow:hidden ?
>
> StephenBungert a écrit :
>> Thanks for spotting the error, still doesn't help.
>>
>> maxWidth = 150
>> maxHeight = 100
>>
>> worked but smaller images are either squashed or streched depending upon
>> whether the dimesnion is too big or too small.
>>
>> What I want to do is this:
>>
>> have the images 150 x 100 whatever the actual size is.
>>
>> I want the smallest size scaled so that it meets this size, the big size
>> scaled and cropped so that it fits in this size too. i.e. portrait and
>> landscape images all scaled and cropped as required to fill a rectangle
>> 150x100 pixels, if ness. you don't see the whole image beause of cropping
>> and scaling. I don't want white space added if one dimension is too
>> small,
>> or one image being wider. Both of these happen when I try and mess around
>> with the image properties.
>>
>> Has no one had fixed size images for tt_news in list mode that get scaled
>> and cropped if they are small?
>>
>>
>> Chris-334 wrote:
>>> You wrote :
>>>
>>> maxWidth = 150
>>> maxHeight = 100
>>>
>>> http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/5/2/
>>>
>>> => maxW & maxH would be better ;-)
>>>
>>> Anyway, I think what you should use is this, according to TSRef :
>>>
>>> width=150m
>>> height=100m
>>>
>>> if you want to keep correct image proportions
>>>
>>> StephenBungert a écrit :
>>>> If I do that, the images will be distorted,
>>>>
>>>> I want TYPO3 to do it so the images are adjusted to size with
>>>> Imagemagik.
>>>>
>>>> There must be away of getting fixed size images scaled so that the
>>>> image
>>>> takes up the width and height specified.
>>>>
>>>>
>>>>
>>>> Antonio Willybiro [awillys] wrote:
>>>>> Hi,
>>>>>
>>>>> maybe you should go it in css then,
>>>>> .foo img {
>>>>> width:150px
>>>>> height:100px;
>>>>> }
>>>>>
>>>>> A.
>>>>>
>>>>> "StephenBungert" <stephenbungert at yahoo.de> wrote in message
>>>>> news:mailman.12300.1215097626.4573.typo3-english at lists.netfielders.de...
>>>>>> This is driving me crazy, can someone give me some tips on how do
>>>>>> solve
>>>>>> my
>>>>>> problem?!?
>>>>>>
>>>>>> I want the images in list view to be 100px high by 150px wide. I want
>>>>>> the
>>>>>> image to take up the whole space, so there is no empty space on the
>>>>>> sides,
>>>>>> so they should be scaled if they are too small.
>>>>>>
>>>>>> This is what I have now:
>>>>>>
>>>>>>
>>>>>> plugin.tt_news {
>>>>>> displayList {
>>>>>> image {
>>>>>> file {
>>>>>> width = 150c
>>>>>> height = 100
>>>>>> maxWidth = 150
>>>>>> maxHeight = 100
>>>>>> }
>>>>>> }
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> Forsome reason this makes images 120 x 90 pixles, why's that? I set
>>>>>> it
>>>>>> to
>>>>>> 150x100, or have I got my TS wrong?
>>>>>>
>>>>>> Sometimes the image are portrait sometimes landscape. Whatever it is,
>>>>>> I
>>>>>> want
>>>>>> TYPO3 to automatically size to my size and scale it so the image
>>>>>> takes
>>>>>> up
>>>>>> the whole space.
>>>>>>
>>>>>> How can I achieve this?
>>>>>>
>>>>>> -----
>>>>>> --
>>>>>> Stephen Bungert
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/resizing-images-in-tt_news-tp18260193p18260193.html
>>>>>> Sent from the TYPO3 English mailing list archive at Nabble.com.
>>>>>>
>>>>> _______________________________________________
>>>>> TYPO3-english mailing list
>>>>> TYPO3-english at lists.netfielders.de
>>>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>>>>
>>>>>
>>>>
>>>> -----
>>> _______________________________________________
>>> TYPO3-english mailing list
>>> TYPO3-english at lists.netfielders.de
>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>>
>>>
>>
>>
>> -----
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
-----
--
Stephen Bungert
--
View this message in context: http://www.nabble.com/re-sizing-images-in-tt_news-tp18261487p18279890.html
Sent from the TYPO3 English mailing list archive at Nabble.com.
More information about the TYPO3-english
mailing list