TVs. Consoles. Projectors and accessories. Technologies. Digital TV

How to put a date on a digital image. Set date and time via system tray

I think we should stop the New Year's break and start writing articles. Since everyone has a lot of photos left after a series of holidays, let’s start with this topic. So, the task is to put the date and time of the photo on the photo. Moreover, we have a thousand photographs taken on different days, at different times. Of course, for one photo it is very easy, just launch Paint. But what to do with a thousand photographs? A small and free for non-commercial use program called XnView (http://www.xnview.com/en/xnview/#downloads) will help us here. And then we proceed according to the instructions:

1) Launch and go to the folder where the necessary photos are located. We select all those that we need to mark with a date (in order to select everything, you can use the universal combination Ctrl+A):

2) Right-click on the selected photos and select “ Batch Processing" Or press the combination Ctrl+U.

3) In the window that opens, in the “Output data” section, specify the folder for saving copies of images with changes made to them. If desired, you can change the image format.

4) Go to the “Transform” tab:

5) Select “Image” → “Add text” by double-clicking or highlight and click the “Add” button. The item should appear on the right side of the window:

6) Next there are several options. Ideal, of course, if your camera writes Exif to the photo file. Luckily, most modern cameras do this.
Therefore, in the “Options” section, press the right arrow and select “Exif-Camera” → “Date of shooting”.
But there are all sorts of cases and not all cameras can do this, so if it doesn’t work for you, try the following options in order:
— Options → “Date of creation”
— Settings → “IPTC location” → “Creation date”.

After selecting programs, it will write variables into the parameters item in the following form:

This means that at the output we will receive an inscription in the format: 2014-01-09_19-45-31. Which in my opinion is not very nice, but fortunately, this parameter can be changed as you like. Using the following variables:
Y—year in four-digit format (2014);
y — year in two-digit format (14);
B — name of the month (January);
b — abbreviation of the name of the month (Jan);
m — month as a number (01);
d — day as a number (09);
A — Day of the week (Thursday);
a is the abbreviation for the day of the week (Thu).

And, knowing these values, I change the parameter to suit myself and get the following:

Which will give the output date in the format 01/09/14 19:54. That's it, all that remains is to choose the position, font, color and, if desired, the background for the inscription. You can also save the script for future use.

Another useful thing for websites is inserting the current date. Dozens of examples of date scripts can be found on the Internet, but many of them, in my opinion, are cumbersome and, therefore, ugly. Meanwhile, using standard means JavaScript, you can insert a date into a website page very simply. I use it very often! In the picture (screenshot from the current website) of the Skazka estate!

Here is the entire date script:

In my opinion, it couldn’t be simpler, quite beautiful and understandable. If you have no desire to study the construction of this script, then simply paste it anywhere on the HTML page and get the following inscription:

Another more advanced option

//
// ]]>
// ]]>
// ]]>
// ]]>
// ]]>
! Today
// + " " + d.getFullYear() + " g.");
// ]]>
// ]]>
// ]]>
// ]]>
// ]]>
// ]]>

It looks like this:

Today

In general, no skills are required, just stupidly insert the code and everything is ok!

More details:

So, we start by assigning the date value to the variable d, then create arrays (Array) for days of the week (day) and months (month), indicating them in the necessary grammatical form: case, number, capital letter, if the word is at the beginning of the date, etc. The last line of the script is the actual date printing (document.write). Here you set what and in what order you will display in the current date line. Components are separated from each other by a + sign. To enter a space, use the " " construction, and to enter the letter g (year) use the " g " construction.

As you can see from the script, the get element performs the current time data. This method allows you to obtain the following information:

  • getDate() - returns a number from 1 to 31 representing the day of the month;
  • getDay() - returns the day of the week as an integer from 0 (Sunday) to 6 (Saturday);
  • getMonth() - returns the number of the month in the year;
  • getFullYear() - returns the year. If you simply use getYear() , the current year minus 1900 will be displayed;
  • get Hours() - returns the hour of the day;
  • getMinutes() - returns minutes as a number from 0 to 59;
  • getSeconds() - returns the number of seconds from 0 to 59.

It is not always convenient to insert a Java script directly into a website page. It is better to place the description of the script at the beginning of the page between the tags and set a variable that we will call as needed in the text. Let's call it TODAY and define in it the date output form similar to the above. The script will look like this:


To display the date, call the script in the desired place in the HTML code of the page using the following command:


document.write(TODAY);

If your site contains many pages on which you need to display the date, then it is more convenient to select a Java script for displaying the date in separate file eg data.js. In practice, this is a page consisting of the first of the described scripts, that is, with the line document.write (see above). It must be located in the same directory as the main page, and called in the place where the date is displayed as follows:


Don't forget to check that the data.js file has the same encoding as the main document, otherwise the date will be displayed with wonderful hooks, squares and other tricks.

Comment. It should be borne in mind that the described script displays the date set on the user’s computer, which does not always correspond to the real current time. If you need to show exact time, then you need to use a PHP script that will show the time on the server.

Instructions

If you do not have the opportunity or desire to process the footage on a computer, but want to see the date on each picture, make sure in advance that automatic mode I stamped the date on each frame. To do this, enter the camera menu and in the “Settings” or “Options” section (depending on the model, menu items may have different names) set the desired parameter.

Many modern mobile phones, and especially smartphones and tablet computers, are also capable of displaying the date on each photo during shooting. To enable this option, open the camera's settings menu and set the photo time display mode. If you cannot find the desired menu item on your own, use the instructions for your device, because the paths to certain settings are different for each gadget.

If the problem nevertheless confronts you after the fact, there is nothing left to do but add the date manually, using any available graphic editor, even if it is built into a set of system Windows tools Paint program. Click the “Start” button, go to the “All Programs” section and in the “Accessories” section click on its icon.

When the program window opens, drag a photo into it or add a file by pressing the Ctrl + O key combination. Click on the icon with the letter “A” on the toolbar Paint editor, then click anywhere on the photo and select the desired font, color and size of the inscription that will represent the date of the photo.

Place the cursor in the lower right corner of the photo (this is where the date on the photo is usually located), and then enter the desired numbers. After completing your input, click in any free area of ​​the image. Save the result by selecting the “Save As” command from the menu.

Sources:

  • Automatically adding the current date to a cell

Today, few people use the function of automatically adding a date when taking photos, preferring to get “clean” pictures. However, when organizing a collection of photographs, you may need to date a group of photographs. In this case you will need software tool, which provides such functionality.

Instructions

Paying to add a date to your photos will be unacceptable for many, but when looking for an application that would perform the functions you need, you may not succeed. Basically, all programs of this type offer either free period, or set limits on the number of files processed simultaneously. And it’s even more annoying if the developer’s logo is added to your photos along with the date.

Fortunately, some popular and simple graphic editors can “batch” add any text to images, be it the owner’s name or the date of the photo, and they do it completely free. To use one of these programs, go to the website www.google.ru and from the “All Products” section, which is located in the “More” menu, download the Picasa application - intuitive and functional graphic editor.

Run the program after installation and agree to be added to its library with hard drive. The program will not perform, but will only add links to the images in its shell for ease of viewing, searching and editing. After indexing your photos, in the main program window on the left you will see a list of folders with images. Click on the folder containing the pictures to which you want to add a date.

From the File menu, select Export Photo to Folder. A dialog box will open where you will be asked to: select a location on the disk where the folder with the finished photos will be copied; enter a new name for the folder; specify the new size and quality of photos, if necessary (this method can be used when resizing photos in batches).

After making the necessary settings, enter the desired date in the “Watermark” field, which will be added to the pictures. Click the "Export" button and wait for the photos to be processed. After the process is completed, the program will open a folder in which you can find the finished photos.

Video on the topic

The passion for photography has become a very fashionable activity. And this is due not only to the widespread digital photography, but also to the large creative space in the art of its processing. Modern photography is gradually losing realism, becoming an attribute computer technology. Even printed publications cannot do without the use of photo editing capabilities using modern computer programs.

Instructions

To begin work, you need to transfer a photo from to personal using any media manager. This process is carried out using the accessories supplied with the camera, a wire connected to the USB port of the computer and to the camera.

Then you should install an editing program. The most programs that perform complex editing and conversion are Photoshop and CorelDRAW. For simpler photo editing, use the program included in the basic installation. personal computer– Microsoft Office Picture Manager.

Next step– this is the opening of the required object for editing in a photo editor program. This function is simple to implement. Place the mouse cursor on the photo shortcut and press the right button. A pop-up list of programs that are available for editing this photo appears. Select the program we need and click left button mice. In the program that opens we look for the desired option.

The photo editing possibilities are almost endless. You can change any properties of photos. This applies to the format, size, weight of the photo. The image itself in the photo can be rotated, reflected, adjusted its brightness, contrast, cropped and partially removed objects from the photo. You can also make an image black and white or monochrome, apply special effects, clipart, combine photographs (collages) with others, perform various types of artistic editing and transformation.

Useful advice

A photo can be changed beyond recognition. The more complex the type of photo editing, the more specialized knowledge and time it will require.

Sometimes it happens that you forgot to set the camera settings to display the date and time of the photo. This can lead to the fact that after some time, lost photos taken on an unknown date will be found on your computer’s hard drive. But don't get upset ahead of time. You can always put the date in Adobe program Photoshop.

Remember the old Kodak disposable cameras that you may have taken with you on vacation at school or college? And how did each of them have a timestamp in the bottom right corner of the printed image? Good times, yes?

Not really. For the most part, these timestamps made the photo look ugly. While this data, especially the date, could be useful, its display left much to be desired. Therefore, when we moved into the era of digital photography, data about the time of the photo, along with other EXIF ​​data such as GPS coordinates, were embedded in the data file itself, and were not displayed directly on the image. True, now in order to get all the information embedded in the image, you need to have it in electronic form. For example, in order to make a high-quality technical translation of any text with images embedded in it, you need to send the photo to the translation agency in electronic form.

If you advanced user, you can easily get all the details about the photo, but the problem is that they are not viewable by, say, your grandmother. And if she can figure it out with a new coffee maker, then with a tablet or smartphone it will be a little more difficult. You can use the special Exif Viewer application for this.

If you need to send someone a photo with a timestamp, or you just want to use timestamps on photos from your own collection, we recommend using two apps for iOS and Android that will do it for you.

DateStamper can do a lot. There are two ways to use the application to put a date on an image - either the application itself or its extensions for standard program Photos.

But first, go to settings and set what you want to display in the photo. By default, these are only date stamps in gray color, which does not stand out at all. You can add time, change the font and size, change the color to something like orange if you want.

From the app, go to the album, check the photos you want to print on additional information, click OK, and confirm the operation. Beware: DateStamper will edit the current photo, it will not make a duplicate.

The Android application we use, PhotoStamper Free, is quite convenient and functional.

Click the Gallery button and select the photos you want to edit. Then click the Checkmark button and select the folder where the processed image will be exported. You can change this folder. After you click OK, the process will start.

Browse to the folder to find the file with the date and time stamp embedded in the bottom right corner. To change the layout or placement of the stamp, go to the middle tab and edit the layout to your liking.



Related publications