Showing posts with label Images. Show all posts
Showing posts with label Images. Show all posts
Saturday, April 21, 2012

Vertical pictures turned horizontal - solution

0 comments
Bloggers are complaining that when they upload vertical pictures to Blogger post, these vertical pictures are turned horizontal which is not what they want.

The solution is to go to the picture in Picassa Web Album and rotate it:

picassa web album picture rotate





Continue reading →
Wednesday, February 8, 2012

Animated gif image: How to change size

0 comments
This in response to a question in Uploading animated .gif image to Blogger post which asked: "please tell me how to change height and width of that image?"

The answer is very simple if you just know a little of HTML. To display a picture on the web, an image tag <img> is used. Thus:

<img src="image URL" />
(just concentrate on img leaving aside src if you are not familiar with HTML)

To change the size, just add the attributes width="some number" and height="some number" (Note: the picture will be distorted {aspect ration changed) unless you keep the ratio constant. The task will be made easier if you just add the width attribute only leaving out the height and the height will be adjusted accordingly.

For example, in the HTML to display the animated gif image in Testing uploading animated gif image (image replicated below),

gif image uploaded direct from Blogger post editor

the following code is used:

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm2KZ2cJ4qLyyUXs-lhKNKABK2Vk-sg0__wXuLDM0z1MiOMU5bk_TfyQI6tcwx2YkNYHbBR3m9NCg3jzN_sfAg2Mt_od_gqNX8fW1JgLXBdLJJUYS2XvpduJQ01Y_Xjt5TVzRWWPb3knA/s1600-h/starandbird.gif"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm2KZ2cJ4qLyyUXs-lhKNKABK2Vk-sg0__wXuLDM0z1MiOMU5bk_TfyQI6tcwx2YkNYHbBR3m9NCg3jzN_sfAg2Mt_od_gqNX8fW1JgLXBdLJJUYS2XvpduJQ01Y_Xjt5TVzRWWPb3knA/s400/starandbird.gif" border="0" alt="gif image uploaded direct from Blogger post editor"id="BLOGGER_PHOTO_ID_5108675258397126626" /></a>

Now when I add width="350" to the img tag as shown below (note: just concentrate on img and ignore the rest):

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm2KZ2cJ4qLyyUXs-lhKNKABK2Vk-sg0__wXuLDM0z1MiOMU5bk_TfyQI6tcwx2YkNYHbBR3m9NCg3jzN_sfAg2Mt_od_gqNX8fW1JgLXBdLJJUYS2XvpduJQ01Y_Xjt5TVzRWWPb3knA/s1600-h/starandbird.gif"><img width="350" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm2KZ2cJ4qLyyUXs-lhKNKABK2Vk-sg0__wXuLDM0z1MiOMU5bk_TfyQI6tcwx2YkNYHbBR3m9NCg3jzN_sfAg2Mt_od_gqNX8fW1JgLXBdLJJUYS2XvpduJQ01Y_Xjt5TVzRWWPb3knA/s400/starandbird.gif" border="0" alt="gif image uploaded direct from Blogger post editor"id="BLOGGER_PHOTO_ID_5108675258397126626" /></a>

the image is enlarged as in the image below:

gif image uploaded direct from Blogger post editor

Update: Tip: Always specify both the height and width attributes for images. If height and width are set, the space required for the image is reserved when the page is loaded. However, without these attributes, the browser does not know the size of the image, and cannot reserve the appropriate space to it. The effect will be that the page layout will change during loading (while the images load).

Tip: Downsizing a large image with the height and width attributes forces a user to download the large image (even if it looks small on the page). To avoid this, rescale the image with a program before using it on a page.

Source: W3schools: HTML width Attribute.


Now to make it smaller, the attribute width="50" is added instead as in

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm2KZ2cJ4qLyyUXs-lhKNKABK2Vk-sg0__wXuLDM0z1MiOMU5bk_TfyQI6tcwx2YkNYHbBR3m9NCg3jzN_sfAg2Mt_od_gqNX8fW1JgLXBdLJJUYS2XvpduJQ01Y_Xjt5TVzRWWPb3knA/s1600-h/starandbird.gif"><img width="50" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm2KZ2cJ4qLyyUXs-lhKNKABK2Vk-sg0__wXuLDM0z1MiOMU5bk_TfyQI6tcwx2YkNYHbBR3m9NCg3jzN_sfAg2Mt_od_gqNX8fW1JgLXBdLJJUYS2XvpduJQ01Y_Xjt5TVzRWWPb3knA/s400/starandbird.gif" border="0" alt="gif image uploaded direct from Blogger post editor"id="BLOGGER_PHOTO_ID_5108675258397126626" width="50"/></a>

and as expected, the animated picture is now smaller:

gif image uploaded direct from Blogger post editor
Continue reading →
Friday, October 28, 2011

Will old images disappear when changing to custom domain?

0 comments
The answer is no. Images will remain as long as the Google/Blogger account they are associated with is not deleted. I have checked one of my oldest post - How to change the date and time of your post which has a screen shot and which is dated Monday, May 01, 2006, way before I converted the blog to custom domain.
Continue reading →
Friday, October 14, 2011

Upload text and picture direct from computer

0 comments

There are bloggers who want to be able to prepare their posts including text and photos in their computer and upload it direct to Blogger. Some have tried using copy-paste from Microsoft WORD which obviously will not work.

Here is a solution - Windows Live Writer. To add a photo while in Windows Live Writer, either click the photo icon or use the INSERT drop-down menu as shown in the screen shot below:



If you wish, you can also add an album. Click PHOTO ALBUM. For this, you will have to have a Window Live ID and be logged in. Once logged in, click ADD PHOTO and browse to the photo in your computer you want to add to the album. Then click OPEN and the photo will be added to the album.

I have tested this at Test uploading photo from Windows Live Writer and found that it works well.

RELATED POSTS:
Easily publish tables with Windows Live Writer

Windows Live Writer plugin
Continue reading →
Tuesday, April 19, 2011

Uploading animated .gif image to Blogger post

0 comments
I tested uploading animated .gif image to Blogger post at Testing uploading animated .gif image to Blogger.

Conclusion of the test is, if you upload the animated image direct via the Blogger photo upload icon Google Blogger photo upload icon, the image will no longer be animated as you can see from the first image which was uploaded via the via the Blogger photo upload icon Google Blogger photo upload icon in the toolbar of the Blogger post editor.
Read rest of post >>>
Continue reading →
Monday, September 20, 2010

Make images uploaded via Blogger unclickable

0 comments
Many bloggers want their uploaded images not clickable probably because they don't want their images especially the enlarged version to be copied. Previous post How to make images not clickable (not enlarge) provided a method in varying circumstances may not work.

Here is a more efficient method and failsafe method. All one need to do is after uploading an image via Blogger image upload icon to switch to Edit HTML mode if one is not already in this mode.

Now depending on which post editor you had use, the HTML codes used to display images that Blogger generate upon uploading is different. We will deal with the old post editor (my preferred post editor) first as it is easier to explain and deal with the new updated post editor later:

CODES FOR THE OLD POST EDITOR:
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigNRUPJuLGSIYOCO9ZPMYyRLjkoIpJhKdfri1lBoo_3i0NOWrP6Vt0RqF8l9jgPxuyvqaGIYJ7XWPcM2NcIbl21dSKpsT-mzpwm_mFducqOTQo5MrTO6SV-tSJ0_qJ_DVgM0An2xuH_Zbe/s1600-h/BlogStar.gif"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 178px; height: 67px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigNRUPJuLGSIYOCO9ZPMYyRLjkoIpJhKdfri1lBoo_3i0NOWrP6Vt0RqF8l9jgPxuyvqaGIYJ7XWPcM2NcIbl21dSKpsT-mzpwm_mFducqOTQo5MrTO6SV-tSJ0_qJ_DVgM0An2xuH_Zbe/s400/BlogStar.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5373085274943228530" /></a>

Please note that only the code in black is needed to display the image. Those highlighted in red are not needed to display the picture and can be removed safely leaving only
<img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 178px; height: 67px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigNRUPJuLGSIYOCO9ZPMYyRLjkoIpJhKdfri1lBoo_3i0NOWrP6Vt0RqF8l9jgPxuyvqaGIYJ7XWPcM2NcIbl21dSKpsT-mzpwm_mFducqOTQo5MrTO6SV-tSJ0_qJ_DVgM0An2xuH_Zbe/s400/BlogStar.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5373085274943228530" />.

Thus to make the image not clickable, all you need to do is just to delete those codes highlighted in red. I have tested that successfully over at Test to make images uploaded via Blogger not clickable.

New post editor

We will now deal with the new post editor which is not my preferred post editor. The codes to display the uploaded image generated by Blogger with the new post editor is as follows, again with the code to display the image in black while the codes in red are to make the image clickable to display an enlarged image. The codes in blue is to center the picture and can either be removed or left in place (note: center will be replaced by left or right if you had elected to float the image to the left or right but that will not affect the explanation to make the image not clickable):

<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ku-km6DXaWf3Lil-j0OXS9aW9TQIFM2MRQDUIoTgnh4UlRfMBtZixCM9RVuPtqvo7tNDVFMJpGsYTAO9qEjQWrZZmxZKu0jgpnJGaLsxxaDKaYIEvtCXXOJTGIV1vdhqFPfwI-9BhFrk/s1600/BlogStar.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9ku-km6DXaWf3Lil-j0OXS9aW9TQIFM2MRQDUIoTgnh4UlRfMBtZixCM9RVuPtqvo7tNDVFMJpGsYTAO9qEjQWrZZmxZKu0jgpnJGaLsxxaDKaYIEvtCXXOJTGIV1vdhqFPfwI-9BhFrk/s320/BlogStar.gif" /></a></div>

Again, only the code in black is needed to display the image while those in red are used to make the image clickable to enlarge the image while those in blue is meant to center the image. Thus if you want the image not clickable, just delete those highlighted in red (<a....> and </a>) and those highlighted in blue too leaving those in black intact and the image will still be displayed. Alternatively we can just delete those codes in red to make the image unclickable while leaving those in blue intact to center (or float) the image.
Continue reading →
Sunday, April 25, 2010

Guest post: Animated gif images, Blogger and Photoshop

0 comments
Welcome to Steve Wallet, Architect, Blogger Tips and Tricks first guest blogger with his post on working with animated gif images, Blogger and Photoshop. As for me, I only use free software, namely Irfanview and PC Paint, so I hope Steve's post will provide useful information which I am not able to provided for those who like graphic heavy posts or blogs:


I saw Peter's article about adding .gif's to blogger (Uploading animated .gif images to Blogger post), and thought I'd give it a try. I wanted to make .gif's and post them directly to my blog, without all the complicated html and uploading from other websites. After much trial-and-error, I have created simple .gif's for my blog.

I use Adobe Photoshop and ImageReady, version 7. This article will make much more sense if you are familiar with Photoshop.

What I've learned so far.
Read rest of post >>>
Continue reading →
Wednesday, October 28, 2009

Updated post editor: remove image border

0 comments



First thing to note is that with the Blogger updated post editor, you can only upload pictures in the compose mode. To remove border from uploaded photo, you will need to edit the HTML used to display the photo and that you can only do in the Edit HTML mode where in place of the photo, you will see this script:

<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3JSOOrb_5SQmQ6BC4vkrkIO84O_SjkGEXUPsx7merVFrngN0aMDhvDLQ4bDUSO1TEyr8jddMXNzFR0ObRumYhw3KvkyY57aOYZShAWijUFiGU-Wfn9UE7S-9smkfEjfTUBEeNhBVa-3c/s1600-h/kimchi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3JSOOrb_5SQmQ6BC4vkrkIO84O_SjkGEXUPsx7merVFrngN0aMDhvDLQ4bDUSO1TEyr8jddMXNzFR0ObRumYhw3KvkyY57aOYZShAWijUFiGU-Wfn9UE7S-9smkfEjfTUBEeNhBVa-3c/s320/kimchi.jpg" /></a>
</div>
Now one would think that the attribute border="0" would ensure that the displayed picture would not have a border, but it does, as you can see in that photo of kimchi (Korean version of sauerkraut or fermented cabbage) above.

In order to make the border disappear you can add this attribute style="border:none;" to the <img> tag like this:

<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3JSOOrb_5SQmQ6BC4vkrkIO84O_SjkGEXUPsx7merVFrngN0aMDhvDLQ4bDUSO1TEyr8jddMXNzFR0ObRumYhw3KvkyY57aOYZShAWijUFiGU-Wfn9UE7S-9smkfEjfTUBEeNhBVa-3c/s1600-h/kimchi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img style="border:none;" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3JSOOrb_5SQmQ6BC4vkrkIO84O_SjkGEXUPsx7merVFrngN0aMDhvDLQ4bDUSO1TEyr8jddMXNzFR0ObRumYhw3KvkyY57aOYZShAWijUFiGU-Wfn9UE7S-9smkfEjfTUBEeNhBVa-3c/s320/kimchi.jpg" /></a>
</div>

and the result of that edit is this photo minus the border:




Update: As a result of test removing border from images uploaded via Blogger I have found out that the attribute style="border:none;" must be placed before src="photo URL" and not after.

Update 2: "Hi Peter, How about adding an image border? Simply changing border="0" to border="5" or "10" and making sure my colors were correct didn't cut it. Please help."

My response: Since Blogger add border to images as a default, I suppose one does not need to do anything to have border with images and to prove that, I uploaded 2 photos, first with the updated post editor, then with the old post editor, both without editing the codes. As you can see below, both are framed with a border:





Related posts:
Related posts:
Images and the Blogger updated post editor
New Blogger updated post editor - Birthday gift?
Continue reading →
Tuesday, October 20, 2009

Images and the Blogger updated post editor

0 comments

Previously with the old Blogger post editor, when you upload images, Blogger adds an alt="" tag for you to complete as seen in an example below:

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihU4p_QeJpSiB_A8FtAWHOiaSE8qYPzOVma6byNzYfLdoeLX0wU5IfDpMRD7Sc0G0tnerMm03u6g9XaP58BaCYJ1IQM6lR6w1-xJHSvhC6S01dsS4a6mZrcIJt68F43hUqK2btF6hgWgU/s1600-h/comments+blogger+tips+and+tricks.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihU4p_QeJpSiB_A8FtAWHOiaSE8qYPzOVma6byNzYfLdoeLX0wU5IfDpMRD7Sc0G0tnerMm03u6g9XaP58BaCYJ1IQM6lR6w1-xJHSvhC6S01dsS4a6mZrcIJt68F43hUqK2btF6hgWgU/s400/comments+blogger+tips+and+tricks.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5206091386300350402" /></a>

Now with the updated post editor, you will only have the image upload icon in the COMPOSE mode and Blogger also inserts codes different from the above example to display the image (visible only in the Edit HTML mode) illustrated by the example below:

<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKKHasDbRfppWczPUQBiDVt7UiuRB4FOvvSmg7tNUWQ8SqDmc_2iSaQcTNw5MJQocsx4ZXGwVU1P2U6gy7CSxrqbsv4k3NudyKcckT_IBtjy1pK5V1GBBzhKaNkChqPpcr83K9CDNdg0A3/s1600-h/kimchi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKKHasDbRfppWczPUQBiDVt7UiuRB4FOvvSmg7tNUWQ8SqDmc_2iSaQcTNw5MJQocsx4ZXGwVU1P2U6gy7CSxrqbsv4k3NudyKcckT_IBtjy1pK5V1GBBzhKaNkChqPpcr83K9CDNdg0A3/s320/kimchi.jpg" vr="true" /></a>
</div>


The code which actually display the image is highlighted in green above. Although in this case, Blogger wasn't as considerate to add the alt tag for you, you can still add it in yourself together with the title tag if you wish like the example below:

<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKKHasDbRfppWczPUQBiDVt7UiuRB4FOvvSmg7tNUWQ8SqDmc_2iSaQcTNw5MJQocsx4ZXGwVU1P2U6gy7CSxrqbsv4k3NudyKcckT_IBtjy1pK5V1GBBzhKaNkChqPpcr83K9CDNdg0A3/s1600-h/kimchi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKKHasDbRfppWczPUQBiDVt7UiuRB4FOvvSmg7tNUWQ8SqDmc_2iSaQcTNw5MJQocsx4ZXGwVU1P2U6gy7CSxrqbsv4k3NudyKcckT_IBtjy1pK5V1GBBzhKaNkChqPpcr83K9CDNdg0A3/s320/kimchi.jpg" vr="true" alt="Kimchi, Korea's signature dish" title="Kimchi" /></a>
</div>


Note: You can switch between the old post editor and the updated post editor by signing into Dashboard, SETTINGS > BASIC and near the bottom of the page, you will see this for your selection:

selecting Blogger post editor

Related posts:
Blogger updated post editor: Removing image border
New Blogger updated post editor - Birthday gift?
Continue reading →
Monday, September 28, 2009

Picture to link to label page or any webpage

0 comments
"I have a picture on my side bar, I would like to link it to all labels containing say books. There are five post under that label, and when my guest push the picture of the books, I would like the page to pop up only the posts with the label, Books."

Well, that is easily done. First you have to be familiar with hyperlink, namely using <a href="URL of target webpage">anchor text (some text descriptive of target webpage)</a>. And since you want the link to go to the label page "Books", that URL will be the URL of the label page of "Books" which you can get by right-clicking on the label "Books" in the sidebar and selecting "Copy link location".

You also need to be familiar with uploading pictures to the web and getting the picture URL like what is described in Using Blogger to host pictures.

Now the required codes are

<a href="URL of target webpage"><img src="picture URL" /></a>

and if that is not clear enough, ask.
Continue reading →
Saturday, August 29, 2009

Using Blogger to host images for various purposes

0 comments

Summary: Upload photo via photo upload icon, publish. Open post. Click on photo, press ctrl+U to display source code, copy photo URL from source code.

Nearly all bloggers would be familiar with uploading photo via Blogger photo upload icon Blogger photo upload icon. However, you can only display the photo in 3 limited sizes - small, medium and large. (Update: this is referring to uploading photo in the old post editor, not the new updated post editor, but what follows still remain true). Clicking on such images generally result in a larger image displayed.

You cannot directly use such uploaded images, say, to put in the sidebar, for your Blogger profile photo or to use the image as a link to another webpage or to display images side by side. For such purposes, the photo need to be uploaded to a webhost which allows inline linking or hotlinking (also called leeching, piggy-backing, direct linking, offsite image grabs and bandwidth theft).

One of such webhost is the free Photobucket image host. This post will be about using Blogger itself as a host for the images for inline linking.

I prefer to use Blogger for image hosting as I prefer my blog stuff to be stored all in the same host. If you plan to do the same, may I suggest you create a new blog for this purpose, as I have at My Photo Store and upload your photos for profile photo, backround image, etc., there.

When you upload a photo to Blogger using their photo uploading icon and you are in the EDIT HTML mode, you will see in place of the photo the following HTML code:

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxND0de3HBmpsV0oyEE5EBfOsbPOl2z1bVEfUPWXsajAHOAWx_0yKGYgjE6kVOrUZmD6rN-ZGnmF8EobqFdWTKjPTByTD5zoBydGBBiQT2XXMdVUz3iOfjcn_dWhiTODx0tT-6ASKWeXea/s1600-h/music+resized.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 296px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxND0de3HBmpsV0oyEE5EBfOsbPOl2z1bVEfUPWXsajAHOAWx_0yKGYgjE6kVOrUZmD6rN-ZGnmF8EobqFdWTKjPTByTD5zoBydGBBiQT2XXMdVUz3iOfjcn_dWhiTODx0tT-6ASKWeXea/s400/music+resized.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5369413094705735826" /></a>


Such uploaded photos can be used for inline linking for profile photo, etc.You will see 2 URLs in the code. You can use the second one for inline linking (in red). However, it is better to do the following:

Publish, click on the photo which will take you to a webpage where only the photo will be displayed. Press ctrl+U to open page source and get your photo URL there. I will upload a photo below and use that as an example. You may click on the photo and verify for yourself what I am going to write:



Click on the above photo, you will be taken to a webpage where only the photo of my grandson is displayed. Press ctrl+U and the source code is revealed


<html>
<head>
<title>lewis+apple+5.JPG (image)</title>
<script type="text/javascript">
<!--
if (top.location != self.location) top.location = self.location;
// -->
</script>
</head>
<body bgcolor="#ffffff" text="#000000">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTiDp21j4iCXjSrwUkFsrcluH9EsOl_Qp4t9kyUl4brS0MDpHo14ifmEFqYU-UK2YqXbX1oM9VsxuRBviLcBv8jw3IoweQ84hei4ec3iqEoilXR7OgRjRNs_PgbcYMGlI629jU9cT-6FY/s1600/lewis+apple+5.JPG" alt="[lewis+apple+5.JPG]" border=0>
</body>
</html>


and within the code is the photo URL (in red above) which you can use for inline linking.

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTiDp21j4iCXjSrwUkFsrcluH9EsOl_Qp4t9kyUl4brS0MDpHo14ifmEFqYU-UK2YqXbX1oM9VsxuRBviLcBv8jw3IoweQ84hei4ec3iqEoilXR7OgRjRNs_PgbcYMGlI629jU9cT-6FY/s1600/lewis+apple+5.JPG
Continue reading →
Saturday, May 9, 2009

Tips: Uploading images via Blogger post editor image upload icon

0 comments
If you are already familiar with Blogger HTML codes for displaying uploaded images, alt and title tags, skip to Tip to avoid having to upload twice after making a mistake editing

Well I don't know how much of a tip this is going to be, but it is a procedure that I follow when uploading images through Blogger post editor and which I figure is important if you are even just a little teeny weeny bit serious about blogging and also if you want to avoid problems. I always use the EDIT HTML mode and practically never the COMPOSE (WYSIWYG) mode. To the uninitiated, that may be a bit unsettling as when in the EDIT HTML mode, the image is replaced by a block of seemingly undecipherable codes like the one below (please don't get frightened by the "gibberish" as you do not need to understand fully the codes in order to productively uses it):

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYxR7NgGxwPvRAo4X25O-txhyphenhyphenRYzlw5bvLqyEzXauvzdppVkvBYDzoghWXfUHoGS45i22fuwqASITniKx-0TBJOrethFYrYRiYhDEQuOGhWNkhdDo5mgGATfOoMZjp2rJELZRH15ctMdg/s1600-h/090508+siva03.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYxR7NgGxwPvRAo4X25O-txhyphenhyphenRYzlw5bvLqyEzXauvzdppVkvBYDzoghWXfUHoGS45i22fuwqASITniKx-0TBJOrethFYrYRiYhDEQuOGhWNkhdDo5mgGATfOoMZjp2rJELZRH15ctMdg/s400/090508+siva03.jpg" border="0" alt="Sivakumar being manhandled by Special Branch thugs"id="BLOGGER_PHOTO_ID_5333720398637462818" title="Perak Speaker Sivakumar being manhandled by Special Branch thugs" /></a>


which is code to display the image below:

Sivakumar being manhandled by Special Branch thugs

Now I sincerely hope that those who shun HTML and always use the COMPOSE (WYSIWYG) mode will seriously consider switching over to the EDIT HTML mode as that offers various advantages and will allow one to do things that one cannot do in the WYSIWYG (what you see is what you get) mode.

One of them is you will be able to complete the alt and title tags in the HTML code to display the image. The alternate (alt="") tag is for you to write some texts descriptive of the image which when for some reasons the image cannot be displayed, instead of an empty box, the alternate text will be displayed in place of the image. There is a further advantage from the point of view of SEO (search engine optimization) as while search engines cannot read images, it can read the text in the alt="" tag and so can tell the search engines what the image is all about.

I also add a title="" tag and this is to enable visitors to hover the mouse over the image whereupon a "tool tip" will appear with the text you write into the title="" tag (try hovering your mouse over the photo above).

Now it is possible that when editing the image HTML codes for example when editing the alt tag or adding the title tag, having the INSERT mode off, editing caused part of the codes to be over-written and caused the image HTML codes to be corrupted thus forcing you to upload the image again. To avoid this, read the next section.

Tip to avoid having to upload twice after making a mistake editing

Now by default, irrespective of where your mouse cursor is when uploading image, the image (or its representative codes if in the EDIT HTML mode) will always be at the top of the post, and if you want the image elsewhere, you will have to move it there. My habit is to copy-paste instead of cut-paste. This is because when I edit the image and if something goes wrong (I mistyped or deleted something) while editing, instead of having to re-upload the image (and wasting storage space), I just delete the messed-up codes and recopy-paste from the original codes. When all editing have been done correctly and safely, I will then surround the original codes with the comments tags <-- and --> and the original code will be hidden and not displayed. To make this clearer, I will reproduced the image codes below together with the comments tags to hide the image:

<--
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYxR7NgGxwPvRAo4X25O-txhyphenhyphenRYzlw5bvLqyEzXauvzdppVkvBYDzoghWXfUHoGS45i22fuwqASITniKx-0TBJOrethFYrYRiYhDEQuOGhWNkhdDo5mgGATfOoMZjp2rJELZRH15ctMdg/s1600-h/090508+siva03.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYxR7NgGxwPvRAo4X25O-txhyphenhyphenRYzlw5bvLqyEzXauvzdppVkvBYDzoghWXfUHoGS45i22fuwqASITniKx-0TBJOrethFYrYRiYhDEQuOGhWNkhdDo5mgGATfOoMZjp2rJELZRH15ctMdg/s400/090508+siva03.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5333720398637462818" /></a>
-->
Continue reading →
Monday, June 2, 2008

Tip: Complete the alt="" for images uploaded via Blogger

0 comments
keep in mind what follows only apply when preparing posts in the EDIT HTML mode and not in the COMPOSE (WYSIWYG) mode.

screen shot showing Blogger post editor in Edit HTML mode plus highlight image upload icon and Preview link

I prepare practically all posts in the [Edit HTML] mode and you are highly encouraged to do the same. You get better control over your blog. HTML is not difficult, and as you browse through my Blogger related blogs (this blog as well as the blogs in my signature line at the bottom of this post), you will eventually pick up the more important elements of HTML. I guarantee you it will not be difficult. If you are more familiar with the COMPOSE (WYSIWYG or What You See Is What You Get) mode, don't fret. You can always check by clicking "Preview" and get WYSIWYG displayed, just as in the COMPOSE mode.

A typical script you will get after uploading the image is given below:

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihU4p_QeJpSiB_A8FtAWHOiaSE8qYPzOVma6byNzYfLdoeLX0wU5IfDpMRD7Sc0G0tnerMm03u6g9XaP58BaCYJ1IQM6lR6w1-xJHSvhC6S01dsS4a6mZrcIJt68F43hUqK2btF6hgWgU/s1600-h/comments+blogger+tips+and+tricks.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihU4p_QeJpSiB_A8FtAWHOiaSE8qYPzOVma6byNzYfLdoeLX0wU5IfDpMRD7Sc0G0tnerMm03u6g9XaP58BaCYJ1IQM6lR6w1-xJHSvhC6S01dsS4a6mZrcIJt68F43hUqK2btF6hgWgU/s400/comments+blogger+tips+and+tricks.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5206091386300350402" /></a>

you will get when you upload an image like the one below (Update: If you use the updated post editor you will have to add the alt="" tag yourself, otherwise use the old post editor to upload images):

Blogger Dashboard: 72 comments waiting for moderation

Note the alt="" highlighted in red. This is a HTML attribute which had been added by Blogger for your convenience. You are greatly encouraged to put some text between the quotation mark "", like for example, alt="some text" where "some text" are text which is descriptive of the image. For example, for the image above, I have edited alt="" to alt="Blogger Dashboard: 72 comments waiting for moderation".

The purpose of this alt attribute is so that if for some reason the image cannot be displayed, the ALTERNATIVE TEXT that you have put between the quotation mark in the alt="" attribute will be displayed instead. It will also be of the help to the visually handicapped as the alt text will be read out for them. Also some visitors may be using all text browser which will see the alt text instead of the image. Further, search engines which cannot read images will be able to read the alt text an idea of what the image is about.
Continue reading →
Sunday, March 30, 2008

Background graphic for blog

0 comments

I would be very careful with adding a graphic background to a blog as the photo must be selected carefully, otherwise, something on the blog become very hard to read or may even become invisible. Anyway look at blog with repeating graphic background.

Instructions on how to add a repeating graphic background to a blog

I would first assume you have a graphic or photo that will suit color of the text, hyperlinks, etc. Save it into your computer into a folder where it can be easily found. Now you have a choice of the free Photobucket image host or hosting it by uploading to a post in Blogger. In my case, I have chosen to host the photo at photo of clouds for blog background.

The very first thing you need to do is to get the correct photo URL. In that post, I will click View > Page source (the language may differ a little in different web browsers) in the menu bar at the top of the web browser:

Flock social web browser View Pagesource

Since the title of the post is "Photo of clouds for blog background", I will press ctrl+F and a search box will appear. I copy-paste all or part of the above post title and click "Find Next" to get to the section of the Page Source where the scripts to display the post is. I found:

<img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXp70-E_Di7tVjG74zfcU6nvCX8n2yAewFrzOu3_Yg5UHk3R4UAlKUibe_it0crZPmVyXQfOahD6_M0DUrPJjeS7QrX958AuEONMvImkgcXtStWqgYugjW_HBopGNIL-VexM0A4yxe-DJm/s400/cloud+ktratboy+cropped.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5183480981056349650" />


and after src=" I found the URL of the photo:

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXp70-E_Di7tVjG74zfcU6nvCX8n2yAewFrzOu3_Yg5UHk3R4UAlKUibe_it0crZPmVyXQfOahD6_M0DUrPJjeS7QrX958AuEONMvImkgcXtStWqgYugjW_HBopGNIL-VexM0A4yxe-DJm/s400/cloud+ktratboy+cropped.jpg


I then go back to blog with repeating graphic background (this is best done in a different tab of a web browser while signed into Blogger like FireFox with tabbed browsing. At the top of that blog, you will see the navbar with your email address, "New Post", "Customize", "Sign out".



Clicking on "Customize will take you to the LAYOUT. Click EDIT HTML and that will open the template editor window. Look for

body {
background:$bgcolor;
margin:0;
color:$textcolor;
font:x-small Georgia Serif;
font-size/* */:/**/small;
font-size: /**/small;
text-align: center;
}



and somewhere after {body

create some space for the script to add the graphic background which should be

background-image:
url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXp70-E_Di7tVjG74zfcU6nvCX8n2yAewFrzOu3_Yg5UHk3R4UAlKUibe_it0crZPmVyXQfOahD6_M0DUrPJjeS7QrX958AuEONMvImkgcXtStWqgYugjW_HBopGNIL-VexM0A4yxe-DJm/s400/cloud+ktratboy+cropped.jpg');
background-repeat: repeat


and then that part of the template will become

body {
background:$bgcolor;

background-image:
url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXp70-E_Di7tVjG74zfcU6nvCX8n2yAewFrzOu3_Yg5UHk3R4UAlKUibe_it0crZPmVyXQfOahD6_M0DUrPJjeS7QrX958AuEONMvImkgcXtStWqgYugjW_HBopGNIL-VexM0A4yxe-DJm/s400/cloud+ktratboy+cropped.jpg');
background-repeat: repeat

margin:0;
color:$textcolor;
font:x-small Georgia Serif;
font-size/* */:/**/small;
font-size: /**/small;
text-align: center;
}



Peter Chen's nice graphic signature
Continue reading →
Wednesday, January 2, 2008

Captions for images in blog posts

0 comments
It is always useful for visitors to a blog with images (photos especially) to have a caption and here I am going to describe how I do it for images uploaded via the photo upload icon in the Blogger post editor. There are 2 ways, and I hope to add notes of the advantages and disadvantages of both. Note that all these must be done in the EDIT HTML mode EDIT HTML/COMPOSE tabs in the Blogger post editor, not the COMPOSE (WYSIWYG) mode. Also, in this post, I will give scripts for you to study, and if you find it troublesome to do it on the post itself, you can highlight all the script in the scroll box, copy it, then paste it into a Notepad file to study at your leisure.

Also, each time you upload a photo, the script for the photo (in EDIT HTML mode) or the photo itself (in the COMPOSE mode) will be right at the top of the post, irrespective of where you place the mouse cursor. I prefer EDIT HTML mode rather than the COMPOSE as it gives me better control over how my post will display. Also, my habit is to leave the original script in its original place place at the top of the post, highlight it all, right-click, select "copy", scroll down the post editor window, paste it where I actually want the image. This means I will have 2 copies, the original at the top, and the copy at the spot where it will be eventually. This I feel is safer as if anything happened, you can still get the script from the original at the top, and only delete it when you have everything worked out fine.

For more details, refer to Uploading and manipulating images with Google Blogger (click BACK button to get back to this page).

Add caption direct into the Blogger script for the image>

This is the easiest method. When you upload an image via the photo upload icon in the Blogger post editor, this is how the script may look like:

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifEMtITPAtyzjSi0_IKD6mdU2w_I6KHI1rgZs3VRhdvzqa1ihruiNqba36ewCWAEw-dCLghqjgZtaHQIWO8j3Zjy-2OvCU7InG2IKpk2CD2qYqGnbpkMnZdgrf2WgEvYU-513QYF1r3RAO/s1600-h/Paris+Eiffel+Tower+double+decker+bus+bratan.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifEMtITPAtyzjSi0_IKD6mdU2w_I6KHI1rgZs3VRhdvzqa1ihruiNqba36ewCWAEw-dCLghqjgZtaHQIWO8j3Zjy-2OvCU7InG2IKpk2CD2qYqGnbpkMnZdgrf2WgEvYU-513QYF1r3RAO/s400/Paris+Eiffel+Tower+double+decker+bus+bratan.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5150314784676399554" /></a>


This is what appear at the end of the script:

id="BLOGGER_PHOTO_ID_5150314784676399554" /></a>

Now what I am going to do is to cut out the beginning part of the above to make it shorter, then insert the text "CAPTION" into the script just before the last </a>:

399554" />CAPTION</a>

This CAPTION can be any test you want and will do a demonstration below:

Paris, Eiffel Tower, double decker busCAPTION

Note that I have chosen to upload the photo above as "center" as I only use option like "left" when it is a small photo and I want the text in the paragraph to wrap around the text. Note that while the photo in centered, the caption, is not, and also CAPTION is a link to the larger image on the web containing nothing else but the photo. I suspect this can be overcome by choosing the "left" option when uploading the image, but anticipate problems, unless you do not have any text in the same paragraph as the image. I do not know as I have never done it before, and don't have any need to do it. Leave a comment if you have experience with this and share.

The above does not look nice, so to center the caption, all I need to do is to add the HTML tag <span style="text-align;"> at the beginning of the script and <span style="text-align:center;"> and </span> at the end.

Note also that the above is not my photo, but is the property of David who have kindly given permission to use his photo in a post in another blog: Paris, most popular tourist destination in the world, etc. Note that it is also polite to attribute the source of the photo you use when it is not yours, and normally I acknowledge it by adding a link to whatever website the photo owner wants it. This is done by adding a HTML hyperlink tag <a> and I will put the script I used to display the photo by David at Paris, most popular tourist destination in the world, etc. The script is inside the scroll box below, and it is your job to study it if you want to do something similar, and ask for help if you get into any difficulties.

<div style="text-align:center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifEMtITPAtyzjSi0_IKD6mdU2w_I6KHI1rgZs3VRhdvzqa1ihruiNqba36ewCWAEw-dCLghqjgZtaHQIWO8j3Zjy-2OvCU7InG2IKpk2CD2qYqGnbpkMnZdgrf2WgEvYU-513QYF1r3RAO/s1600-h/Paris+Eiffel+Tower+double+decker+bus+bratan.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifEMtITPAtyzjSi0_IKD6mdU2w_I6KHI1rgZs3VRhdvzqa1ihruiNqba36ewCWAEw-dCLghqjgZtaHQIWO8j3Zjy-2OvCU7InG2IKpk2CD2qYqGnbpkMnZdgrf2WgEvYU-513QYF1r3RAO/s400/Paris+Eiffel+Tower+double+decker+bus+bratan.jpg" border="0" alt="Paris, Eiffel Tower, double decker bus"id="BLOGGER_PHOTO_ID_5150314784676399554" />Photo of Eiffel Tower and double Decker bus
<a href="http://www.flickr.com/photos/bratan/809334835/" target="_blank">by David</a></a></div>


This is not obvious, but there are actually 2 links in the caption, one to the enlarged photo on the web (the one above), and one to the source of the photo (the one below). You can try clicking on them if you want and observe what happen. This is done by typing the text "Photo of Eiffel Tower and double Decker red bus", then pressing the ENTER key to force a line break, then continue with the HTML hyperlink tag to link to the source of the photo (<a href=".....).

I have earlier done it a very slightly different way as you can see in the photos in the post Malaysian students in Paris. Note that except for the first photo, all the captions in all the photos is a single line, not in 2 different lines like above. There are again 2 links in a single line in the caption, one is at the beginning and one at the end. It is not obvious, but since the photo owner, didn't object, I will just leave it as a demonstration. To make the 2 links in separate lines, you must make a line break by pressing the ENTER key when typing out the caption. You can study the script for the above example to better understand. Hopefully, this is very clear as to what can be done.

<div style="text-align:center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR_uuNG2Zz0iIQPuOJQXPpJVjl1gzzaSpnFDtFprt2Nuulqh4wuHhfwg-5l8I7oEha-64NsvdI-3n-MSR9dN85sG-7x2ksVt59eKxceAVmcO-4EyC12M_oJDUxNswf3Omw31R6S9Ok4w5H/s1600-h/Arc+de+Triomphe+sbcar.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR_uuNG2Zz0iIQPuOJQXPpJVjl1gzzaSpnFDtFprt2Nuulqh4wuHhfwg-5l8I7oEha-64NsvdI-3n-MSR9dN85sG-7x2ksVt59eKxceAVmcO-4EyC12M_oJDUxNswf3Omw31R6S9Ok4w5H/s400/Arc+de+Triomphe+sbcar.jpg" border="0" alt="Arc de Triomphe"id="BLOGGER_PHOTO_ID_5148734888299557858" />Arc de Triomphe by <a href="http://www.flickr.com/photos/stephencarlile/487336403/" target="_blank">Stephen Carlile</a></a></div>


Advantages and disadvantages of inserting stuff direct into image script to add caption

The advantage of this method is, it is relatively easy to implement as compared to what follows, which require a bit more of HTML. The disadvantage is that the caption will always be a link, and you cannot have plain text or add a title which is possible in the second method.

As to having the photo aligned to the left, I have never tried adding captions to such images, but anticipate problems, so don't want to try. But if you have done it before, and willing to share your experience, I hope you will leave a comment with a link to the post where you have done it.

Use HTML tags for table

Another way to add caption using the HTML table tag <table>. You can see an example of that in the post Malaysian married couple's honeymoon in Greece. In the first method, you cannot avoid captions as links. In this case, you can see the caption are plain text, not link. The way to do it is to upload your image via the photo upload icon in the Blogger post editor, select the "center" option, then upload. In the script for the image at the top of the post, add some descriptive text in the alt="" attribute in between the 2 quotation marks "" (highly recommended), highlight all the script, right-click, choose "copy" (or press ctrl+C), scroll down to where you want the image to be, right-click and choose "paste" (or press ctrl+V). This method will be a bit more complicated if you are not familiar with HTML, but let us press ahead and if you concentrate, you can do it and learn more HTML in the process. Note: it is important you do not press the ENTER key at any point while typing the HTML for the table or you will find large empty space above your photo. If you have difficulties in doing this, refer to Easy way to avoid large blank space above table when using the <table> HTML tag (click BACK button to get back to this page).

Type this at the beginning of the image script:

<table style="text-align:center;"><tr><td>

I will explain what all the gibberish is all about so you know what we are doing. <table is to tell the web browser we want to display a table. style="text-align:center;"> is to tell web browser we want things to be centered. <tr> is to indicate the beginning of a table row. <td> stand for table data. In this case, the table data is the script to display the image. Practically all HTML tags occurs in pairs, opening tags like those above, and closing tags. Now we need to add the closing tag at the end of the image script. At the end of the image script, type

</td></tr><tr><td>

</td> closes the table data tag, </tr> closes the table row tag, <tr> tells the web browser we are beginning a new table row and <td> tells the web browser we are starting a new table data, in this case, the caption. Just type the caption you want, then end it with
</td></tr></table>, the corresponding closing tags. For your better understanding, I will put the script to display one of the photos in the post Malaysian married couple's honeymoon in Greece below:

<table style="text-align:center;"><tr><td><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK0VevBeIftCGP1JcEVDlPhZnorA_DZszt8YdTqIxAJItXpBnk3bAB7RvAwzA6rbENaMAyE2OhphKy7ZxYGsh4RIKhUZahsh4Br08Npbpwvrb-mZTxrmzYSF-YEN8TE4jEHwFWn54P6CeL/s1600-h/C-G2+athens.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK0VevBeIftCGP1JcEVDlPhZnorA_DZszt8YdTqIxAJItXpBnk3bAB7RvAwzA6rbENaMAyE2OhphKy7ZxYGsh4RIKhUZahsh4Br08Npbpwvrb-mZTxrmzYSF-YEN8TE4jEHwFWn54P6CeL/s400/C-G2+athens.jpg" border="0" alt="Athens, Greece"id="BLOGGER_PHOTO_ID_5142985947882370546" /></a></td></tr><tr><td>Athens: Photo courtesy of Blogger Employee</td></tr></table>


Instead of just plain text, you can also include link, for example, link to the source of the photo you took from, or to the website the photo owner wants to be linked to. For an example, have a look at Kuala Lumpur Terry Fox run. Look at the second photo in the post, the one of the National Museum of Malaysia. It has both a title and a caption, and within the caption, there is a link to the source of the photo (actually, by now, I have my own photo which I can use, but didn't at that time). Note that the photo was used with permission of the owner.

To have both title, photo, caption, you must have a 3 rows table. This is a long post, and I am a bit tired by now and have other things to do, so just going to put the script to display the photo of the National Museum of Malaysia below in a scroll box for you to examine, analyse and learn:

<table style="text-align:center;"><tr><td>Muzium Negara Malaysia (National Museum of Malaysia)</td></tr><tr><td><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJNz6hCDG3wQmfVRn72aRp7M0SB8Oq9ZsrBUd59qbEhTLwSDi82KIgEB4zHE7dsvJNoZWuBI9nlxC4S7Zo5Am5iTbpL5c6Yy4yIrIjPY6IC0CayvHee8gh8ljdAH6VOJ2U7ksOZu0To91c/s1600-h/muzium+negara+superciliousness.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJNz6hCDG3wQmfVRn72aRp7M0SB8Oq9ZsrBUd59qbEhTLwSDi82KIgEB4zHE7dsvJNoZWuBI9nlxC4S7Zo5Am5iTbpL5c6Yy4yIrIjPY6IC0CayvHee8gh8ljdAH6VOJ2U7ksOZu0To91c/s400/muzium+negara+superciliousness.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5121489457128623986" /></a></td></tr><tr><td>Photo by <a href="http://www.flickr.com/photos/superciliousness/125144914/" target="_blank">superciliousness</a> under Creative Commons license</td></tr></table>


Acknowledgement: I got the idea of using <table> from Chuck or Nitecrutz of The real Blogger status but am now putting it in hopefully easily digestible form. I am going to add some HTML you can just copy-paste and then just edit to get what you want:

(later, got to finish something first)

You can also add a border to the table if you want. Just add an extra attribute border="1" to the HTML tag for table. If you want a thicker border, just increase the number from more than 1, the bigger the number, the thicker the border. I did this for one post, and found out that it caused problems. The table with the photo extend into the right sidebar, and in Internet Explorer 6, the right sidebar was pushed to the bottom of the post. I can't remember if I corrected the problem or left it as it is, but if I find it later, I will post a link. In the meantime, I need to finish this post and move on to other things.

Advantages of using table to add title and caption to photo

Advantages of using table is you can add both title and caption, the the capti0n can be just plain text or if you wish, a combination of text and link. Advantage is, it is slightly more complicated if you are not familiar with HTML and involves more work.

Update 30 January 2008: I have started using a different method and waiting for time to publish instructions. If interested, bookmark blog or subscribe in the email subscription box in the left sidebar.

Peter Chen's nice graphic signature
Continue reading →
Tuesday, October 30, 2007

Nice image signature for your posts using signature generator

0 comments
Have a look at this post: Signing post with nice graphic signature. This is much nicer than the one I did (was mainly for demonstration purposess) at Sign post with image signature (click BACK button to get back to this post). That was done with the free free Ifanview photo edito (click BACK" button to get back to this page), this "live signature" generator produces almost hand-written like signature, and is obviously more attractive looking. I was planning to do a real hand-written image signature with Paint, but that would make a pretty scratchy signature unless you can control your stroke very well. I think I will leave that to the future, if ever.

Thanks to Amanda of Blogger Buster who created an easy to use image graphic signatue generator which she called "live signature" and using the wizard, by making a couple of choices, I was able to generate the graphic signature to put at the bottom of the post with very little fuss. When you are done with selecting your choices, you will end up in this page:

My Live Signature

First to the the "live signature" site and generate the graphic signature you like. You will end up with a graphic signature image. Right-click on the image and select "Save image as" and save it into your computer. Before you can use it, you have to upload it to the web, You can use the Free Image and Video Hosting. You will have to get the photo URL. The process of getting the photo URL is explain in the lower half of this post Uploading and manipulating images for Blogger (click BACK button to get back to this page).

Another way is to create a special post or a special blog for the purpose of hosing the image. Upload it in the usual way, view the post, click on the graphic image signature that you have uploaded. (see Graphic image signature: Test

You will be taken to a page containing only the graphic signature image. Click VIEW > PAGEB SOURCE in the menu bar and a new window will appear containing the page source. I will put the actual page source in the scroll box below:

<html>
<head>
<title>Peter+Chen+signature.png (image)</title>
<script type="text/javascript">
<!--
if (top.location != self.location) top.location = self.location;
// -->
</script>
</head>
<body bgcolor="#ffffff" text="#000000">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnsIFCgBW3a85gcI57CiiX1COd4CDWwCNK9Yiw1Pnr3l0lVioLSs_o9mbf8Vw6iMrfWP9fS5cViKAZfuaRyGlantV-ENVxC0udprGCreCvd8C8-LfKmqj3i87lFsN9SYZ3xs3hNR9LIf95/s1600/Peter+Chen+signature.png" alt="[Peter+Chen+signature.png]" border=0>
</body>
</html>


The photo URL is highlighted in red. Copy this and preferably paste it into a Notepad file so you can get it anytime your like.

Then type at the bottom of the post the HTML for an image:

<img src="photo URL" alt="some text to describe the image" />

where the photo URL is what you see highlighted in red in the scroll box above.

Now if you don't want to have to go to the trouble of typing this image HTML each time you create a new post, go to SETTINGS > FORMATTING and at the bottom, you will have the POST TEMPLATE, a box for you to paste the abovve img tag into the box. Save the setting. After that, each time you create a new post, this img tag will automatically appear in your post editor. Just type your content above the img tag.

Continue reading →
Friday, October 26, 2007

Sign post with image signature

0 comments
Here are the instruction on how to sign your post with an image signature. You can see a demonstration at Papaya: Healthy and cost effective fruit. The signature is in text form, but it can be "hand written" as well. Instruction for this will follow later.

I first used the free and very good Irfanview photo editor (click BACK button to return to this page) to create a blank image. Once Irfanview is opened, I click IMAGE > CREATE NEW (EMPTY) IMAGE in the menu bar at the top, set the width and the height of the image, choose the background color, then click OK. In the newly created image, I drag and drop the mouse to make a selection where I want my signature to be displayed, click EDIT > INSERT TEXT INTO SELECTION, type my signature, tick "transparent if I want the text to be transparent or select the background color for the text otherwise. Select the font family and font size, select text alignment (left, center, right), then click OK. If you find it unsatisfactory, it is very easy to change. All you need to do is to repeat the steps above, all the original settings and text will still be there, change what you need and click OK again. Once satisfied, save the signature image into your computer.

You will next have to upload the image signature to the web. There are many ways to do that. What I did is to create a new post in a blog specially for this purpose, and you can see the image signature uploaded at Signature image for blog post. I clicked on the signature image which gets me taken to a web page containing only the image. I then click VIEW > PAGE SOURCE which will cause a new window to open, displaying the source code for that page. I past below in the scroll box the source code I obtained:

<html>
<head>
<title>signature.jpg (image)</title>
<script type="text/javascript">
<!--
if (top.location != self.location) top.location = self.location;
// -->
</script>
</head>
<body bgcolor="#ffffff" text="#000000">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQDId72jn8k_gHxl9GdWsJYRf5E8TLRGkqAeeO6VoWiEVZraHngQAdpOSs9iCLaVIfGwQgaBiF_TWEM9nS5Fgofey3dGI1FdqJJpwXh-w_v-Hc0jCRac1k3rTvBo1CRbEqG_0jvhHtksnb/s1600/signature.jpg" alt="[signature.jpg]" border=0>
</body>
</html>


The photo URL is highlighted in red. I click and drag the mouse over the URL, right-click and chose "copy" (or ctrl+C) to copy into the clipboard. My habit is to open a Notepad file and paste it there so I can always get it when I want.

I then type the HTML for an image at the bottom of the post. The HTML will be of the form

<img src="photo URL" alt="some descriptive text" />

The photo URL will of course be replace by the actual photo URL highlighted in the scroll box above. Preview, and if satisfied, publish.

I put the actual HTML to display the image signature in the scroll box below:

<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQDId72jn8k_gHxl9GdWsJYRf5E8TLRGkqAeeO6VoWiEVZraHngQAdpOSs9iCLaVIfGwQgaBiF_TWEM9nS5Fgofey3dGI1FdqJJpwXh-w_v-Hc0jCRac1k3rTvBo1CRbEqG_0jvhHtksnb/s1600/signature.jpg" alt="image signature" />


Once you have created this HTML, you can have the HTML in every new post you create by clicking the SETTINGS > FORMATTING tabs, paste the HTML into the post template at the bottom and save the settings. You then don't need to retype the HTML each time you create a new post.

If you want a hand written signature, you will have to use Paint that comes with Windows under Accessories. I will add instruction later or more likely make a new post and put the link to that post here.

Continue reading →
Sunday, August 26, 2007

Disable right-click to prvent copying of photos

0 comments
(If you are only interested in how to disable right-click and you don't want to be bothered with all this arguments about why you should not do it, skip all this and go to the bottom of the post).

This has been requested many times, but in my opinion and also the opinions of many others in the know, disabling right-click to prevent visitors from copying your photo is a very bad idea. To me, it is an exercise in futility. If you still want to do it, I will outline how I did it for this blog Right-click have been disabled for this blog. Note that in that post which contains a photo, you can't right-click on the photo.

Before I show how to disable right-click, try clicking on the photo in Right-click have been disabled for this blog. You will be taken to a page with only the photo. Confirm that you can right-click on the image, select "Save image as" and copy the photo into your computer.

If clicking on the photo does not work, you can always click VIEW > SOURCE and look for the HTML used to display the photo. Below in a scroll box is the portion of the source code for that post. There will be two URLs there, one highlighted in red, and one highlighted in green. To see the green one, you will have to scroll down the box:

<div class='post-body'>
<p>There have been numerous requests on a post to disable right-click because it is easy to copy photos by right-clicking on it and selecting "Save image as". Some bloggers just cannot stand the idea of their photo being copied. So this blog is to demonstrate that it is not difficult and is entirely possible. Try right-clicking on the photo below and see what happen:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb3QbO9HFivpNw2npfoxOR-FOSXtrOdPrM13ckzeOB7LlWfoffu3Lj-TK8ylHVBugrC8xUpOmbP9qb9vt7TSkD17pDpjEJyABWGSmF9Ks0XLP4FZnMkt1GOx_pY6-ESRNbJrv-RO3KH0w/s1600-h/MoreCatsInTown+wit+copyright+notice.JPG"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb3QbO9HFivpNw2npfoxOR-FOSXtrOdPrM13ckzeOB7LlWfoffu3Lj-TK8ylHVBugrC8xUpOmbP9qb9vt7TSkD17pDpjEJyABWGSmF9Ks0XLP4FZnMkt1GOx_pY6-ESRNbJrv-RO3KH0w/s400/MoreCatsInTown+wit+copyright+notice.JPG" border="0" alt="Photo with copyright notice. Right-click disabled"id="BLOGGER_PHOTO_ID_5103238216347446514" /></a><br /><br />It is better that you add a copyright notice to your photo using a simple free photo editor like <a href="http://blogger-tricks.blogspot.com/2006/10/using-irfanview-photo-editor-for.html" target="new">Irfanview</a>. More expensive photo editors like Adobe Photoshop can also embed digital watermarks in images which are not visible, but can be detected electronically in case you need to take legal action. But tell me, how many bloggers are prepared to go to court over copyright infringements?<br /><br />This impediment can also cannot deter a determined copycat. All he has to do is to click VIEW > PAGE SOURCE and look for the HTML used to display the photo. He can then go to that page and copy the photo from there. Another easy way is just to take a screenshot.<br /><br />Further, this can cause many inconveniences for your visitors. I am used to right-clicking on a link and choosing the page to open in a new tab with a browser like <a href="http://firefox-alert.blogspot.com/2006/09/what-is-firefox-and-why-you-should-be.html" target="new">FireFox</a> which has tabbed browsing. However, try right-clicking on the link above and see if you can do it?</p>
<div style='clear: both;'></div>
</div>
<div class='post-footer'>

<p class='post-footer-line post-footer-line-1'>
<span class='post-author'>

Posted by Peter Chen

</span>


You will be able to find the URL of the photo in the HTML. Just copy the URL and paste it into the address bar of a new tab with a browser like FireFox which has tabbed browsing. If you copy-paste the first URL (highlighted in red) into the address bar of the browser press ENTER and you will be taken to the page with the photo where you can right-click and copy the photo. If you copy-paste the second URL (highlighted in green) and press the ENTER key, you will get a "pop-up" to either open the image with a photo editor or a photo viewer, or save it into your computer.

Another simple way is just to take a screenshot by pressing PRINTSCREEN, open up a photo editor like Irfanview (click BACK button to get back to this page), paste the screenshot into the photo editor window, crop the section you want if necessary, and save.

Fashion Critic also left a comment stating you can also (my own addition: minimise the window so that the desktop is visible) and drag the picture into your desktop. I tested that at Right-click have been disabled for this blog and found that it worked. So I hope you are convinced that disabling the right-click will only inconvenient your visitors but wouldn't do much to help prevent those who want to copy your photos from doing so.

A better way is to add a copyright notice to your photo as described in Put a copyright notice into your photo. More expansive photo editor like More expensive photo editors like Adobe Photoshop can also embed digital watermarks in images which are not visible, but can be detected electronically in case you need to take legal action. But tell me, how many bloggers are prepared to go to court over copyright infringements? But you do have the option to report the copyright infringement by report it to relevant parties by emailing abuse@google.com, abuse@blogger.com, etc., but whether action will be taken will be completely up to them.

Disabling right-click will also cause great inconveniences to your visitors. I used FireFox browser with tabbed browsing and frequently right-click on a link and chose "open in new tab". I get very irritated when I can't do this. I have put two links at Right-click have been disabled for this blog. Try right-clicking on the links there and see what happens. I also often right-click on a link and select "copy link location" to copy the URL into clipboard, but I can't do that for the above blog.

If you cannot stand your photo being copied, don't upload them to the web is my motto.

Disabling right-click

OK, after all the talk about why you should not disable right-click, if you still want to do it, this is how I did it for Right-click have been disabled for this blog. Sign into Blogger to get to the Dashboard, click LAYOUT for the blog which you want to disable right-click. Click the TEMPLATE tab, followed by clicking on EDIT HTML sub-tab. This will take you to the template editor. Search for the tag

<body>

I then added the line oncontextmenu="return false;" into the <body> tag so that it becomes

<body oncontextmenu="return false;">

Review, and if you don't get any error messages, save the template.

Acknowledgement: This tip was adapted from Disable right-click on page.
Continue reading →
Related Posts Plugin for WordPress, Blogger...