[TYPO3-core] RFC #11177: Feature: New options noRescale and resolutionFactor for getImgResource()

Stefan Geith typo3dev2010.nospam1 at geithware.de
Fri Jan 15 12:11:31 CET 2010


Reminder #1 for 4.4-dev


Stefan Geith schrieb:
> Reminder #5 - or #6 :| ?
> 
> Stefan Geith schrieb:
>> REMINDER #4.
>>
>>
>> Stefan Geith schrieb:
>>> Hi,
>>>
>>> this is a SVN patch request.
>>>
>>> Type: Feature
>>>
>>> BT Reference: http://bugs.typo3.org/view.php?id=11177
>>>
>>> Branch: trunk
>>>
>>> Problem:
>>> Sometimes a higher resolution as the display-resolution of an Image 
>>> (TS IMAGE-Object) is needed.
>>> E.g. if you want to render PDFs from your HTML-Output, you coulld 
>>> need higher resolutions for images, if you want to print them.
>>> This is not possible in the moment.
>>>
>>> Solution:
>>> New options for the imgResource that would be helpful:
>>> noRescale=1 -> creates image, as ususal, but doesn't resize original 
>>> file
>>> resolutionFactor=N -> creates an image, that has N times higher 
>>> resoultion than displayed
>>>
>>> Example:
>>> Imagine an uploaded Image of size 1500x1000 pixel.
>>> If you create an IMAGE-Tag by TS with width=320m, then the Image will 
>>> be rendered to 480x320 pixels and the width/height-params of the 
>>> created <img>-tag will be also 480x320.
>>> If you want to zoom-in on the website or you want to create a PDF 
>>> from the page, then the resolution is to low.
>>> With use of noResize=1 an IMAGE-Tag will be rendered with 
>>> width/height-params 480x320, but the src-param will be the _original_ 
>>> image (having 1500x1000 pixels).
>>> With use of e.g. resolutionFactor=2 an IMAGE-Tag will be rendered 
>>> with the Image scaled to 960x640 pixels and the width/height-params 
>>> of the created <img>-tag set to 480x320.
>>>
>>>
>>> Greetings from Würzburg,
>>> /Stefan Geith
>>
>> _______________________________________________
>> Before posting to this list, please have a look to the posting rules
>> on the following websites:
>>
>> http://typo3.org/teams/core/core-mailinglist-rules/
>> http://typo3.org/development/bug-fixing/diff-and-patch/
>> _______________________________________________
>> TYPO3-team-core mailing list
>> TYPO3-team-core at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core
> 
> 
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
> 
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core




More information about the TYPO3-team-core mailing list