Shape 5

General Category => General Talk/Questions/Comments => : bellatrix November 19, 2014, 02:48:11 PM



: Custom Background Image Size: format?
: bellatrix November 19, 2014, 02:48:11 PM
Is it possible to assign a size to the images in the background section of templates?
Which is the format in Vertex --> "Custom Background Image Size" ?

Thanks.


: Re: Custom Background Image Size: format?
: mikek November 19, 2014, 06:58:49 PM
Hello,

The background-size function that you mentioned above will do this. Or you can add it directly to custom.css.


: Re: Custom Background Image Size: format?
: bellatrix November 19, 2014, 11:33:05 PM
Hi, Mikek.
To speed up the page load I would like to specify the size of the images.
What is the format?
For example, with=1200px ... or 1200px or again, 1200 ...?


: Re: Custom Background Image Size: format?
: mikek November 20, 2014, 10:22:47 AM
Hello,

You can enter a custom size to whatever you would want, however using px dimensions is almost unheard of for background sizes. Typically you would use percentages, which you can already select from in the drop downs. Or use "cover" to automatically fill all the available space.


: Re: Custom Background Image Size: format?
: bellatrix November 20, 2014, 11:46:30 PM
My idea is to force / constrain the image dimensions by WIDTH and HEIGHT attribute specifications, allowing the page to be loaded before images.
With CSS styles this way doesn't work, and all sites are suffering from this problem.

To give an example, by specifying images within IMAGE FADER module, and forcing values in the PHP code, results are lighting fast and loading is pretty much instantaneous.
I would like to do the same in the Vertex- Background section.

Could you help me?
You can control by yourself all loading times on assistenzadivorzio.it (http://assistenzadivorzio.it) or laghettobalneabile.eu (http://laghettobalneabile.eu)

Thanks!


: Re: Custom Background Image Size: format?
: mikek November 21, 2014, 08:10:56 AM
Hello,

Changing the background size call is never going to change the load speed of your site. It's the same of the actual image itself that can change the load speed. I'm not sure what direction you are looking for in regards to the background-size call. As I stated above there is already a drop down in the vertex admin to do this called "Background Image Size Option", that drop down presents you with all the options available. If you're looking for some custom size to use you would need to enter that in the field below that, we don't provide services for setting up custom sizes for you though.