Création des Logiciels de gestion d'Entreprise, Création et référencement des sites web, Réseaux et Maintenance, Conception
Création des Logiciels de gestion d'Entreprise, Création et référencement des sites web, Réseaux et Maintenance, Conception
With just a few snippets of HTML code, you can embed an image into any web page, email or other Internet-based HTML or XML document. While you cannot "convert" an image to HTML code, you can save the image locally or at a specific Web address and then designate a place for it in an HTML document. You can also specify how many pixels large the the image should appear, both vertically and horizontally. Read on to learn how to convert an image to HTML code.
Choose an image. It can be any image of any size.
Save the image locally or online. This means that you can save it to your computer or at a specific Web address. If you want other people to be able to see the image online, you need to upload the image to a Web server. Use your website server, or if you have no website, try using Picasa or other image storage and sharing application. Take note of the URL where the photo is saved.
Open an HTML document. Use the image tag and the exact URL of where the image is stored: <img src="http://example.com/image.jpg">.
This will embed the image into your HTML document. When the user opens that document via a Web browser or other program, the image will appear.
Adjust the width of the image as you wish it to appear, in terms of pixels. Again, use the exact URL of where the image is stored. For example, <img src-"http://example.com/image.jpg" width=400>. This will stretch or shrink the existing width of the image to 400 pixels.
Adjust the height of the image as you wish it to appear, in terms of pixels. For example, <img src="http://example.com/image.jpg" height=700>. This will stretch or shrink the existing height of the image to 700 pixels.
Combine width and height adjustments as necessary. For example, <img src="http://example.com/image.jpg" width=400 height=700>.
Turn the image into a link if desired. Use the anchor tag with the image tag embedded within. For example, <a href="http://website.com"><img src="http://example.com/image.jpg" width=400 height=700></a>.
The Hyper Text Markup Language (HTML) provides programmers with a way to create richly formatted text. Many facets of a text's display are controllable in HTML. The size of the font as well as the font choice itself are easily manipulated. The line spacing and the distance between individual text characters can be changed. Stylizations such as bold, italics, underline or superscript notation are added using simple HTML tags to the text. The color of the words and even the background shading of an entire text line can be altered. It is often desirable to convert these results into a permanent image file. This allows someone to use HTML to construct logo text, for example, then save that logo as a separate file for use on letterhead or any other application.
Open the HTML document that contains the text you wish to convert into an image. Use a web browser to view the displayed HTML. In most cases, simply double-clicking on the HTML document will open the file in a web browser automatically.
Scroll the HTML page in the web browser so all the text is clearly visible on the screen without the need for additional scrolling. Make sure no other windows or toolbars obstruct the view of the text.
Hold down the "Alt" button on the keyboard while pressing the "Print Screen" button. The current window displaying the HTML text is captured as a screenshot and saved to the computer's memory.
Open an image editing program. Windows contains a basic image editor, Paint, that is satisfactory for this purpose. It is located in the "Start" menu "Programs" folder, under the "Accessories" group.
Press the keyboard combination "Control+V". This will paste the screenshot into the image editing software. Alternately, use the "Edit" menu and select "Paste." The entire screenshot is delivered into the editing software as an image. This will include much more than just the HTML text.
Crop the screenshot to arrive at only the HTML text you wish to keep. Use the "Select" tool in "Paint" to draw an outline around the portion of the screenshot you wish to target for your final image.
Press the "Control+C" keyboard combination to copy just that selection into memory.
Click the "File" menu and choose "New" to create a new image document.
Paste the copied image into the new document, using either the "Paste" option from the "Edit" menu or the keyboard combination "Control+V."
Save the image using the "File" menu "Save" command. The original HTML text is now converted into its own standalone image.
2013, By: Seo Master