Showing posts with label Background Image. Show all posts
Showing posts with label Background Image. Show all posts

Sunday, September 30, 2012

Add a Background to a Blogger Post

Sometimes spicing up your Blogger posts with image manipulation can be a good thing. Images are a core part of the blogging experience and having some simple tools can make a bland post look great. I wanted to quickly show how you can add a simple near-transparent background to a single Blogger post.

Free Online Image Tool

Adding a background image is really quite simple. Some have tried using many of the CSS transparency tricks to do this but that typically runs into problems with different browsers and versions. The best way is to just find an image, scale it to the right size and then lighten it up for the illusion of a transparency.

Ok, I happened to stumble into a free online tool called LunaPic that allows you to either capture an image online or upload an image while giving you basic image editing features. You could certainly use another, more sophisticated tool but I thought this gives the basic user the functions needed.

There are really only two things you'll want to do with your image editing tool - scale the image down to close to your blog post window size and lighten or brighten the image so it looks washed out - or, gives it a transparency feel.

So, I'll first apologize for the LunaPic interface - it really is pretty bad. However, I'm going to add a background to this post for the example. First, go to the free LunaPic Editor. Here's the main screen - choose the 'Browse...' button to find an image from your disk:

Edit Images for Blogger Posts

I've chosen a 3MB image from my digital camera. Once you pick the image you'll need to select the 'Upload Now!' button and it should show up on the LunaPic screen like this:

Add a Background Image to Blogger Posts

You can see that I circled the 'Edit' menu item above. Choose the 'Resize Image' option if your image is really large. In my cse this image is 4000x3000 pixels - much too large:

Edit Blogger Images

I decided to scale the image down to 700x525 just so I don't use a bunch of Google storage but also to fit on the post a bit better. Be sure to keep your aspect ratio right. In my case my original was 4 by 3. So, if I set the width to 700 then multiply by 3/4 to get the height. Otherwise just eyeball it.  Enter the values and press the 'Resize Image' button like this:


Next step is to lighten up the image as much as you can so that it looks very transparent. Hover over the 'Adjust' menu item and select 'Brightness' like this:


You'll want to make the image fairly light so that your text doesn't get muddled in the image when you post. Use the slider bar to the right to lighten it. Once set, select the 'Set Brightness' button to save your change. Once done you can now save your image back to your computer by scrolling down to the bottom of it like this:


Note that you can also Undo any changes in your history as well. Go ahead and save the image back under a new name by selecting the 'Save To: Your Computer' option. You're now ready to add the image to your post.

Adding an Image Background to a Blogger Post

The next trick is to upload your modified image to Blogger so that it is saved for the background. Google will keep the image in storage so don't worry about losing it. You'll just want to upload the image directly to your post using the Blogger post editor Image button:


Simply select the image you just saved from LunaPic using the image 'Browse' button and uploading it like so:



Once you've uploaded the image, Blogger will have the URL of it buried within your HTML of the post. You're going to want to copy the URL location of that image. You'll want to first find that URL within your post so you can copy it for later. Since you just added it - it should be at the very end of the HTML like this:


You can see that I added my LunaPic image to this very post in the HTML. I've shown you what specifically to copy to use later as the backgroud. Be sure to copy it now and paste it into a word processor or notepad. Once copied, go ahead and go back to the 'Compose' view of your post and delete the image from within the post itself that you just added. Don't worry! It is still out on Blogger's storage.

Now that you have your image uploaded you'll need to add this div tag to the second line of your blog posting's HTML. Note that I added some padding so that your text is slightly indented from the image:

<div style="background: url(&quot;your-full-blogger-image-url-here.jpg&quot;); 
padding: 5px;">
Copy this line and paste it just after the post's first <div> tag that should look pretty close to this when viewing your post in the editor. Select the 'HTML' button in the upper left and add your line. Be sure to replace 'your-full-blogger-image-url-here' with the URL you copied earlier:

<div dir="ltr" style="text-align: left;" trbidi="on">

<div style="background: url(&quot;your-full-blogger-image-url-here.jpg&quot;);
padding: 5px;">
Your blog's Post text here....

Be sure to add a </div> end tag to the very bottom of your full post in the HTML to have the tags balance:
</div>

Once you've done that be sure Blogger isn't complaining about your tags and take a look with the 'Preview' button to see if all looks good.

That's it! You're done. A couple of notes to point out. First, the background image will not span through the title of the post and may have a margin depending on your template. You could try to add this deep within the template itself and create so type of CSS style tag to flag certain posts. This would be very difficult.

Enjoy!

Posted By my pwiki5:13 PM

Saturday, March 10, 2012

How to Add a Background Image to Blogger

Since the new template designer came out some years back, adding a background image to Blogger is no longer a template customization anymore. You can now add a background that either scrolls with your blog posts or remains fixed in the background (my preferred setting).

The key consideration is that your image should be large to fit to most screen sizes on monitors especially if you want it to cover the full width of many different types of displays. It is not enough anymore to focus on 1024 by 768 screens when large HD monitors can now have resolutions much higher such as 1920 by 1080.

The steps are very easy and I'll lead you through it.

Using the Blogger Template Designer


First step is to get yourself into the Blogger template design by selecting the Template menu from the Blogger main menu and then selecting the Customize button as shown in the diagram below:

Once you've selected the customize button you should see the Blogger Template Designer menu:


Select the Background menu item on the left that I circled above. This will take you to the default background image positioning dialog for your blog. To actually add an image, click on the little down arrow just to the right of the blank white image:

Blogger Background Image

At this point the background image dialog appears and you now have the option of adding some pre-built backgrounds offered by Blogger, or, you can upload your own image from your personal set of photos, graphics or illustrations.


Uploading Your Own Blogger Background Image


To select your own image choose the Upload image menu option shown here:

The upload browse selection will appear - choose to Browse... you own file system :

For this example I found a cityscape photo in my Pictures directory of my laptop. Once selected and uploaded, Blogger shows you a snapshot of the background image like this:

Your own image is now ready to be used as your Blogger blog's background. If you don't like your first choice, just go back and pick another image. Be sure to click on the orange Done button once you find your best image.

Setting the Background Properties


At this point you'll be back in the Blogger Template Designer background image menu. Here is where you can set the properties of your image. The key settings to note are the Alignment which allows you to set the image to the left, right, top, bottom, etc and if the image will be tiled (meaning, the image will be repeated left-right, top-bottom if the screen is very large:


My preferred settings are to align the image in the center, tile it for very large screen and to turn off the  Scroll with page so that the background stays fixed while the user scrolls through your blog posts like so:


There you have it - a background image for your blog! Don't forget to hit the Apply to Blog button in the upper right of the screen before you leave the page with the << Back to Blogger selection:


Remember, with your background image you should try to find as large a picture as possible that will fill a 1920 by 1080 screen. If not, something that looks good as a repeatable pattern works too. Also, if you don't tile your image, then on very large screens the picture will have white borders which looks a bit odd (especially on a something like a large Mac screen).

Note - there does seem to be an issue with Blogger for some larger images not showing up in the background. Just be aware to choose another image or scale your image down if necessary.

Here's a simple example I've done using one of my test blogs - http://seo-tags-goodness.blogspot.com/

Posted By my pwiki11:00 AM