Computer lessons

How to quickly insert a face into another photo in Photoshop. How to insert another face into a photo Where to get the installation code

Perhaps this will be useful to you)

Today due to WordPress update The procedure for editing an uploaded photo has changed. Overall, editing has become easier. The procedure for uploading photos from your computer remains the same.

In order to insert a photo onto a website or into the text of an article, first place the cursor at the place in your text where you want to place the photo. Then click the "Add Media" button. It is located between the Article Title and the text editing console (See Figure 1)

(See Figure 1)

In the “Insert media file” window that opens, click the “Upload files” link (see figure 2)

(Figure 2)

In the next window, click the “Select files” button (see Fig. 3)

(see Fig. 3)

An additional window will open in front of you. Prepare in advance the photos that you want to post on the site and collect them in a separate folder on your computer. Through an additional window, enter this folder and select a photo by clicking on the image with the mouse once. If you need to insert all the photos at once, then select them all.

After that, click the “Open” button, which is located in the lower right corner of the additional window (see Fig. 4)

(see Fig. 4)

The selected photo will be uploaded to the site and will be located in the “Media Files” tab and in the future, if necessary, can be loaded into other articles on the site; there is no need to re-upload it from the computer. Enter the required information in the active windows on the right (see Fig. 5):

— in “Title” and “In the alt attribute“ — enter the title of your article.

— in “Description” — type in one sentence what your article is about. The text of the proposal must contain the title of the article (see Fig. 5).

Then click the "Insert into Page" button. If you write text not in the “Page”, but in the “Post”, then you will have a button “Insert into record” - click it.

(Fig. 5)

The photo will appear in the place where you previously placed the cursor. Initially, the photo will not be loaded in the size that will look optimal on the site page (see Figure 6). But this can be easily fixed.

(Fig. 6)

To edit an image, move the cursor over it and left-click once. The image will be covered with a blue background, then click on the image in the upper left corner (see Fig. 7)

(Fig. 7)

After you click on the icon, as shown in Figure 7, you will be taken to the photo editing panel (see Figure 8). Here you also need to enter the necessary information to improve the indexing of the uploaded photo:

— in the “Title” line, enter the title of your article;

— in the “Alt attribute” line — also enter the title of your article;

Then choose the location of your image on the site: “Left”, “Right”, “Center” or “None”.

After you enter all the necessary information, click the “Advanced” tab in the top line of the additional window.”

(Figure 8)

On this page you can set the dimensions of the photo, that is, the width, height and distance of the text from the borders of the photo. Set the sizes slightly smaller than the default ones. Then when you look. how the photo will look on the website, the dimensions can be easily changed and the appropriate ones can be set.

In the active box “Open in a new tab”, check the box. If you click on the photo directly on the site, it will open in a new window (see Fig. 9).

(Figure 9)

After you enter all the necessary information, click the “Update” button in the lower left corner of the additional window. That's it, your photo is inserted into the text. In the editor it will look like this (see Figure 10). Click the "Save" button. Before publishing, click the “View” tab and take a look at how the article with photos looks on the site. If necessary, make size adjustments and resave the page. Then click the Publish button.

(Figure 10)

The photo is inserted into the article and looks correct on the website (see Figure 11)

(Figure 11)

If the photo needs to be repositioned not in the middle, but on the right or left (see Fig. 12), then proceed in the following order.

(Figure 12)

Click on the photo and enter the editing panel. Here select “Alignment” “Left” (see Figure 13)

(Figure 13)

Fill in all the necessary data in the same order and click the “Update” button (see Figure 14)

(Figure 14)

After you publish the article, the photo on the site will look like shown in Figure 15.

(Figure 15)

I hope you will not have any difficulties posting photographs and drawings on the site. If you find any inaccuracies or unclear points, please let me know in the comments.

Read the article on this site

Want to know how you can “swap faces” with a friend, relative or favorite celebrity? The magic of photomontage will help you with this! How it works? Search engines, upon request, will probably offer to use Photoshop, but this program will not be suitable for a non-professional. The best option is a simple one, like a “Home Photo Studio”. In this article, you will learn how to insert another face into a photo without any experience in photo editing.

Step #1. Let's start work

To get started, we suggest installing it on your PC. Follow the instructions of the Installation Wizard - the program will be ready to work in just a minute. Launch the utility. In the start window, select the “Open Photo” option and find the file with the photo you want to edit.

You can start working immediately after the program is installed

Step #2. Photomontage

The next stage is the most crucial. In the main menu, click on the “Design” tab and find in the list. In the window that appears, create a new layer. To do this, click Add Layer > Photo and upload the photo you want to overlay.


With photo montage, you can easily superimpose one photo on top of another.

When choosing a photo, it is worth remembering that both photographs should have approximately the same resolution and quality. Moreover, faces should be shot from as similar an angle as possible.

In the list, select the layer with the added image and click “Crop photo”. A new window will automatically appear. Use any form of trimming. Carefully outline your face, trying to avoid unnecessary objects such as accessories. If it turns out uneven, use the “Reset Selection” option and try again. Close the dotted line by double-clicking the mouse. Increase the value on the Border Blur scale by dragging the slider to the right and click Apply.


Zoom in on your photo to make the result as accurate and accurate as possible.

Now let's figure out how to insert another face into the photo so that the difference is not noticeable. To do this, you need to transform the cropped layer. Resize the new image by dragging the selection by the corners. The "new" face must match the size of the face in the original image. If necessary, rotate the layer by moving the slider on the Rotation Angle scale. The blending mode will be "Normal" by default, but you can choose a different one if you wish. Ready! Click the "Apply" button.


Adjust the layer overlay so that the “new” face looks as natural as possible

Step #3. Levels and color correction

It's still too obvious that the face was taken from another photo. Let's do some simple color correction. To do this, in the “Image” tab, open “Levels”. It is very easy to understand how to use this function. There are 3 sliders on the “Input Levels” scale – white (light shades), gray (midtones) and black (dark shades). With their help, you can comprehensively adjust the brightness of a photo. Change the position of the sliders to darken (right) or lighten (left) the image. Then save it by clicking "OK".


By adjusting the levels, you can make the picture with the “new” face more monochromatic

Step #4. We work with details

Now you know how to insert another face into a photo as naturally as possible, but your possibilities are not limited to this. If specific areas of the image need processing, use the tools in the panel on the left. Select Blur Brush to make the transition from the original photo even smoother. Adjust the tool parameters - the smaller the object being processed, the smaller the size and transparency of the brush.

You can also darken or lighten certain areas of the photo in the same way, add sharpness, contrast or saturation to them. Simply select the appropriate brush from the toolbar and process the desired part of the image.


Use burn and dodge brushes to add dimension to your image.

Step #5. Save and share with friends

Let's evaluate the final result.


Photo montage will help you try on the role of your favorite movie character


You can adjust the quality of the photo before saving

Ready! Now you know that inserting a face into another photo in Photoshop is not the only solution. This instruction is universal, use it in practice the way you want. Find out and discover new features of the program! “Home Photo Studio” will become your faithful assistant in any situation when you need to process a photo with high quality.

Instructions

Start creating a registration form with the tag, between which you need to place additional tags that allow users to enter their own data into the form.

Open the html file and start entering the code. The tag responsible for creating the form is “form”. We write down the tag along with the attributes “form action=”obrabotka.php” method=”post” name”forma1””. Let's start creating form elements. Almost all elements are made using the tag and its “type” attribute, which is responsible for the type of data, for example text, password, etc. We always set the name “name” to any of the attributes.

Enter: "br" Enter your name: "br"

"input type="text" name="fio""

"br" Enter password: "br"

"input type="password" name="pass""

"br"Enter E-mail:l"br"

"input type="text" name="email"".

Next, we create a radio button selection element. A radio button is a form element that, when you click on it with the cursor, other radio buttons are turned off. Let's explain with an example of our form. When ordering a course, the choice will consist of either CD or DVD, so you need to choose one. The element of the “type” attribute – “radio” is responsible for creating such a button. We will specify the same name for the media type, so we will specify the “value” attribute so that the handler can accurately determine the value of the variable. We write the code: "br"Select the storage medium option: "br"

"input type="radio" name="disc" value="cd"" CD "br"!}

"input type="radio" name="disc" value="dvd"" DVD "br"!}

If the “value” attribute is added to the text, then the form will immediately display the value that we assigned to this attribute. For example, so that the full name form already contains some kind of name (value = “name”).

Enter a phone number where the operator can contact you and clarify the accuracy of the order. Please enter your email address. Please indicate in the appropriate fields how you would like to receive and pay for the selected items.

If the online store has any promotions, enter the promotional code in the required field. If you have gift certificates, discount coupons, or a card with which you can receive additional benefits, also do not forget to indicate this. The final cost of the order, taking into account discounts, can be seen immediately; if not, click on the “Recalculate” button.

After filling out all the required fields, click on the appropriate button (“Checkout”, “Buy”, “Complete ordering”). In most cases, an order confirmation email will be sent to the email address you provided.

Helpful advice

Don't lose your vigilance and common sense. If you are asked to provide any additional data (passport series and number, full information on a bank card or account), think about whether it is worth disclosing them, because they are absolutely not needed to make purchases.

Feedback forms are placed on web pages to allow the user to send data to the server. For example, in order to leave a review about the site in the guest book or any other information.

You will need

  • - computer with Internet access;
  • - browser.

Instructions

Use a special online constructor to create a feedback form. To do this, follow the link http://ip-whois.net/forma-obratnoj-svyazi/. This site contains a form generator in which you can set settings for the size of the form, its fields and the color of all its component elements. As a result, you will receive a code that you just need to copy into the page code and get a finished form.

Customize your form. To do this, first enter the height of the title bar. Click on the white margin of the page to see the results immediately. Next, select the color of the strip on which the title is written. To do this, click on the colored square to the left of the corresponding inscription. Similarly, select the color for the title text. Set the height of the data entry and message fields in the following fields. Set the text color of your form.

Select colors for the following form elements to design your site's feedback: form body, field text, form borders. In the last field, enter the font size for all labels. To view the result, click on the white field or click on the “View” button. Make changes if necessary.

Click on the “Configured” button after you have set all the settings for the site’s feedback form. After the inscription “Step two” the text will be placed, select it with the mouse, right-click on the selection, select the “Copy” command. Open your page in editing mode (in Notepad or any editor), paste the feedback form code. Save your changes and exit the editor. Feedback creation is complete.

To create and insert an order form on a website, you need to have the skills of a web programmer. You can also entrust this task to third-party performers who have these skills.

You will need

  • - Notepad program or regular notepad.

Instructions

Between them, enter an opening tag with a method attribute assigned to it, which is equal to "post". Next, proceed to adding an attribute that will ensure that the order is sent to the email address in the future. Next, give the form a title of your choice.

In this article we will talk about how to embed a video on a website and learn how to:

  • Place your files on video hosting sites and display them on the website.
  • Upload videos to your hosting and display them on the site using the player.
  • It's no secret that video is becoming an increasingly popular type of content every year. Today, it is no longer easy to keep ordinary users on your website or resource only with the help of beautiful pictures and well-written texts; you need a video that will make their stay on the site even more interesting. Let's move on to the instructions:

    How to upload a video to Youtube:
  • First of all, you need to log into your YouTube account.
  • Click the Add Video button at the top of the page.
  • Select a video to download. (Please note that the video must not violate copyright. If you want to put famous music on the video, you will have to buy it).
  • While the file is downloading, fill in the basic information about the video and, if necessary, additional parameters.
  • To add a video to YouTube, click Publish.
  • Until you click the Publish button, the video is only available to you.
  • More detailed instructions for uploading videos to Youtube can be found on the support page

    Insert a video from Youtube into your website:

    To insert an already uploaded (existing) video on Youtube:

    We looked at several ways to insert code from videos that have already been uploaded to one of the popular video hosting sites.

    Now let's look at the options for playing video with the downloaded video on your server.

    Embed video on website using HTML5

    For this method you will need a video tag

    < span class = "tag" ><< span class = "title" >video< / span >>< / span >

    < span class = "tag" ><< span class = "title" >source< / span > < span class = "attribute" >src =< span class = "value" >"URL"< / span > < / span >>< / span >

    < span class = "tag" >< /< span class = "title" >video< / span >>< / span >

  • Upload the video to the server;
  • Copy the above code;
  • We paste the copied code into the part of the site we need;
  • We change the URL to the path to the file that we placed on the hosting
  • Save the changes and refresh the page.
  • There are several attributes for the video tag, and some of them are also found in the codes offered by popular video hosting sites.

    First of all, I would like to talk about such attributes as height (height), width (width).

    With their help, you can adjust the height and width of the area for video playback.

    • src is the most important attribute; it specifies the path to the video.
    • autoplay - play the video immediately after the page loads.
    • loop - repeat video playback upon completion
    • poster - specifies the address of the image that will be displayed while the video is not available or playing.
    • preload - downloads the video along with loading the web page.
    Embed video on website using player

    Now there are many different players on the Internet that you can use on your website. As an example, I chose one of the popular flowplayers.

  • , and then unzip it;
  • Create a folder and place the files from the archive into it;
  • Connect the player's javascript file to the html file. To do this, inside the head tag, write the following code:


    Be more careful when specifying the path to the file. You can not create a folder, but put the script file in any other folder, for example in a folder with other scripts.
  • Now let’s place the player itself in the page code and, accordingly, the video file.

    < ! -- the player -- >

    < div data - swf = "flowplayer.swf" data - ratio = "0.4167" >

    < video >

    < source type = "video/webm" src = "https://путь к вашему видео файлу если он в формате.webm" >

    < source type = "video/mp4" src = "https://путь к вашему видео файлу если он в формате.mp4" >

    < / video >

  • The tag is responsible for inserting images into an HTML document. and its attributes, the main one of which can be considered src , which specifies the address of the image. It is required because if you don't specify where to get the image, the browser won't be able to know what to add to the page.

    The simplest case of inserting a picture will look like this (the image is called image.png and is located in the same folder as the HTML document):

    Previously at the tag There was another required attribute - alt, but with the advent of HTML 5 it was relegated to the category of desirable ones. alt sets the text that the user will see instead of the image if it suddenly does not load. Some optimizers also recommend adding this attribute, because it is believed that it has a positive effect on promotion in search engines.

    If you do not specify any additional attributes to the image, it will be displayed in full size, but this is not always necessary. Fortunately, the desired size of the picture can be set using the width (indicates the width) and height (indicates the height) attributes. Dimensions can be recorded either in pixels or percentages. In the second case, the browser will calculate the percentage from the parent element (for example, the paragraph into which the picture is inserted).

    Let's say we need to add an image.png to the page with the alternative text “Just a picture”, 420 pixels wide and 280 pixels long. The code in this case will be as follows:

    Navigation map

    We talked about how to make a picture a link in the previous article. However, HTML allows you to set not just one link on one image, but several at once. As a result, the user, clicking on different places in the same picture, will go to different Internet addresses. This feature can be used, for example, to create eye-catching menus, interactive tests, or visual graphic models.

    To create an image map (this is the name of the described feature), you will need the following tags and attributes:

    • - a container inside which the image map is described.
    • - a tag inside that describes one area of ​​the picture. The number of active areas the image is planned to be divided into is the number of elements that will have to be placed. Ligament - works exactly the same as ligaments -
    • And
        -
      • , creating lists.
      • shape - tag attribute that specifies the shape of the link. The active area can be in the shape of a rectangle, polygon, or circle.
      • cords - attribute defining the coordinates of the area. Also belongs to the tag. For a rectangle, the coordinates of the upper left and lower right corners are indicated, for a polygon - the coordinates of the vertices; when defining a circle, you need to specify the coordinates of its center and radius.
      • usemap is an attribute of the img tag that associates the image with the map. Thanks to it, the browser understands that the container describes the map of this particular picture.
      Example image map

      To make it clear how to use all of the above, I will give a basic example. There is a picture map.jpg. It needs to be divided into two active areas. Clicking on the top part (green) will open the Odnoklassniki website, while the bottom part (blue) will lead to VKontakte. Links should open in a new tab. To create a map, follow the following steps.

      1. Insert the image onto the page and link it to the future card (it will be called social), for which we write the following code:

      2. We determine future active areas in the picture and their corresponding coordinates. This can be done in Paint, Photoshop or any other graphics editor. In our case, everything is elementary: the rectangles are equal in height (114 pixels) and width (384 pixels).

      3. Let’s start creating a map: open the tag and write its name in the name attribute, which must match the value of the usemap property of the image itself:

      4. Using area tags, we define active areas:

      5. Close the card:

      The result of the work was a picture, clicking on different parts of which leads to the opening of different social networks, and this is the HTML code:

      Navigation map

      Despite the fact that the simplest case that you can think of was considered as an example, it clearly demonstrates the principle of creating navigation maps. Then it’s a matter of technique and determining coordinates; from an HTML point of view, nothing is complicated.