![]() |
![]()
![]() ![]() ![]()
![]() |
![]() |
File and saveHere we will discuss how to save, open and create files, set preferences and what file format Gimp supports. We will also look into how you print from Gimp. The file menuIn Gimp you can get to the file menu in two different ways. Either you press "file" in the Toolbox or you press your right mouse button in your image which will bring up the"root menu" where you will find a file entrance. The menus are a bit different here than in the Toolbox menu. And in the root file menu you will find We will go through all that, except for dialogs, in this chapter. A new imageLet's start by creating our first image. Choose file in the Toolbox and go to New. This will bring up the following dialog. Here you can decide what size your image will have in pixels, whether your image should be grayscale or RGB, and you can decide if it will have a solid background or if it will be transparant. As you see, there are two kinds of "Background Fill" if you want a solid background in your image: "Background" and "White". White will obviously get you a white background, "Background" will get you a background defined by you in the Toolbox color icon (more about that in chapter X). Transparant results in a checked background that symbolizes transparancy. This is a nice feature if you are creating transparant GIF's. Lets stick to the default values and press OK. Now you have a new image that you can start working with. Let us close the image by choosing Close in the root file menu. This will close your image as opposite to Quit which will both close your image and quit GIMP. You may wonder why you can't get a index image at once so you can create your nice GIF for the web. The reason is that it's quite hard to guess what colors you want to use in your image. Also, it's a very bad idea to start out with an indexed image. Hey, can't I create GIF's then? Of course you can. You only have to convert the image to indexed color (see chapter X). Always work with RGB, and don't convert it until you're finished with it. The same goes for every other indexed file format ex xpm. Open a image.Now we will open a image by using File/Open. This will pop up an open dialog, where you can browse to select the image you want.In the "Determine file type" menu you can choose what kind of file you want to open, or let GIMP do it automatically. It's wise to let GIMP figure out what kind of file it is. It's only when GIMP has a hard time determining what kind of image you are loading, that it's advisable to use the non-automatic options. Let's get you familiar with the interface and open some images in the usual formats GIF, JPEG and TIFF. Later in this chapter we'll discuss what kind of formats GIMP can read and write to. Options when opening a Postscript or Pdf fileThe open dialog for Postscript files or pdf files If you unchecked the "try BoundingBox" the pages would get stacked over each other. If not, they will be displayed side by side. "Pages" refers to what page, or what page interval you want to display; for instance 1-99 for page 1 to 99, or 75 for page 75 (if your ps file has less pages, don't worry, it will be adjusted automatically). Checking B/W will get you a Black/White postscript from a color one, grayscale will get you a grayscale one, color will get you a colored one and automatic will get you whatever mode the ps file was created in. You can of course never get a colored image from a B/W postscript, even if you choose colored. To Save an imageGIMP also lets you save the image you have created. Isn't it wonderful - it's not like when you get Photoshop for free in demo mode "save and print is disabled, this is a demo copy". The Save dialog is only reachable from the image root menu, this is because it is the active image you want to save, or save as. The "save" dialog is the same as the"open" dialog except that the"Determine file type" menu is a bit different. The default for Determine Filetype is "By extension", this means that if you name your image"hello.gif" it will be saved it in gif format. You can of course choose to save your"hello.gif" in tiff format, by selecting tiff in the menu, but this will be highly unrecommended. If you want to save a file without an extension, then you have to choose the file type. Just remember to flatten your image before you save it. The only two exeptions to this rule is if you save it in xcf format, which is GIMP's native file format, or if you save a gif file and want to do an animation. GIMP supports many different file formats, how many depends on what plug-ins you have loaded. Yes, as with many things in Gimp, it relies on plug-ins. Examples of plug-ins are the mail and print plug-ins, and of course all the filters. We will discuss plug-ins later in this manual, for now we will concentrate on the plug-ins we need for saving and that comes by default in the general GIMP distribution. File formats supported by GIMPThe list below will describe what file formats you can read respectively write to. XCF is the native GIMP format that will save your layers and other GIMP specific information. If you save your image in a different file format, your GIMP specific info will be lost, and you won't be able to open and edit your layers or other GIMP specific things (gif supports layers in the way that each layer becomes a image in a gif-animation). Be aware - only the active layer gets saved, if you save in other formats than XCF. If you want to save a layered image in tiff format - don't forget to flatten it before you save it. A brief description of the different file formats can be found in the bullet list. For more information about file formats, see the appendix X about graphic books and links.
Different options when saving files in GIMPWhen you save your newly created image, for instance test.jpeg, it will bring up a dialog asking you what kind of compression and stuff you want. We will now take look at the different dialogs, and discuss what impact these parameters have on the image. The Gbr save dialog. Spacing refers to the default spacing your brush will have If you have layers in your image you can make a gif animation. If you just want to see the animation once, uncheck the loop button, otherwise it will loop forever. The delay input is the delay between frames in your animation. The checkboxes in the "Default disposal where unspecified" does the following: "Don't care" and "Make frame form...." is the same and it will begin to show you the first layer in your gif image and then add the second layer on top of the first. This mode is nice when you for instance creates a logo that is going to be "written" in a sequence one letter at a time. The other mode "One frame per layer" will use the first layer as the first frame, then use the next layer as second frame, just like in a movie. This mode is nice when you create a spinning thing, like a terrestrial globe. If your gif image is transparant it will keep being transparant when you save it, transparancy works in both layered images and in flat images. The Jpeg save dialog. This dialog Since jpeg uses lossy compression, it's focused on compression where the human brain has the hardest time to tell the difference, namely the HUE part of the image (read more about in chapter X). This means that if you have a image with a small number of colors, you can set the quality lower. As a starting point, a quality of 0.75 is fine on a full color image, and it's often as low as you can go without losing to much info in the image. If you see that it's too lossy, increase the quality. But never go above 0.95 - the file will only get bigger without any improvement in quality. If you aren't so concerned about the image quality, then you can go down to 0.50. If you want images for indexing or something similar, then you can go down to 0.10. or 0.20 (personally I think xv is better suited to index images, see appendix X). Sometimes sharp colorful edges gan cet a bit jaggy due to the nature of jpeg. Then you can increase the smoothing value to more than 0.00. This will blur the edges so they will get less jaggy. But be aware, the image can get very blurry and that's not good. The optimize check button is for ???. As a final advise don't save a tiff image of your precious mother in law as a low quality jpeg, and then delete the tiff image, because the your mother in law will be gone for ever. To put it simple, don't save in jpeg if the image is very important. Interlace is just like in the Gif dialog, which means that it will load gradually. Png compression is handled by the zlibrary. If you slide the compression to 0, no compression will take place. If you slide it to 9 the image will be compressed by it's maximum. The zlib compression is lossless. The Ps (Postscript)save dialog Or is it so that lwz patent by Unisys is for pc and pack bits is for mac? The fill order is in how the bits in your image are filled. Type 2 is least significant bit (lsb) to most significant bit (msb). Type 1 is the other way around. If I read the specification right, type 1 is the default and should be used with computer graphics. Type 2 is used by fax machines. If you should import the image in to Frame Maker or some other page setting programs, set none compression and MSB to LSB. Then you are on the safe side. Let's mail our image to a friendGimp can mail your picture. This can be a nice feature if you work on different locations. Then you can mail home or to your job. It will also bring a digital Christmas card to your friends and family. Be aware - the mail admin in your friend's network may not be so happy when you mail big images, so use it with care. Now, let's check out how to do it. In the root file menu, bring up the "Mail image". This will popup the mail dialog. The To file is the e-mail address of your friend. Subject is the subject of your email. Comment is a comment over the encoded file, for example: "Here's a nice picture of my new pet." How to print in GimpBefore even starting to print in GIMP, you have to remember that it only prints the active layer, so you have to flatten your image before printing. Let also state that we're not going to discuss UNIX printing systems, spool systems and so on, it's beyond the scope of this manual. If you want more information on setting up printers and printing systems in LINUX/UNIX go to appendix X for links and books. What kind of printer does GIMP support internally? Open an image and bring up Print in the root file menu, this will bring up the Print dialog. As you can se in the Printer menu, GIMP supports the following printers.
The Output type B&W/Color is what kind of printer you have, if you have a color printer, use color mode, otherwise use B&W which will produce a grayscale image. The media size is the paper you have put in your printer. GIMP supports Letter, Legal, Tabloid, A4 and A3 papers, although your printer may only support one of them. The Orientation menu, will let you set Landscape or Portait mode, or letting Gimp decide on your scaling factor in Auto mode. When you open the print dialog, scaling is set to 100 and the picture is stretched so it will cover all of the page (a margin of 6mm on the sides, and 13mm on top/bottom is left empty). Be aware of this, since a small image will be so enlarged that it will look very jaggy. There is a lot to discuss when printing images, but for now let's stick to that we have to do to get our image to look good. A picture which is 300x416 pixels will look good if the scaling is around 30 on a A4 paper. The procedure is as when we saved in ps format. The Brightness is by default 100, and it's quite good for printing to lasers and B&W inkjets. Usually you have to increase this value if you print to a color inkjet. The author of the plug-in says 125 to 150, but for me that's too bright. I use 110 for our Deskjet 870Cxi. The bottom line is that you have to find out for yourself what gives the best results for your printer. The command/file input line allows you to specify a printer command, the default printer command is |lp which will print to the default printer in a SysV system. Since most Linux distributions use Berkley printing system or LPRng you have to change it to |lpr which will print to your default printer. If you want to print to another printer use |lp -d <printer name> or |lpr -P<printer name> for more info see appendix X. If you have another printing system use |<command> the pipe is the sign that the following is a command. You print to a file also just use <were you want the file to be>/<filename> for example /tmp/hej.ps. A warning is in place if you print to a file that already exists. It will be overwritten without you knowing it. There is another print plug-in that is not shipped by default in Gimp see appendix X where to find it. Gimp preferencesYou can set the most basic preferences in the file/preferences or the file root menus. This will bring up the preference dialog [Top] [Prev] [Next] [Bottom] karin@frozenriver.ale.se Copyright © 1997, Karin Kylander |
|||||||||||||||||
With any suggestions or questions please feel free to contact us |