mattastic — 2012-06-26T08:38:11-04:00 — #1
I'd like to have a background image as below. Problem is its really big and takes a while to load.
I've just set it to the background of the body tag.
Can anyone please tell me the most efficient way to create a background graphic like this? and which screen resolution should I design it for?
ralphm — 2012-06-26T09:20:35-04:00 — #2
That image looks like it will tile, so I'd suggest that you cut out a square section of it that can repeat infinitely, and apply it to the body element.. Then, on the main content div, place as a background image a semi-transparent, circular gradient image from white in the center to transparent on the outside that will give the light center effect.
mattastic — 2012-06-27T04:44:16-04:00 — #3
Thanks for the replies.
Could you please tell me what type I need for the image, will jpeg do it?
spikez — 2012-06-27T04:47:19-04:00 — #4
Jpeg for the wallpaper and a png for the shadow would be fine.
mattastic — 2012-06-27T06:20:33-04:00 — #5
Thanks again for you reply.
Just to confirm, what type of PNG is it, 8, 24 or 32?
Does the canvas need to be trans?
And is it alpha or index trans?
ralphm — 2012-06-27T09:39:23-04:00 — #6
Sometimes 8 is fine, but 24 will give you better quality—especially in a gradient. I'd say only go to 32 if you really have to. I've never used it. With all these questions, just experiment around a bit and see what looks best, and weigh that against file size. The simpler the better.
dresden_phoenix — 2012-06-27T18:46:31-04:00 — #7
You know, this would be a perfect job for progressive enhancement.
If you create a repeating tile AND a vignette, you would end up making a MUCH heavier D/L.
1) there would bve two HTTP request
2) You would still have to make ONE large file
3) that large file would have to support multiple layers or transparency, so its' going to have to be a PNG 24 or 32 in other words HUGE FILE
I would opt for a little math and a JPG.
1) you can use as is and fade the bottom out to a solid color ( or not, if this is the bg to your page, you could use background-position fixed, so that the content would scroll but not the image)
2) Use as is + add a repeating jpg ( making sure the vignette and tyles end at a concurrent point .. this mean MATH! and yes two http request )
3) a JPG and CSS3 radial gradient as a second element bg ( for browsers that support it). even experiment with background-size property of the second ( vignette) bg so that it adjust (or doesn't) to fluid layouts. With CSS3 you can also mix and match from my suggestions above for optimal results
ilovemedia — 2012-07-12T21:20:04-04:00 — #8
There seems to be a repetition of tiles in the photo. You might just need to focus on one tile and repeat it a number of times depending on your size preference.
ziarumon — 2012-08-02T11:33:52-04:00 — #9
I would just use illustrator for everything. If your just putting it on top of a background, there's no reason why you can't use illustrator. Then your logo stays in a vector format, which I always think is best.
keithkarr — 2012-08-10T12:16:45-04:00 — #10
Trace it in illustrator, create a tiled image [ patch work if you will ] then export your gif, png, jpeg...what ever you prefer!