BTW how do I render an image that I want to resize in
the browser but without resizing it on the server?
You can't from the XWiki syntax. If the image has its width/height
specified then it is resized on the server:
[[image:logo.jpg||width="150" height="100"]]
Why would you want to download a 1024x768 image when you view it at only
150x100? If you call:
getImageURL("Space.Page", "logo.jpg", {width:'150',
height:'100'})
then you get a URL to a scaled version of logo.jpg image that has width
150 and height 100, which is IMO exactly what you are expecting.
For ex, if I want the image to be displayed in
the page but I also want to be able to give a URL to the full size image?
Currently I don't see this as a real use case. What do you want to
achieve with this? How is the user interacting with the image?