[TYPO3-core] RFC #16375: Add a new TypoScript option "resolution" to the image resource

Stefan Geith typo3dev2010.nospam1 at geithware.de
Tue Nov 16 12:41:18 CET 2010


Am 16.11.2010 10:12, schrieb Steffen Gebert:
> [...]
> Some nitch-picking:
> * $originalImageIsSmaller instead of $origImageIsSmaller
> * What t
> * I prefer the $originalImageIsSmaller condition split up for better
> readability
> * "// params could realisticly change some imagedata!" what does this
> mean? I know it's not from you, but realisticly is no word. Can we
> improve that comment? Replacing it with "realistic" gives me not so much
> more understanding, without reading all the code. "$params could have
> changed image data"?
>
> Please check attached patch!

+1 by testing
+1 by reading

If someone needs some TS to test (needs image fileadmin/demo.jpg);
Test by zooming in with broswer (Firefox [Ctrl]+[+ Sign on NumericPad}:

page >
page = PAGE
page.typeNum = 0
page.10 = TEXT
page.10.value = IMAGE-Test<hr />

page.100 = IMAGE
page.100.file = fileadmin/demo.jpg
page.100.file.width = 240m
page.100.wrap (
  | 100: width=240m<br />

  )

page.101 = IMAGE
page.101.file = fileadmin/demo.jpg
page.101.file.width = 240m
page.101.file.resolution = 72
page.101.wrap (
  | 101: width=240m, resolution=72<br />

  )

page.110 = IMAGE
page.110.file = fileadmin/demo.jpg
page.110.file.width = 240m
page.110.file.resolution = 200
page.110.wrap (
  | 110: width=240m, resolution=200<br />

  )

page.112 = IMAGE
page.112.file = fileadmin/demo.jpg
page.112.file.width = 240c+70
page.112.file.height= 240c
page.112.file.resolution = 200
page.112.wrap (
  | 120: width=240c 240c, resolution=200<br />

  )

page.120 = IMAGE
page.120.file = fileadmin/demo.jpg
page.120.file.width = 240m
page.120.file.noRescale = 1
page.120.file.noScale = 1
page.120.wrap (
| 120: width=240m, noRescale=1<br />

  )


page.121 = IMAGE
page.121.file = fileadmin/demo.jpg
page.121.file.width = 240m
#page.120.file.noRescale = 1
page.121.file.resolution = 2000
page.121.wrap (
| 121: width=240m, resolution=2000<br />

  )

page.130 = IMAGE
page.130.file = fileadmin/demo.jpg
page.130.file.width = 720m
page.130.wrap (
  | 130: width=720m<br />

  )


#page.150 = IMAGE
#page.150.file = fileadmin/demo.jpg
#page.150.wrap = | 150=original<br />


More information about the TYPO3-team-core mailing list