Showing posts with label Pictures. Show all posts
Showing posts with label Pictures. Show all posts

Putting pictures side-by-side in a blog post or gadget

This article shows how to put pictures side-by-side in Blogger (or any other website) using HTML, in a way that works for visitors using mobiles (smartphones and tables) as well as larger screens.



Placing pictures side by side in Blogger:  a picture of three images next to each other on the same line
Previously I've explained how to use a table to force photos (and other things) to all show into a line, even if the user's screen is too small to display them all at once.   And I've looked at putting text and pictures side-by-side - assuming you're only working with one picture.

Tables are great if you are showing data and need rigid alignment, or if you don't mind your mobile device visitors having to either scroll, or to pinch their screen so much that they cannot read the text.

But there is a way to lay out pictures so that they display side by side if there's room on the screen, or start on a new line if there's not.

I've done this recently on a blog where really wanted to make a display for last / next week and last / next year on two different dimensions. It looks like this on a smartphone vs a tablet.   Notice that on the tablet, the two middle pictures are on the same line.




How to lay out several pictures side-by-side if there's space, or one-under-another if not

Start to prepare your post in the usual way.

Add your pictures to the post in the usual way. Ideally, put them just before or just after some marker text that you can use to help you to find the code for it in the next step.

Hover over each picture, and choose the small size (you can change this later)

Go into HTML mode.

Find the place where the pictures are.   (If you've used marker-text, just use your browser's search feature to go to it.)

Add this code, just where you want the line of images (or other items) to end up.
<div style="display: inline-block; margin-bottom: 2em; margin-right: 2em; width: NN;">
IMAGE CODE FOR PICTURE</div>
<div style="display: inline-block; margin-bottom: 2em; margin-right: 2em; width: NN;">
IMAGE CODE FOR PICTURE</div>
<div style="display: inline-block; margin-bottom: 2em; margin-right: 0em; width: NN;">
IMAGE CODE FOR PICTURE</div>

That has space for three pictures - you can delete one or add more lines if you want to - just make sure that the very last one has margin-right: 0em; and the others all have margin-right: 2em;

Now, for each picture that you added,
  • Find the HTML code for it.   (This post has a detailed explanation of what the HTML code for a picture)
  • Delete the height = "nn"  part from it   (nnn = whatever number is there)
  • In the width = "nnn" part, replace nnn with  "100%", so it says   width = "100%"
    Note:  this is saying to make the picture take up the whole width of the division you have assigned it to.   You can make it smaller than 100%.   But you want to do it put a bigger margin between the two pictures, then you can do this by increasing the value in   margin-right: 2em;      
  • Move the picture code to where it says IMAGE CODE FOR PICTURE
  • Decide how wide the picture should be, and change the value in Width: NN within that DIV statement to the right amount.
    You can either use pixels (eg width: 100px;), ems (eg width: 20em;) or percentages (width: 40%;)   If you use percentages, then the total amount for all the pictures should be a little less than 100%, so allow for some space between the pictures:  for example, with a 2em margin and three pictures in a row, you may need to make the total approx 90%.

Go back into Compose mode, and check that your pictures look roughly right - if necessary, you may need to adjust the picture sizes.   (See the note below under Troubleshooting for more about this.)
Delete the marker text.


Job done!   Your pictures will now display side-by-side if they can all fit into the user's screen, or one under another if not.


Troubleshooting

Getting the pictures right can be quite fiddly, so I recommend preparing the blog post in private, so you can do this in stages, and save your work regularly as you go.

Your pictures will be vertically aligned on the bottom axis, and this means that the approach will work best with pictures that are the same height.    (I'm working on another article looking at alignment issues - it's they're quite tricky.)

Post editor view vs your visitor's screen

An issue that many new bloggers struggle with is that what they can see in the post editor is not the same as what their blog-visitors will see.

The post editor screen is only a certain width.    Most times, it is smaller than the width of the main body of your blog.  So, if you have used fixed-widths (ie in pixels, or ems, not percentages), more pictures fit on the same line in your blog than in the post editor. But if a visitor is using their smartphone to read your blog (and I do a lot of my blog-reading on the phone these days) - the screen width is less than it is in the post editor.

This is why using <div> statements instead of <table>'s is a good idea.  But it does means that sometimes you will have to compromise on whether things can be put together.

Is this only for pictures?

No - you can use this technique with blocks of text, videos - in fact anything that you can put into your blog.

What about gadgets?

You can use this technique anywhere that you can edit the HTML.  So, you can put pictures in a row in your sidebar, header or footer by using a HTML-gadget.    (This post shows a handy way to get the picture code when you're making gadgets.)

Captions

don't recommend using captions with this this technique.   Blogger shows them using tables:  they put the photo and text into a one-column-two-row table, and this makes working with the picture code a lot more difficult.   If you really want to use them, then add them after you have moved your picture code inside the <div>...</div> statements.




Related Articles:


Using a table to display data in your blog

Marker text helps you to find places in your blog post

Putting text and photographs side-by-side 

How to add a picture to a blog post

How to get the HTML code for a picture when you don't have an insert-picture icon on the toolbar

Introducing the "Free high-quality picture search" tool

This article introduces the Free High Quality Picture Search tool which has been added to this website.

Today I've added a new feature to Are-You-Blogger.

The Free High Quality Image Search tool is available from the menu bar. It is a tool to help you locate free, high-quality pictures to use in your blog posts or other website projects.

It is based on a Google-custom-search engine, and a carefully selected set of websites that offer images you can use for free on your blog, even if it is "commercial" (ie you have advertising or any other way of making money from it).

The difference between this and the images that you can get from a general-purpose search using the Creative Commons image and multi-media search tool is the resolution of the images that are found and/or their photographic quality.

How to use the Free-image-search tool

  • Type a description of the image you want to see into the search-bar.
  • Press Enter
  • When the results display, click the Image tab, to see what photos are available.
    (Hopefully this step is only temporary, and I can soon manage to have the search-results default to images and still use the tool in Blogger.)
  • Use the numbers in the lower-left side to move to different pages in the image-search results.
  • Choose an image that you would like to use.

Once you have chosen an image, you can either link directly to if (if the site allows), or download a copy, put it on your own image-service (eg Picasa-web-albums), and use it in your blog.   The latter approach is required if you want the image to be used as the thumbnail for your post.


Copyright

By definition, all images returned by the search-tool should be free-use and so not subject to any copyright rules.

However some do have attribution requirements, and you may need to use image-captions or similar to make sure that these are followed in your blog.


Related Articles:

Finding free photos for your blog, using Creative Commons

Introducing Google-custom-search engines

Summarise your blog-post with post.snippet and post.thumbnail

Copyright, Blogs and Blogging, an introduction

How to take better pictures - no matter what sort of camera you have

This weekly blogger tip is complements of Shutterfly:   tips about how to take great photos, of various types, no matter what sort of camera you use.

Why?


Why take your own pictures, when there are so many free-photo-search tools out there?

Well, if you want your blog to be copyright-legal, then you need to either find free-use photos, or make your own. Creating your own post-photos is especially useful to prove that your local blog really is local (like this) - and taking pictures that I take myself and host pictures in Picasa / Google+ Photos means that my posts always have a thumbnail image.


How?

Great tips from the pros, here: http://www.shutterfly.com/how-to-take-the-perfect-photo/

The best bit is that this isn't just a glossy, or a snobby "fancy-cameras-only" guide.    There are tips for every combination of  camera type:
  • DSLR
  • Smartphone
  • Point and shoot
and photo type:
  • Portraits
  • Selfie
  • Bokeh
  • Macro
  • Action shots
  • Close up
  • Wide angle
  • Food
  • Candid
  • By the water
  • Landscape
  • Panorama





PS Shutterfly said
"Please share this interactive on your site or blog. Just copy and paste the code below"

So I did. But it looks like it's not working 100%. To get into their tool, click here: http://www.shutterfly.com/how-to-take-the-perfect-photo/


Happy snapping!

Use diagrams to make pictures for your blog posts

This post from the Weekly Blogging Tips series is about a cost-effective way to make pictures for blog postings.


The best blogging advice is that every post should have at least one picture:  is a stunning professional-looking shot which perfectly illustrates the point you are making perfectly.

This is a great idea if you're a professional photographer and have all time in the world, or if you can afford to purchase images which are custom made for your blog.

But most of us just aren't in that league.

Sometimes, you can use a search tool to find a re-usable photograph that you can put into your posts. (Remember to download your own copy and put it into a Google picture host, to make sure that it's accepted as the thumbnail picture for the post.)

But another option is to use a diagram - like this.



The picture above is a diagram that I used in a blog-post to emphasise that budgeting for an event is on-going through the planning phase, not a one-time job   I spent quite a while thinking about how to make the point about the original plan vs the on-going feedback loop.

Diagrams don't have to be complicated. Sometimes something as simple as showing a bullet pointed list in a different shape can be an effective way to add "visual texture" to your post and thus make it more appealing for people to read.


There are various tools that you can use to make diagrams.
  • PowerPoint is fantastic especially in in Office 2010 and 20123 where it has shape placement guidelines, as well as the usual squiggly word-art, smart-shapes, gradient-fills etc. 
  • Google Spreadsheets is catching up, though they've got a way to go yet, and your have to use screenshot tools to get an image (JPG, PNG or BMP) file from it. 
  • And most other drawing and word-processing tools include some drawing tools too.

Stop Google from "fixing" pictures that are loaded through Blogger

This article is about how you can stop Google from automatically "enhancing" pictures that are loaded in Blogger - even if you do not have a Google+ account.


Google has started automatically "fixing" new pictures as they are added to your blog

In May 2013 Google added the Auto-Enhance and Auto-Awesome features to Google+ Photos. These are meant to make your pictures look better, ie more like those which are taken by professional photographers.

These features are turned "on" by default. And because:
  • Photos loaded using Blogger are stored in Picasa-web-albums, and
  • Picasa-web-albums and as Google+ Photos actually have the same collection of photos - yes, even for accounts that do not use G+,
the effect is that auto-enhance and auto-awesome are applied to all images loaded through Blogger's post-editor, header-picture loading tool and gadget-picture loading too;.



Why is this a problem

In many cases, these features work as they are intended to, and the illustration that is shown on your blog is more attractive than the one you uploaded - it's brighter, clearer and loads faster.

But there are some situations where the effect of the auto-enhancement is not good. These include:
  • Pictures with some transparency - which is auto-corrected to either light grey or black
  • Pictures that are intended to be dull / dark / shady - these are automatically lightened.]
  • Pictures that are loaded at a certain photo quality - are automatically downgraded to a lower quality (which is fine for viewing on screen, but not so fine if you actually want to use your blog to share high-quality photos).

Blogger users who have a non-white background, and who deliberately upload images with a transparent background so their blog background will "show through" the image have been particularly annoyed by this.   And I have been less than impressed by the faint grey "wash" added to the background of some of my diagrams - for example:

The left-hand picture was auto-enhanced, the right hand one was not



How to turn off photo auto-enhance if you use Google+

If your blog - and the account you use to post to the blog - is linked to your Google+ profile, then you can stop your photos from being changed by:
  • Opening the Google Plus settings tab.
  • In the "Photos" section, un-ticking "Automatically enhance new photos"

This stops the auto-enhance and auto-awesome tools being applied to any new photos that you upload from now onwards using Google+ Photos, Picasa-web-albums or any Blogger feature that lets you load a picture (the post-editor, the header widget settings, the picture gadget settings).

Alternatively, you can turn off the auto-enhance and auto-awesome changes that are made to specific pictures by by finding them in Google+ photos and un-ticking "Auto-enhance" in the "More" menu.


How to turn off photo auto-enhance if you do not use Google+

There is currently no option in Piscasa-web-albums to turn off the auto-enhance feature.
This means that if you load photos to either Blogger or Picasa-web-albums, using a Google / Blogger account that is not linked to a Google+ profile, you cannot stop auto-enhance from happening.

Some people have suggested that the way around this is to:
  • Temporarily link the blog to a Google+ profile (either your own one, or one that you create just for the purpose - eg "Mr John Smith")
  • Turn off the auto-enhance feature using the Google+ procedure listed above
  • Fix up the damage to any pictures that you loaded through Blogger or Picasa-web-albums between mid May 2013 and today by finding them in Google+ photos and un-ticking "Auto-enhance" in the "More" menu.
  • Unlink the blog from the Google+ profile.

However I do not believe that this is entirely correct:   my tests suggest that whether or not photos are auto-enhanced is controlled by the settings on the Google+ account that is used to upload the pictures, no matter whether the blog is attached to a Google+ profile or not.

(I've been testing this a lot because I have a number of blogs that are linked to Google+ Pages that are in my personal profile, but which I generally post to using a different Google account that has a more generic name like "Editor, Table Quiz Helper", and it's own separate set of Picasa-web-albums:   I want to be able to hand these accounts on to my successor when I leave the community groups that they are for.)

Previously, the main options that I identified and recommend were:

However another option, which I now think is better, is to:

  • Make a Google+ Page for the blog
  • Give that Page it's own login-name and password - effectively turning it into a separate new Google account
  • Give that new Google account administrator rights to the blog
  • Make the setting change described above in "How to turn off photo auto-enhance if you use Google+" while you are logged in as the new Google account
  • Use the new Google account to load photos to the blog:   this will mean that the photos are placed in the Google+ Photos album associated with the page, and so you can access them using either Picasa-web-albums or Google+ Photos.



Other Options

If you really don't want to use even a minimal Google-plus account, then your options are limited.

Use another picture host

You could load the pictures that you want to use in your blog to another picture-hosting service (eg Flickr) - however doing this means that you posts will not have a thumbnail image.

Minimise the damage

If you make sure that pictures which you load have a white background (or whatever colour background your blog has) instead of being transparent, then the impact of auto-enhance will be a lot less.    I have found that if you use a .png file rather than a .jpg, the background is white instead of transparent.   (This is fine for me, because I use white blog backgrounds.)

Wait for things to change

A very simple fix would be for Picasa-web-albums to use default values of "No" instead of "Yes" for auto-enhance and auto-awesome, or to set these up as settings in the PWA profile.

Another option is that Google may improve the enhancement algorithms (ie rules which control how pictures are "touched up").

Fingers crossed, one of these will happen soon.




Related Articles:

Giving another Google account Administrator rights to your blog

Turning a Google+ Page into a separate Google account

Post.snippet and post.thumbnail - how they are derived from your blog post

How to add a picture to your blog, using the picture gadget

Making a Google+ profile for the Google account that you use to upload the pictures,

How to edit a picture in Picasa Web Albums or Google+ Photos

This article is about how to edit pictures in Picasa web albums, and how to use Picasa-destop to edit pictures in your Google+ Photos.


Picasa-web-albums vs Google+ Photos

Picasa-web-albums is a on-line photo storage and management tool, now owned by Google.   It is the on-line version of Picasa, a desktop-tool.   (Learn more about PWA and Picasa here.).

Google would ideally  like everyone to use Google+ Photos.

But there are many people who store pictures in albums that are not associated with their personal Google+ accounts:  these may be for businesses, schools, clubs, etc.

So it is likely PWA will continue to exist for a good while yet.   And I am sure that Google appreciate this:  they have made a number of changes to Picasa-web-albums to make it work better both with Google+ and without it.


Options for editing pictures that are are uploaded to Google

  • If you have a Google+ account, then there are two ways of editing photos that you have loaded to Google (it doesn't matter whether you loaded them using Picasa-web or Google+Photos).  

    Both of these options are described below.   Using the Google+ editor (option 1) doesn't need any software installed on your PC.   But it's very slow to load, offers you less control, and is currently missing some key features - and it only works if you are using Chrome as your web-browser, not Firefox or Internet Explorer.
  • If you don't have a Google+ account, then Google / Blogger only provides only one way to edit photos that you have loaded to it (apart from downloading the photo, editing it on your PC and re-uploading it - which changes the URL you need to use to link to the photo).   This is Option 2 below.

Option 1: Using Google + edit a picture in Picasa-web-albums

Log in to Picasa-web-albums, using your Google+ account.  
(See here for what do to if you are automatically re-directed from PWA to Google + Photos)


Navigate to the photo that you want to edit.  
(Make sure you're looking just at that photo, not at the album it is in - this can be confusing in cases when the photo is also the album cover.)

Choose Edit in Google+ from the Actions drop-down menu.

This opens a new window or tab.

If you are not signed in with your Google + account, you will be invited to join.

If necessary, sign-up for Google+, or sign in with the correct account, and start again.

Now, you will be looking at the photo in the Google+ Photos picture view.   From here you can do simple edits:
  • Crop the photo
  • Tag people
  • Rotate the photo
as well as using the other Google+ Photos features (share, slideshow, delete, zoom)

To do more changes, choose Edit (yes, you need to choose it a 2nd time) from the top menu.

If you are not using Google Chrome, then you will get a message saying that the Google+ photo editor only works with Chrome, and giving you a link to download it.    If necessary, switch to Chrome and start again.

Wait while the photo editing tools are loaded  (this does take a while, perhaps even a minute or two).

Once loading is finished, the current Google + Photo editor functions are available from the right-hand bar, like this:



At the moment these are:
  • Tune (brightness, contrast, saturation, shadows, warmth)
  • Selective Adjustment (lets you specific areas for other options to be applied to)
  • Details (sharpness and structure)
  • Crop and Rotate
  • Black and white
  • Centre focus (adjust brightness and blur around the centre)
  • Drama
  • Frames
  • Tilt-shift
  • Vintage
  • Retrolux.

When you  are happy with your photo, click the Finished Editing tick box at the bottom of the right-hand bar, and the changes will be saved (this may take a few moments).

You are left in the open Google+ Photos tab or window, not returned to Picasa-web-albums.   When you go back to Picasa-web-albums and refresh the page (F5), the changes that you made in Google+ photos will be shown.


Option 2:   How to use Picasa-desktop edit a picture in Picasa-web-albums

This option only works if you have Picasa desktop software installed on your computer.

Log in to Picasa-web-albums, using your Google account.

Navigate to the photo that you want to edit.   (Make sure you're looking just at that photo, not at the album it is in - this can be confusing in cases when the photo is also the album cover.)

Choose Edit in Picasa from the Actions drop-down menu.

A pop-up window will tell you that your web browser wants to open another program (ie Picasa-desktop) to do the editing.

(The exact text is something like:   "External Protocol Request:  [your web browser] needs to launch an external application to handle picasa: links.   The link requested is ... The following application will be launched if you accept this request   c:\Program Files\Google\Picasa\Picasa3.exe ... If you did not initiate this request, it may represent an attempted attack on your system.   Unless you took an explicit action to initiate this request, you should press Do Nothing.")

Choose Launch Application.

Picasa will load on your computer, and you will be asked to confirm that you do want to edit the selected picture.   Choose Edit Image.

A copy of the picture that you want to edit is opened in the desktop-Picasa editing tools window.

From here you have access to all Picasa's standard photo editing tools (including the text tool for adding watermarks).

The photo you are working in is a copy taken from your Picasa-web-albums, it is not the same as the copy of the picture which may already be on your computer.   It is stored in a directory of your Picasa-installation called "Online Edits", not in your main My Pictures directory.   So if you choose a function like "Back to Library" you are taken to the Online Edits folder inside Picasa-desktop.

From here you can use all of Picasa-desktop's editing features, including straightening, red-eye reduction, text-editing, re-setting the neutral colour.    The only exception is the Edit in Creative Kit option:  this is still one of the options in Picasa-desktop, but if you use it, it takes a long time to load and then eventually says "Error connecting to Creative Kit... error 500" - and explains that Creative Kit has now been discontinued.

When you are finished editing, to put the edited photo back into the same Picasa-web-album that it came from, with the same file name and URL:
  • Make sure that you are logged in from Picasa-desktop to the same Google account that you were using initially.  
    (Picasa-desktop remembers your sign-in details from the last time you used it - if it's different from what you need, just choose sign-out from the top-right corner, and then sign in to the correct account when asked.)    
  • EITHER:
  • Choose Share on Google+    (if you are using a Google + account)
  • In the sharing-details window that opens, change the Album-name from Online Edits to  the album that the photo came from originally and choose Upload

    OR
  • Return to the Online Edits folder / library
  • Save the changes using the Save icon
  • Choose Enable Synch from the Sharing drop down.
  • Wait for the changed photo to upload.

    (I think Google have some work to do here - you can only control synching for the whole album, not for individual photos.   I expect this to be improved in the future.)




Job Done:  your Picasa-desktop-edited photo appears back in your online Picasa-web-albums with the changes that you just made, and any existing links to it (eg from your blog posts) will show the changed version of the picture.   And you can put the edited picture into your blog posts or other websites in the usual way.



Related Articles

Introducing Picasa and Picasa-web-albums:   an overview

Stop automatic redirection to Google+ Photos

How to put a picture into a blog-post

Tools for applying copyright protection to your blog