moziloCMS Supportforum

Allgemeines => In English, please! => Thema gestartet von: Lou Marshall am 22. September 2016, 11:05:54

Titel: Size of Image
Beitrag von: Lou Marshall am 22. September 2016, 11:05:54
Hi I am new to Mozilo and I am updating the company website.  I would like add an image but restrict the size height and width? Using the Syntax image (Bild) how can this be achieved?
Many thanks
Louise
Titel: Re: Size of Image
Beitrag von: wasp am 23. September 2016, 09:15:10
Hello und welcome to mozilo!  :)

First please excuse my English and the delayed response.

Currently there is unfortunately no way to alter "bild", "bildlinks" or "bildrechts"
images' (display) size via the editor.

Depending on your demands and possibilies ("one/few/almost all images must be resized",
css-skills, update frequency of webiste, used template, etc.) here are some basic
suggestions:

Resize images offline before upload exactly with your preferred tool (proven, best method)

or

Edit the according CSS attributes of .contentimage, .leftcontentimage, .rightcontentimage in
the related CCS-files inside the folder of the used, active template (handicap: takes effect
on all images of the respective class)

or

Create new syntaxelements, for example:

bildparameter = <img src="{DESCRIPTION}" class="contentimage" style="{VALUE}">
bildparameter_left = <img src="{DESCRIPTION}" class="leftcontentimage" style="{VALUE}">
bildparameter_right = <img src="{DESCRIPTION}" class="rightcontentimage" style="{VALUE}">

and use them as follows in the editor, for example:

[bildparameter=@=Categoryname:Filename-via-dropdown.jpg=@|border:1px solid red;width:150px;]

or

Works only for gallerys : Resize images during the upload process using the resize option -
Here you can also set the size of the preview-images/thumbnails which could be deviant
used as images (gallerys contain one or more images). In order to display gallerys a
plugin like slimbox, colorbox, fancybox, etc. is required ( available for download here:
http://www.mozilo.de/forum/index.php?action=media  (http://www.mozilo.de/forum/index.php?action=media)) - very abstract / beta

these are my first thoughts ...  :-\