Image resizing

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
dwinters
Forum Members
Forum Members
Posts: 53
Joined: Mon Mar 17, 2008 12:46 pm

Image resizing

Post 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
Pierre M.

Re: Image resizing

Post 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.
dwinters
Forum Members
Forum Members
Posts: 53
Joined: Mon Mar 17, 2008 12:46 pm

Re: Image resizing

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Image resizing

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Wiedmann
Forum Members
Forum Members
Posts: 233
Joined: Wed Mar 26, 2008 1:49 am

Re: Image resizing

Post 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).
dwinters
Forum Members
Forum Members
Posts: 53
Joined: Mon Mar 17, 2008 12:46 pm

Re: Image resizing

Post 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
Pierre M.

Re: Image resizing

Post 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.
Post Reply

Return to “CMSMS Core”