Upload image from document

From Thermal-FluidsPedia

Jump to: navigation, search

This article will explain the steps to extract a figure or picture from a Word/PDF document and upload it to ThermalFluidspedia. Doing this is not as simple as clicking-and-dragging as one might expect, mainly because when you add an image to a document it is embedded as part of the document itself (which is why you can add a picture to your Word document, delete the original file, and the image will still exist in the document).


Microsoft Word Document

(This assumes you are working with Microsoft Word 2003 or up)

Save document as a web page

Since the picture is embedded within the Word Document, we need Microsoft Word to export each image for us. The resulting image swill typically be in a JPEG or GIF format, and will be sequentially numbered as 'imageXXX.gif'. To do this, click the File > Save As option on the menu bar while viewing your document.

From here, choose the "Save as Web Page" option, and pick the folder you want to save it in. Click Save.

Microsoft Word will now export the document as a .htm file as well as a folder containing all images, media, or figures included in the document. Go inside this newly created folder and find the image you want.

Upload image to ThermalFluidspedia

Now that you have access to the image file itself, you can rename it to something more appropriate and upload it to ThermalFluidspedia. To do this, select the Upload file link on the Toolbox sidebar. From here, you will be prompted to browse to the directory on your computer and upload the image file. You can also add a small comment/summary about the file itself for later reference.

If the upload is successful, you will be taken to a page displaying the image. You can now add this image in your articles using the [[File: ]] tag.

A further Picture tutorial can be found at http://en.wikipedia.org/wiki/Wikipedia:Picture_tutorial

PDF Document

In order to extract images from a PDF document, you will need to install a small Windows utility called Some PDF Images Extract, which is a free download. The downside to this program is it is a batch image extractor, and is designed to grab ALL the images from your document; however, it can be customized to narrow the target to a range of pages rather than the whole document.

Select PDF file and options

Open up the Some PDF Image Extractor program, and select File > Open File from the top bar, or by clicking the folder image in the middle of the page. Here, you just need to locate the PDF file you wish to use to grab images from. Once you have selected the PDF file, you need to specify some options. First, you can specify the range of pages to grab images from: All Pages (the entire document) or Selected Pages (you specify the range of pages) to grab from.

Next, you need to specify the folder to output your images to. When you click the white space next to Output Directory, a dialog box will pop up allowing you to choose a folder. It may be a good idea to make a new folder somewhere on your desktop, as this program could potentially extract dozens of images, and could easily get mixed in with the rest of your files. You can also choose the Output Mode, or the image type of each exported image. JPEG generally has the smallest file size, but PNG will offer better quality; ThermalFluidspedia allows all these file types so it is not a huge issue what you choose, although if you choose JPEG you can further specify quality options.

Extract images

Now that our options are all set, we need to begin the extraction process. Click the Start Convert button in the lower left corner, and you should see the conversion process begin. To the right of the Start/Stop buttons, there are 2 status bars. The top bar extracts the images as .ppm files temporarily, and the bottom one will convert those .ppm files to the file type you specified.

Once the bottom status bar reads "Convert Finished", the files are completed, and you can now go into the folder and rename them (as they will likely have a filename similar to 'image-001'). With this done, you can now upload them to ThermalFluidspedia.

Known Issues

In some cases, notably Windows Vista, this application will not correctly convert the .ppm files to the file type you specified. What happens is the .ppm files are extracted to the parent directory (one level up) from the directory you specified, and the program does not correctly convert them--however the bottom status bar will still read "Convert Finished". In order to solve this, once you have extracted the .ppm files, run the Start Convert button again. However, this time set the Output Directory as the folder containing the .ppm files that were just extracted. It should go through the extract process again, but this time the files should be correctly converted and placed in that directory.