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

Stefan Geith typo3dev2008.nospam1 at geithware.de
Mon May 25 09:09:57 CEST 2009


Hi Franz,

Franz Koch schrieb:
> Hi,
>> 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
> 
> sorry, I like the general idea, but I don't like the way it's done. The 
> "resolutionFactor" is somewhat odd to me. For me it would make much more 
> sense to actually define the dpi (Dots Per Inch), so that based on the 
> given width and height and the dpi you can calculate the total 
> dimensions (default for screen are 72dpi).  

OK: I will change that.
Is the screen-resoution always 72dpi (in this case) or should I use the 
settings in localconf $TYPO3_CONF_VARS['GFX']['TTFdpi'] ?

> Would make much more sense to 
> me and could actually be used for print images. By setting this option 
> the internal dpi value of the image should also get changed (shouldn't 
> be a problem with imageMagick I guess).

Do you know, how this is set with ImageMagick ?

/Stefan


More information about the TYPO3-team-core mailing list