Skip to content
GConvert

Import picture as icon

You can import an existing picture file as a new icon image. When you select "File|Convert picture to icon" or in the icon editor, you click "Import a picture as image", you are prompted to select the picture file you want to import.

GConvert natively supports importing icon files (.ico), bitmaps (.bmp), Portable Network Graphic files (.png), Adobe® Photoshop® files (.psd), Macintosh® icon files (.rsrc & .icns), mouse cursor files (.cur). Thanks to plug-ins, several other image formats may be imported too, like GIF and JPEG.

When you have selected your file and confirmed your choice, GConvert will load it and then display the following large window called "Import Picture":

Import a Picture — GConvert window

First of all, you can see the imported image on the left in the white area. There is a rectangle with small boxes which indicates the current image selection. This rectangle may be moved and resized using the small boxes at the different corners. If these corners are not visible, just click the picture to give them the focus.

On the right, there are three option boxes and two buttons which are Create Icon and Cancel. Pressing Create Icon actually causes GConvert to import the portion of the image selected inside the rectangle and to convert it to the new icon image.

The "Selection Box Controls" box contains four fields,  a button and the view scale. The two fields on the left contains the two coordinates (x,y) of the left-top corner of the selection rectangle. The two remaining fields on the right contains the width and the height of the selection rectangle. All of these four fields are in pixels. You can manually enter the numbers (integers only) directly in the four fields or use the rectangle box to adjust the selection. Note that the values of the fields are automatically updated.

Press the "Select All" button to automatically adjust the rectangle selection to the size of the imported image. By default GConvert will always adjust the selection to the size of the imported image.

The "Scale" come box lets you set the scale of the image viewer. It is especially useful if you want to import a small part of a large picture for instance.

The "New Icon Options" box offers you several options regarding the new icon image which is about to be created. It is divided into two tabs:

The Image Size tab lets you define the size of the new icon image & how the imported image will be copied/resized in order to fit the new icon dimensions:

Import a Picture — GConvert window
  • Icon width & icon height: these two fields indicate the size in pixels of the future icon image.

  • Default Sizes: this combo box contains some pre-defined icon sizes. Just click the list to select the size that you like.

  • Same size as selection box: if this option is enabled, then the two fields will be linked with the height & width fields of the selection red rectangle seen above. In this case the new icon image size will be automatically adjusted when you resize the selection.

  • Resizing: defines the method to resize the picture when the selection's size is not equal to the future icon image's size:

    • Center: the selection will be centered in the new icon image.

    • Crop: the selection is placed at the top-left corner of the new icon image.

    • Fit to area: the selection is resized to exactly fit the size of the new icon image. You can select the resample image filter that is used in the Environment Options.

    If the selection is smaller than the new icon image (and when not resized), the remaining parts will be replaced with the transparent color (so they will look transparent in the final icon result).

When the Image Size tab is active, the last box called "Resized Image Preview" shows you the image after it was resized or copied according to your settings. It's not a preview of your icon as no color transformation was applied at this time.

Finally press "Create Icon" to continue. The new icon image will be created according to your options and then placed in the icon currently edited in the icon editor.

Screenshot