Latest posts

Browse topics

Rainy day in Tbilisi - Time Lapse Video

That time of the year has come and as usual, in April I return to photograph that lovely brick wall opposite to our apartment, turning green. This year I decided to excel in time-lapse photography and video.

A few months ago I bought an intervalometer (around Christmas time) and today was actually the first time I put it on real action. 

I did a few tests to see how intervalometer actually works, and once get the basic understanding put it to capture 120 shots with 30-second interval (making 30 minutes in total). On-Camera settings, its manual mode, f 11, and ISO 400 (as it was a rainy day, I wanted to make it bright enough). Shot in RAW mode.

Making time-lapse videos are fun, during this 30-minute session I was able to make a coffee, upkeep some things on the blog, and do other stuff. Making this time-lapse involved using Adobe Lightroom for post-processing images, and Adobe Premiere making a video.

Adobe Lightroom

Import images to Lightroom, adjust some settings if needed, auto-sync all images, export as jpg 1920 pixels, make sure to remove the watermark

Adobe Premiere

The final comp was made in Adobe Premiere adding a sound effect (from free libraries)

I hope to apply my newly developed skills to make some nice star trails photography in the short future. My First Star Trail Photography

A tutorial for creating HDR images in Photoshop

HDR stands for High Dynamic Range, and it is a technique in which many images – usually around 3 or 5 – are merged together, so that details from all the different images show up in the final HDR image. It is simply using the dynamic range over many exposures in one single image.

[block:block=34]

Photoshop is a great and very effective tool for merging the series of photos of the same scene you have taken, to give an HDR image with lots of details and tones. In this article, I will tell you how to take photos for merging them into an HDR image, and then how to use the photos for the actual process of making an HDR image in Photoshop.

How to take source images for a final HDR image

The logic behind an HDR image is this – one single photo cannot show all the details from the highlights and the shadows. But, if we over-expose an image (make it brighter), we start getting details from the shadow region. Also, if we under-expose an image (make it darker), we get details from the highlights. What if we could do both the things together ?

HDR, in simple words, is combining an over-exposed image with an under-exposed image and a few other photos of the same scene (just for having even more detail), so that we get one single photo with multiple light levels.

So, to take the source images – the ones you'll be combining – all you have to do is take the same photo with different exposure levels.

The best way to do this is to first fix your camera on a tripod and setup your composition. You don't want your camera moving, because then there will be no similar images to merge. Also, shoot in RAW for more latitude while processing the images in Photoshop, although the method works even for JPEGs.

Once your camera is ready, take a photo that is metered by the camera itself. Not under-exposed, not over-exposed. This image is your base image, and it is basically a photo that the camera will take if it was in Auto Mode.

Now, you need at least 2 more photos to merge them all into an HDR image. Change your shutter speed to change the exposure. If you change aperture, the depth of field will change, which will make some areas of your photo unwantedly blurry. Changing ISO is also possible, but try to avoid it so that you get a clean image with no noise.

Make sure you have an under-exposed image by 1 stop at least. You can also go further and take an image under-exposed by 2 stops. Do the same the other side. Over-expose the scene by a stop, and then by one more stop.

Now, you have 2 under-exposed, 2 over-exposed, and 1 base image. You could also have done this using an 'Auto Bracketing' feature if your camera has one. More the number of images, more the information available for the final merged HDR photo.

HDR image

So, you have 5 images – or more – with different exposures, all with the same composition and still subjects. Keeping your camera stable is very important, otherwise the camera shake and movement of the subject will cause ghosting and will also make merging all images into one very tricky.

How to merge all images in Photoshop

Once you have the source images ready on your computer, you can open Photoshop and begin working on merging your images for HDR.

Merging HDR in Photoshop

Merging HDR in Photoshop

1. Open Photoshop and choose File > Automate > Merge to HDR. Here, you will get the option of choosing all your source images.

2. If in case you are unsure about camera shake and think that there is some change in the composition in the source images, select the option “Automatically Align Source Images”.

3. When you click OK, the computer will process the files and you will have to wait for a few seconds. Now, choose the 32-bit depth for the highest amount of tonal range. 8-bit and 16-bit files cannot store the entire range of light.

4. Now, the image you will see is a 32-bit preview of the final image with the source images on the side. Check for some ghosting or weird movement in the shot and if there is any, remove the source image which has the movement in it.

5. The 32-bit preview has a lot of information, most of which your computer screen cannot show. So, make sure that you save this file for later use as a 32-bit (tiff, .pbm etc) HDR full of details.

6. The merged result is a floating-point 32-bit image. You can view the available tones by sliding the White Point slider. This slider won’t change the image, it is there for you to examine the range of tones, because a monitor is incapable of displaying the whole tonal range.

7. The 32-bit image will still seem darker than you may want, but once you convert it into a 16-bit or 8-bit image, it will start to look better. You'll need to use the 8-bit image for sharing and emailing and uploading it to social media.

8. Choose Image > Mode > 8-bit. Here, you'll get options to actually bring out the exact exposure you want. You’ll see an HDR Toning Dialog box, with 2 options – Exposure and Gamma.

4. Now, the image you will see is a 32-bit preview of the final image with the source images on the side. Check for some ghosting or weird movement in the shot and if there is any, remove the source image which has the movement in it.  5. The 32-bit preview has a lot of information, most of which your computer screen cannot show. So, make sure that you save this file for later use as a 32-bit (tiff, .pbm etc) HDR full of details.  6. The merged result is a floating-point 32-bit image. You can view the available tones by sliding the White Point slider. This slider won’t change the image, it is there for you to examine the range of tones, because a monitor is incapable of displaying the whole tonal range.  7. The 32-bit image will still seem darker than you may want, but once you convert it into a 16-bit or 8-bit image, it will start to look better. You'll need to use the 8-bit image for sharing and emailing and uploading it to social media.  8. Choose Image > Mode > 8-bit. Here, you'll get options to actually bring out the exact exposure you want. You’ll see an HDR Toning Dialog box, with 2 options – Exposure and Gamma.

9. If you want an image with lots of contrast, lower the gamma. For less contrast, raise the gamma. Finally, adjust the exposure to get the desired image. There will be other options like Local Adaptation, but these are advanced tools and need another article itself.

10. If you are happy with the image, just click OK and you are done. You can also make further edits like shadows, highlights and saturation. Experiment and try to see how these settings change your image.

This is all!

Facebook Like & Share Buttons on Drupal 8 using Views

In this tutorial you will learn how to setup custom Facebook like & share buttons for Drupal 8 website using views display. No doubt, there are many great modules set and forget configuration. Though if you are looking to display functional social share buttons on views based pages, you will need to come out with custom solution. 

There are many pages and even blocks in Drupal social share buttons to be featured, like custom blocks, taxonomy pages, custom pages and so on.

For Drupal 7 see: Facebook share button for Drupal views

Here is live examples with Facebook like & share buttons I built for Drupal 8 site - tourgeorgia.eu

Custom Drupal 8 views display

Custom Drupal 8 views display with Facebook Like and Share buttons

Above you can see a custom block, featuring most popular tours on tourgeorgia.eu.

Facebook social share buttons on Drupal 8 custom pages

Facebook social share buttons on Drupal 8 custom pages

Above you can see example with social share buttons on blog page.

Here are two things you will need to take care to make Facebook like &share buttons available on Drupal 8 website

  • Add Facebook JavaScript SDK code to html.html.twig page
  • Add custom code and CSS styling to Drupal views page

Update html.html.twig page

Locate html.html.twig page in your theme folder (if you don't have one yet, create it

Visit: https://developers.facebook.com/docs/plugins/like-button#configurator and click Get Code button, you will get something like this:


<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.9&appId=YOURAPID";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Paste following code just after opening <body> tag in html.html.twig template, make sure you enter your APP ID

Save html.html.twig

Add custom code to Drupal 8 views

I'm going to add Facebook share and like buttons, but you could fine tune it according to your needs (follow examples here: https://developers.facebook.com/docs/plugins/like-button#configurator)

Open your views display and add following code:

<div class="fb-like" data-href="{{path}}" data-layout="button_count" data-action="like" data-size="small" data-show-faces="false" data-share="true"></div>

As you can see, I've added {{path}} field for getting actual URL. When adding path field, make sure you select use absolute url, to make it work together with Facebook Open Graph

Now you can add some CSS styling to position Facebook social buttons.

How To Add Open Graph Protocol For Drupal 8 Website

In today's Drupal tutorial series I will write down my notes, how to add open graph protocol for Drupal 8 website. 

The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook. While many different technologies and schemas exist and could be combined together, there isn't a single technology which provides enough information to richly represent any web page within the social graph. The Open Graph protocol builds on these existing technologies and gives developers one thing to implement. Developer simplicity is a key goal of the Open Graph protocol which has informed many of the technical design decisions.

Make sure you check out more information about Open Graph protocol and its use: The Open Graph protocol

Also, for Drupal 7 example, you should check out this tutorial: How to add Open Graph protocol for your Drupal site

Now let's start with a basic, out of the box, Drupal 8 website, with no Open Graph enabled yet, let's try to share some of the articles on Facebook wall (no mater your personal or Facebook business page wall)

Open Graph not configured

Open Graph not configured 

Out of the box Facebook share screen works already pretty good - it takes URL and nicely gets title from it. a short description is added and of course link back to your website. Though we have missing one important element - image - there are no image. And honestly speaking I would love to have better control of what is shared in the title section, I don't want | [site:name] shared in it. And maybe I would like to have a better control of what is written in description box. Do you find the same? Then, let's fix that, and here comes in open graph protocol.

Open Graph protocol for Drupal 8

If you have followed my article on How To Override Drupal 8 Frontpage Title, you already are familiar Metatag module, which will brilliantly handle all of the required work.

  • Download and enable metatag module
  • From admin/config/search/metatag select edit Content
  • Scroll down to Open Graph settings
  • Page URL: [node:url]
  • Title: [node:title]
  • Description: [node:body]
  • For Image settings enter node[node:field_image], for displaying default image tag, if you are using custom image field, use browse available tokens to find field name

Open Graph image field settings for Drupal 8

Open Graph image field settings for Drupal 8

Adjust Open Graph settings according to your needs. Click save for now

Save and make sure to clear cache, now visit Open Graph Debugger and test your URL. Follow on screen recommendations for any issues to fix.

Now here is how this post looks if shared on Facebook again

Open Graph debugger for Drupal 8

Open Graph debugger for Drupal 8

Much better!

How to send OneSignal RSS Push Notifications Using Zapier

I've been using OneSignal to collect web push subscribers for my blog, since November 2016, by now I can brag with more than 12,000 web push subscribers for this blog. As I keep writing on many topics, I don't find it a good idea of sending RSS notification for each new article.

How To Setup Web Push Notifications For Drupal 8 (Or Any Other Site) Using OneSignal

Actually this is the thing I'm missing on OneSignal, a better segmentation. By now I keep sending web push notifications manually - once or twice per month.

Recently I started to develop another website, selling tour packages in Georgia (tourgeorgia.eu), and I did find it a good idea to collect web push subscribers there as well. Since tourgeorgia.eu has better user segmentation than my personal blog, and posts aren't published everyday, but about 5-10 times per month - an automated solution like RSS to web push subscribers seems an ideal option.

Unfortunately there is no support of setting up RSS to push subscribers directly on OneSignal, yet, though there is a great and free service Zapier, making the missing connection and allowing to setup RSS to OneSignal.

That, kind of, reminds me good old days, when I was using Twitterfeed to sync my social media accounts from RSS feed, unfortunately Twitterfeed has been shut down, but again a new service, called dlvr.it emerged and replaced it.

If you are familiar with syncing RSS to social media accounts, settings up Zapier RSS to OneSignal will be a piece of cake for you. Follow this simple tutorial to get it done:

Send OneSignal push notifications for new RSS items

Let' s keep thing automated :)