Page 1 of 1

Image resizing

Posted: Mon Mar 17, 2008 1:28 pm
by dwinters
Is there a way of declaring in the content block that images used will be resized to not break the resulting web page?


Something like {content block='bla2' imageforce='h320w210'}

So that if an image is uploaded into that content block the image would be resized to 320x210

Or if {content block='bla2' imageforce='h320'} the resize to height 320 fixed proportions.


Also while on the subject of {content} blocks what other variable / settings can be set I an aware only of .. oneline='true'}

Thanks

Dan Winters

Re: Image resizing

Posted: Tue Mar 18, 2008 3:40 pm
by Pierre M.
Hello Dan,
dwinters wrote: Is there a way of declaring in the content block that images used will be resized to not break the resulting web page?
Something like {content block='bla2' imageforce='h320w210'}
There are people complaining about hosting limits : CPU usage, time or memory limit...
I don't care about this because I have kept my old 20th century habit about this subject : I pre-design/compute images before uploading them. Hence they are usable on my website whose layout is unbreakable.
dwinters wrote: Also while on the subject of {content} blocks what other variable / settings can be set I an aware only of .. oneline='true'}
What about reading the help or the manual about this ?
Feel free to point out what is unclear in them so they can be improved.

Pierre M.

Re: Image resizing

Posted: Mon May 12, 2008 3:14 pm
by dwinters
Sure I was just trying to stop users breaking the design after the site is given for them to edit and break!

I read on the rules I should only post if I cannot find it in the help manual - this may sound daft but where is the searchable help manual you refer to?

Thanks sorry to be dim :-(

Dan

Re: Image resizing

Posted: Mon May 12, 2008 3:18 pm
by calguy1000
why not do this in css.... not sure if it's possible, but couldn't you do \

img {width: 300px; height: 200px; }

though I think this would probably stretch any images that were smaller than those dimensions....
worth a try though.

Re: Image resizing

Posted: Mon May 12, 2008 3:23 pm
by Wiedmann

Code: Select all

img {width: 300px; height: 200px; }
I would only use width or height (if the ratio of the original picture is not the same).

Re: Image resizing

Posted: Mon May 12, 2008 3:27 pm
by dwinters
Yes I could use css - the only slight problem is that the image could be huge and I wanted to resize and keep the right size, so viewers dont get a bloated page, guess I am trying to control users, I should know better!

Where is the help manual and is it searchable? i can only seem to get answers out of this forum... which is great but I dont want to waste your valuable time with silly question I should be able to find answers to.

Thanks again

Dan

Re: Image resizing

Posted: Mon May 12, 2008 4:28 pm
by Pierre M.
dwinters wrote: Where is the help manual and is it searchable? i can only seem to get answers out of this forum... which is great but I dont want to waste your valuable time with silly question I should be able to find answers to.
See "Documentation" in the above menu.

Pierre M.