[TYPO3-dev] How to use Image-Object for higher resolutions ?
Stefan Geith
typo3dev2008.nospam1 at geithware.de
Thu May 21 11:50:58 CEST 2009
Hi Devs,
I'm trying to create PDFs from my HTML via pdf_generator2.
For this, I would like to have 'higher resolutions' of my images
but with sill the same width/height parameters in <img>-tag.
Question:
Is there a way /a trick to get an IMAGE-Object, that renders internally
a higher width/height than it fills into the width/heigt-params of the
<img>-tag ?
E.g. Original Image has 1024x768.
What I need is
<img src="xxx.jpg" width="160" height="120" />
With either xxx.jpg beeing the original (unscaled) image
or xxx.jpg is scaled to (160x4) x (120x4) = 640x480.
Is this possible with cObj->IMAGE ?
If not: maybe new TS-parameters for IMAGE would make sense:
- image.file.noRescale=1 ==> doesnt rescale the image
with ImageMagick, but simply calculates the
height/width-Parameters of the image-Tag
- image.file.resolution=n ==> rescales image n-time
bigger than used by height/width-Parameters
/Stefan
More information about the TYPO3-dev
mailing list