Ads 468x60px

Pages

Showing posts with label Images. Show all posts
Showing posts with label Images. Show all posts

Thursday, September 23, 2010

TinyPic Is Down Forever - Code 010394

*UPDATE: The problem has been solved. See the bottom of this post for Tinypic's explanation on the issue. Now the image links have started working again and you may upload new images too.

Tinypic Image Unavailable CODE 010394Tinypic Image Unavailable CODE 010394: Without a warning, on September 23, 2010 Tinypic has completely stopped its services for all International users (non-US). This not only restrict the users to upload new images to Tinypic, but also to link/use the images that are already uploaded by them.
A few months back, Tinypic stopped new-user sign-ups, but something like this was completely unexpected.
But don't worry, as we do have a temporary & a permanent fix to this problem, keep reading...
This is what Tinypic-Team says:
Tinypic is no longer accepting uploads from international locations, and links are turned off. If you have content on Tinypic, you can still view the URLs and the content, but only on Tinypic. To upload, share, or link content, please go to Photobucket.com to register an account. You will need to upload your content again to your Photobucket account, but you will be able to share and link your images and videos. We’re sorry for the inconvenience and hope that you enjoy Photobucket, our premier image and video site.

But why join Photobucket?
Photobucket is also owned by the same group of people, so after this instance, millions of users around the world no longer trust their service.
Moreover, it is definitely NOT an option at least for me with a storage limit of just 500MB and bandwidth limit of 10GB/month [PB - Free vs Pro].

Temporary Fix
As of now, to quickly view your images and re-upload them to a new image-host, edit your direct-links like this:

Presently a direct link from Tinypic looks like this:
http://i40.tinypic.com/mihsgg.jpg

So, immediately after http:// add the letter "o" in lower-case:
http://oi40.tinypic.com/mihsgg.jpg

Switch to New Image-Hosts (that's the permanent fix)

The two most popular alternate options (that allow hotlinking/direct-linking of images) are ImageShack.us and Imgur.com

I am selecting ImageShack over Imgur, due to these reasons:

Although both of them allow hotlinking, but again both of them lack a good User-Interface (UI) and have at least one major drawback:

At Imageshack, for free users a bandwidth limit does apply:
Imageshack allows 2000mb per hour for each image hosted. Gif images are limited at 500mb per hour. Peak time is from 6:00am to 3:00pm PST. Off peak there are no limits.

And these are the two reasons for not joining Imgur:

Total Account Images 225
Standard accounts are limited to the 225 most recent images. After that, the newest uploads will be shown and the oldest uploads will be bumped out of the account (not deleted, just hidden from within the account). There is no limit to pro accounts.

Image Removal
With standard accounts, images over 1 MB will be compressed until they are less than 1 MB. With pro accounts, your images aren't touched in any way unless they are over 5 MB, in which case they will be compressed until they reach 5MB in size.

So depending on your usage, you may select any one of them. Or if you know a better service, kindly mention it in the comments section below...

*UPDATE: Tinypic has resolved the issue, and has also apologized to all its users:

We heard from many of our users in regards to these changes and we appreciate your feedback. Tinypic has restored linking to your images and enabled uploading. Please rest assured no content was removed from the site. We tried to notify users on Tinypic and requested they move their content to Photobucket. Unfortunately this messaging was insufficient and has taken many of our users by surprise and we apologize. Our intent was to begin combining some of the best features of Tinypic and Photobucket, thereby offering users a better experience. Any changes in the future will be better communicated. Once again, we apologize for the inconvenience.

Monday, September 20, 2010

Make images uploaded via Blogger unclickable

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/AVvXsEggSy7opQ4DpA5L_nLA7XeCWYhLTmmFbObLQDaYgzD2ukOS4vZJCiv6LZBeLT5jNFMl3ljtTWyAkPbTOn0ddLtP6eJ9EdsLHzTMXzM1jG3EmVEqvIIlOqBtSb7XBML2YPdM3iVW9hQX79-n/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/AVvXsEggSy7opQ4DpA5L_nLA7XeCWYhLTmmFbObLQDaYgzD2ukOS4vZJCiv6LZBeLT5jNFMl3ljtTWyAkPbTOn0ddLtP6eJ9EdsLHzTMXzM1jG3EmVEqvIIlOqBtSb7XBML2YPdM3iVW9hQX79-n/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/AVvXsEggSy7opQ4DpA5L_nLA7XeCWYhLTmmFbObLQDaYgzD2ukOS4vZJCiv6LZBeLT5jNFMl3ljtTWyAkPbTOn0ddLtP6eJ9EdsLHzTMXzM1jG3EmVEqvIIlOqBtSb7XBML2YPdM3iVW9hQX79-n/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/AVvXsEg2IYX661zbfwqkcA0MOfaAkctjbZSBHlU670B_8ZiksxeY6PsIhZutn4bl0-b5HGLYtwvI921tk7eaDYcQy8lJpWiEmRu7gc1NGnAyy15AEwXmPptv2IJhl4K1BplLij_IELAJJYpx-uWE/s1600/BlogStar.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2IYX661zbfwqkcA0MOfaAkctjbZSBHlU670B_8ZiksxeY6PsIhZutn4bl0-b5HGLYtwvI921tk7eaDYcQy8lJpWiEmRu7gc1NGnAyy15AEwXmPptv2IJhl4K1BplLij_IELAJJYpx-uWE/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.

Sunday, April 25, 2010

Guest post: Animated gif images, Blogger and Photoshop

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 >>>

Wednesday, October 28, 2009

Updated post editor: remove image border




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/AVvXsEhxAtMhnDPWgv3P-yY53kGD3IgPvKXSf31_plyq6JMB-r_NHePjLZM-WoJHtjGlEcS3x5c6gS0GYqe1N1n0n3UOMcJeqt2_1E6EQtEgM5IRgeKpBRJU55sBmVMtiibc3Dei-GBBIA5Z0l0/s1600-h/kimchi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxAtMhnDPWgv3P-yY53kGD3IgPvKXSf31_plyq6JMB-r_NHePjLZM-WoJHtjGlEcS3x5c6gS0GYqe1N1n0n3UOMcJeqt2_1E6EQtEgM5IRgeKpBRJU55sBmVMtiibc3Dei-GBBIA5Z0l0/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/AVvXsEhxAtMhnDPWgv3P-yY53kGD3IgPvKXSf31_plyq6JMB-r_NHePjLZM-WoJHtjGlEcS3x5c6gS0GYqe1N1n0n3UOMcJeqt2_1E6EQtEgM5IRgeKpBRJU55sBmVMtiibc3Dei-GBBIA5Z0l0/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/AVvXsEhxAtMhnDPWgv3P-yY53kGD3IgPvKXSf31_plyq6JMB-r_NHePjLZM-WoJHtjGlEcS3x5c6gS0GYqe1N1n0n3UOMcJeqt2_1E6EQtEgM5IRgeKpBRJU55sBmVMtiibc3Dei-GBBIA5Z0l0/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?

Tuesday, October 20, 2009

Images and the Blogger updated post editor


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/AVvXsEiLsj_D4DYdzUJ9U18MVkvddfwu4pQ0lUbgoZkWxNNAZZgp0u4u01LOxhTDrIytZb4ZwOEapgCVWeGAqqhW_QIcS56WaYEsbIkanATena22A5NpuKfxIKzM_FAcbBlvSEGjUhHy_NDEibs/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/AVvXsEiLsj_D4DYdzUJ9U18MVkvddfwu4pQ0lUbgoZkWxNNAZZgp0u4u01LOxhTDrIytZb4ZwOEapgCVWeGAqqhW_QIcS56WaYEsbIkanATena22A5NpuKfxIKzM_FAcbBlvSEGjUhHy_NDEibs/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/AVvXsEgNDvsO2-5L3fqFFOdlEfP6l4zmpQvb5RXA25up1a0d3s-1hJrZhfAYXXgcWXCROgkLP0BM_rBs_ZAMvsETaDND4xPF6J3XHk6-hZRH3ahIVyf-XbwU9s6EwGA_gTbdHL_ts3IgYWmaNKuL/s1600-h/kimchi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNDvsO2-5L3fqFFOdlEfP6l4zmpQvb5RXA25up1a0d3s-1hJrZhfAYXXgcWXCROgkLP0BM_rBs_ZAMvsETaDND4xPF6J3XHk6-hZRH3ahIVyf-XbwU9s6EwGA_gTbdHL_ts3IgYWmaNKuL/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/AVvXsEgNDvsO2-5L3fqFFOdlEfP6l4zmpQvb5RXA25up1a0d3s-1hJrZhfAYXXgcWXCROgkLP0BM_rBs_ZAMvsETaDND4xPF6J3XHk6-hZRH3ahIVyf-XbwU9s6EwGA_gTbdHL_ts3IgYWmaNKuL/s1600-h/kimchi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNDvsO2-5L3fqFFOdlEfP6l4zmpQvb5RXA25up1a0d3s-1hJrZhfAYXXgcWXCROgkLP0BM_rBs_ZAMvsETaDND4xPF6J3XHk6-hZRH3ahIVyf-XbwU9s6EwGA_gTbdHL_ts3IgYWmaNKuL/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?

Monday, September 28, 2009

Picture to link to label page or any webpage

"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.

Saturday, August 29, 2009

Using Blogger to host images for various purposes


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/AVvXsEgKweLM1D7N1YjuxYXXga7krYfP-4nAqhUZx0nuVdO7hSWd6xONFKl8jMgop7y_tDHXUn8_p3lq7RSDYT-OOGUTRnUkGKPegoSIItzp3AcmGvhnrvdRl8wfIu59l-g77rT5EDYIthqtU8jm/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/AVvXsEgKweLM1D7N1YjuxYXXga7krYfP-4nAqhUZx0nuVdO7hSWd6xONFKl8jMgop7y_tDHXUn8_p3lq7RSDYT-OOGUTRnUkGKPegoSIItzp3AcmGvhnrvdRl8wfIu59l-g77rT5EDYIthqtU8jm/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/AVvXsEipjO04dFMLYzjVMsSbn_HnO6eHWm4HN-oIhxQCvzmY9YrPmtHvLOmXvilXPV-PWFiCrKiHBpV_UwBCdTRuEFpcjYP5e84eNm4Ri14qDul-gZPYaS-V97m3emNeCHp7mFNgU-Wg_SO53F8/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/AVvXsEipjO04dFMLYzjVMsSbn_HnO6eHWm4HN-oIhxQCvzmY9YrPmtHvLOmXvilXPV-PWFiCrKiHBpV_UwBCdTRuEFpcjYP5e84eNm4Ri14qDul-gZPYaS-V97m3emNeCHp7mFNgU-Wg_SO53F8/s1600/lewis+apple+5.JPG

Saturday, May 9, 2009

Tips: Uploading images via Blogger post editor image upload icon

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/AVvXsEhLyIbKD50n24BcHxvDugjMwTNofK3WIWOx2oYLu1lpfOBKHW3rPw8wn3RdD_zTkl0KMCypyp88QVEayVhMBIZZ9GhM5G_mS9Qv9EGjfhAUQVbOM3tRQIvmDv5dO4m6MumMDBdi0w17vZY/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/AVvXsEhLyIbKD50n24BcHxvDugjMwTNofK3WIWOx2oYLu1lpfOBKHW3rPw8wn3RdD_zTkl0KMCypyp88QVEayVhMBIZZ9GhM5G_mS9Qv9EGjfhAUQVbOM3tRQIvmDv5dO4m6MumMDBdi0w17vZY/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/AVvXsEhLyIbKD50n24BcHxvDugjMwTNofK3WIWOx2oYLu1lpfOBKHW3rPw8wn3RdD_zTkl0KMCypyp88QVEayVhMBIZZ9GhM5G_mS9Qv9EGjfhAUQVbOM3tRQIvmDv5dO4m6MumMDBdi0w17vZY/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/AVvXsEhLyIbKD50n24BcHxvDugjMwTNofK3WIWOx2oYLu1lpfOBKHW3rPw8wn3RdD_zTkl0KMCypyp88QVEayVhMBIZZ9GhM5G_mS9Qv9EGjfhAUQVbOM3tRQIvmDv5dO4m6MumMDBdi0w17vZY/s400/090508+siva03.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5333720398637462818" /></a>
-->

Monday, June 2, 2008

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

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/AVvXsEiLsj_D4DYdzUJ9U18MVkvddfwu4pQ0lUbgoZkWxNNAZZgp0u4u01LOxhTDrIytZb4ZwOEapgCVWeGAqqhW_QIcS56WaYEsbIkanATena22A5NpuKfxIKzM_FAcbBlvSEGjUhHy_NDEibs/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/AVvXsEiLsj_D4DYdzUJ9U18MVkvddfwu4pQ0lUbgoZkWxNNAZZgp0u4u01LOxhTDrIytZb4ZwOEapgCVWeGAqqhW_QIcS56WaYEsbIkanATena22A5NpuKfxIKzM_FAcbBlvSEGjUhHy_NDEibs/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.

Sunday, March 30, 2008

Background graphic for blog


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/AVvXsEjwav-rKO1gTXKgD2py1yiLm59532fCuFEX3iYGYlmYE0WvQSAMLiaddrL-CvOU5jTIPQQ_OLF9Cgbw7Qpc8Z2sLSWqRUeH0CRzX7iBqCk9JJxZP5pmpoYnBJd0QepobjrXmpM-EsSXuMKf/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/AVvXsEjwav-rKO1gTXKgD2py1yiLm59532fCuFEX3iYGYlmYE0WvQSAMLiaddrL-CvOU5jTIPQQ_OLF9Cgbw7Qpc8Z2sLSWqRUeH0CRzX7iBqCk9JJxZP5pmpoYnBJd0QepobjrXmpM-EsSXuMKf/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/AVvXsEjwav-rKO1gTXKgD2py1yiLm59532fCuFEX3iYGYlmYE0WvQSAMLiaddrL-CvOU5jTIPQQ_OLF9Cgbw7Qpc8Z2sLSWqRUeH0CRzX7iBqCk9JJxZP5pmpoYnBJd0QepobjrXmpM-EsSXuMKf/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/AVvXsEjwav-rKO1gTXKgD2py1yiLm59532fCuFEX3iYGYlmYE0WvQSAMLiaddrL-CvOU5jTIPQQ_OLF9Cgbw7Qpc8Z2sLSWqRUeH0CRzX7iBqCk9JJxZP5pmpoYnBJd0QepobjrXmpM-EsSXuMKf/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

Wednesday, January 2, 2008

Captions for images in blog posts

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/AVvXsEhxFGSutStuCLwna1WR114sPnxvchE9ND-BleFCY0bRmj_dAecsK9855RcC2EDCAtwkLe-Kndh3U1eFh8LyoFutzssmbHCE90E5nVw7OFfAtqEJgmS9aWMQAMo2B1T31tFr5NdfBbb3HQ65/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/AVvXsEhxFGSutStuCLwna1WR114sPnxvchE9ND-BleFCY0bRmj_dAecsK9855RcC2EDCAtwkLe-Kndh3U1eFh8LyoFutzssmbHCE90E5nVw7OFfAtqEJgmS9aWMQAMo2B1T31tFr5NdfBbb3HQ65/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/AVvXsEhxFGSutStuCLwna1WR114sPnxvchE9ND-BleFCY0bRmj_dAecsK9855RcC2EDCAtwkLe-Kndh3U1eFh8LyoFutzssmbHCE90E5nVw7OFfAtqEJgmS9aWMQAMo2B1T31tFr5NdfBbb3HQ65/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/AVvXsEhxFGSutStuCLwna1WR114sPnxvchE9ND-BleFCY0bRmj_dAecsK9855RcC2EDCAtwkLe-Kndh3U1eFh8LyoFutzssmbHCE90E5nVw7OFfAtqEJgmS9aWMQAMo2B1T31tFr5NdfBbb3HQ65/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/AVvXsEjRZbHdq0Wp5AxsFFi0dy8VKtD7w1TMzJQWyc74naAsPefqYuOTooDBj3u3fnTrEOBFYpMDYgsQ6DQhlo3BuQWYrcDMs-ytRDwdEHX-bwLm1eNkuGPCEr4BoL0ZE2ksd8YjRaSiAp5WOn9_/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/AVvXsEjRZbHdq0Wp5AxsFFi0dy8VKtD7w1TMzJQWyc74naAsPefqYuOTooDBj3u3fnTrEOBFYpMDYgsQ6DQhlo3BuQWYrcDMs-ytRDwdEHX-bwLm1eNkuGPCEr4BoL0ZE2ksd8YjRaSiAp5WOn9_/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/AVvXsEgfBMs6okWT1Nd-K8CAKfWLiG9SvMtedNmL32mVT4KZcHOBr1Rcx0RDmM263qKrQWTQq3und79k6-7_aFHt9uzc1Xbl1b9Y09khyggKdE27jRmsJZYLGRjAmd3rlKSY-lr2jeHk2TmC2Wnc/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/AVvXsEgfBMs6okWT1Nd-K8CAKfWLiG9SvMtedNmL32mVT4KZcHOBr1Rcx0RDmM263qKrQWTQq3und79k6-7_aFHt9uzc1Xbl1b9Y09khyggKdE27jRmsJZYLGRjAmd3rlKSY-lr2jeHk2TmC2Wnc/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/AVvXsEgWhkMCWSOmqV6aRRJXeH1FxEGu-7uBe9DRiEl-LWt2KdK9KsO5DUAEaXe15g3rr1QpxQK9c6RGZ1iigoERtBnCOEPhU2aDLPF1Pimlw_VOHv-EJwzrJC5vQl7AmUgIyv5x8_UD7uU16cXr/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/AVvXsEgWhkMCWSOmqV6aRRJXeH1FxEGu-7uBe9DRiEl-LWt2KdK9KsO5DUAEaXe15g3rr1QpxQK9c6RGZ1iigoERtBnCOEPhU2aDLPF1Pimlw_VOHv-EJwzrJC5vQl7AmUgIyv5x8_UD7uU16cXr/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

Tuesday, October 30, 2007

Nice image signature for your posts using signature generator

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/AVvXsEix0AcU1YzluLEFjBNVbDi-QdQru_hM9cUDm9SemulR4MB9_m7P7KB4MTpgrkWX5IKG5CxszJqEnU-vag4RbXhdJ7miakwLHeXNKnO-L3f0DtP05DpowqHJCM7ghD4KvfmQ_ebCxsUSYHaR/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.

Friday, October 26, 2007

Sign post with image signature

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/AVvXsEjux7CdP6B-avs-q0Ezp9tb0vxMHY6kzd4Dx6toMWVURzU5ivKV6n6LiEKf6rYWnD2zBVBpvDNrqUdOasvXJJwRvAwvIz4nV1a6VWYiw3qjILr0ayCBGTN2Gy8DqzGkepaxv0aqMslclFQp/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/AVvXsEjux7CdP6B-avs-q0Ezp9tb0vxMHY6kzd4Dx6toMWVURzU5ivKV6n6LiEKf6rYWnD2zBVBpvDNrqUdOasvXJJwRvAwvIz4nV1a6VWYiw3qjILr0ayCBGTN2Gy8DqzGkepaxv0aqMslclFQp/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.

Monday, September 10, 2007

Uploading animated .gif image to Blogger post

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.

If you want the image to remain animated, you must first host the animated .gif image with the free Photobucket image host and use HTML to display the animated image. Here is a screenshot of the animated .gif image uploaded to Photobucket (click on screenshot to enlarge):

Update: According to error7zero, "you can uploaded your (animated gif) files to Google Sites. Apparently, it is also easier to track.

animated gif image uploaded to Photobucket

IMPORTANT NOTE: In the screenshot above, I have highlighted the third tag wrongly. You can use it directly, but the image will link to Photobucket homepage, and not to your image or any other sites you want the image to link to. Further, the alt="some description" attribute describe Photobucket". It is the second tag (URL) that you should use for use in your profile, typing your own <img src="image URL" alt="" /> to display the image or to use the image as a hyperlink to another site, eg, your book you are trying to sell on Amazon, etc. However, if you are not familiar with using the <img> tag to display images, the third tag (highlighted) you can just copy and paste into your Blogger post editor window to display the image, and if you wish, edit the target URL to link to any site of your choice and edit the alt="" attribute to some description of your image. The HTML have already been prepared for you and you don't need to know any HTML

For blogging purposes, only the second and third box is relevant. The IMG code (one of the BBB code normally only used in bulletin boards) where you can just copy-paste the IMG code into a message and post in a bulletin board to display the image.

For displaying animated .gif images, you MUST use the EDIT HTML mode for your post editor, otherwise you will not be able to write HTML properly.

Typing the image HTML tag yourself

As you can from the screenshots, the free Photobucket image host give you 4 codes. The second one is the actual URL and if you are familiar with HTML for displaying images, you can type the HTML yourself. It will be of the form

<img scr="photo URL" alt="some text" title="some text" /">

Replace 'photo URL' with the actual URL of the photo which you can get by clicking on the second box (Direct Link) you see in the screenshot above and pressing ctrl+C key or right-click on your mouse and select "copy", then pasting it within the quotation marks in scr="photo URL" and deleting 'photo URL' (that is, in short, replacing 'photo URL' with the actual URL of the photo).

The attribute alt="some text" and title="some text", where you replace "some text" with something relevant to the photo, and are optional. That is, you can leave it out if you want. But it is highly recommended to add them as search engines spiders cannot read images, but can read what is written inside the alt="" and title="" attributes. Adding them will thus enable search engines spider your post better. Further, by adding the title="" attribute, when you hover your mouse cursor over the image, you will see a tool tip displaying the text you put between the quotation marks.

Copy image HTML tag from Photobucket and pasting it into the post

If you are lazy to do what is described above, you can just click on the third box (HTML tag) which for the image used in Testing uploading animated .gif image to Blogger, is:

<:a href="http://photobucket.com" target="_blank"><:img src="http://img.photobucket.com/albums/v336/cikgu/starandbird.gif" border="0" alt="Photo Sharing and Video Hosting at Photobucket"><:/a>


Note that it is given as a hyperlink (starting with <a....), and anyone clicking on the image will be taken to the Photobucket site, not to the page showing the photo. Further, the alt="" text is given as alt="Photo Sharing and Video Hosting at Photobucket" which means you are doing a favor for Photobucket. Well, if you are generous, that is a fair exchange for Photobucket hosting the photo free for you. Plus you have the luxury of just copy-pasting. Also, the animated image will be aligned left.

Copying the image HTML tag from Photobucket and editing it

Another alternative will involve a little extra work but will get the displayed and at the same time do what you want. If you want the animated image to link to a site of your own choosing, you can delete http://photobucket.com and replace it with a URL of the site you want to link to (the actual image on the web, your favorite site, you homepage, etc.). If you are observant, you will notice that the example of the image HTML tag obtained direct from Photobucket end with

alt="Photo Sharing and Video Hosting at Photobucket">

whereas mine ends with

alt="some text" alt="some text" /"

(note: for Photobucket, no space between title=""> and no / for HTML tag. This is bad practice because to be compliant with XHTML, a HTML tag with opening tag and no closing tag (most HTML tags come in pairs, and opening tag and a closing tag. Only very few HTML tags like the img tag don't need closing tag) should end with a / plus there must be a space between the last attribute and the /. I suppose if you want to comply, you can just edit the HTML from Photobucket yourself.

Further, the image is aligned left. What I did in Testing uploading animated .gif image to Blogger was to copy the photo HTML direct from the third box (HTML tag) and as I don't want it linked to Photobucket, I deleted the

<:a href="http://photobucket.com" target="_blank">

in front of the <:img...... and then deleted <:/a> at the back of the tag, leaving the image HTML tag as

<img src="http://img.photobucket.com/albums/v336/cikgu/starandbird.gif" border="0" alt="Photo Sharing and Video Hosting at Photobucket" title="animated gif image"/>


leaving the alt="" attribute as alt="Photo Sharing and Video Hosting at Photobucket" as a favor returned for Photobucket hosting the image for me free, adding title="animated gif image" but adding a space after the title="" tag followed by a backslash / to make it XHTML compliant.

In the third test image, I wanted to center the image, so I surrounded the above edited image HTML with <div style="text-align:center"> and </div> (note: this is the standard tag with an opening tag and a closing tag) so that the image HTML become:

<div style="text-align:center"><img src="http://img.photobucket.com/albums/v336/cikgu/starandbird.gif" border="0" alt="Photo Sharing and Video Hosting at Photobucket" title="animated gif image" /></div>


Other possibilities with Photobucket

I hope you understand what is explained above, and if you do, you should be able to think of other alternatives to achieve what your objectives are by suitable editing or changing.

Related post: Animated gif image, Blogger and Photoshop.