How to Properly Resize a CSS Sprite Image in GIMP

  • Buffer
  • Pin It
  • Sharebar
  • Buffer
  • Pin It

GIMP is a popular image editor, but to require some knowledge if you want to properly resize a CSS sprite image in GIMP. In my previous post I provided instructions on resizing a CSS sprite in Photoshop, but I realize that Photoshop is expensive to buy, and many people may not be using that photo editor. For those that are looking for a free alternative to Photoshop, I suggest you download GIMP which is also powerful photo editor.

If you are used to Photoshop, GIMP can take some getting used to, but once you understand the basics, it is easy to use. In this tutorial I will show you how you can easily resize a CSS sprite in GIMP much like I did in Photoshop.

Resize a CSS Sprite Image in GIMP

CSS Down How to Properly Resize a CSS Sprite Image in GIMP

It is very easy to resize an CSS sprite in GIMP, mostly because it won’t automatically center the image when the canvas is resized. In this example, I will once again use the following CSS sprite image.

social icons How to Properly Resize a CSS Sprite Image in GIMP

CSS Sprite - Social Media Icons

Steps to Properly Resize a CSS Sprite Image in GIMP

To resize a CSS sprite, use the following steps:

  1. Click “Image->Canvas Size”.
  2. Click the link icon (looks like a chain) beside the width and height values.
  3. Enter in the new width and height value for the canvas size. The image preview will change to show the new canvas size.
  4. resize canvas gimp How to Properly Resize a CSS Sprite Image in GIMP

    Doubling the Canvas Height Below the Existing Image

  5. Click the “Resize” button at the bottom to resize the canvas.
  6. social icons resize canvas gimp How to Properly Resize a CSS Sprite Image in GIMP

    Result of Doubling Canvas Height Below Existing Icons

The CSS sprite image should now be larger without moving the existing images with respect to the top-left corner.

There are a few features that I like about GIMP over Photoshop with regards to resizing the canvas:

  1. It doesn’t automatically center the image. You can click the “Center” button to have it center the existing image.
  2. You specify the actual size of the canvas instead of how much larger you want it to be.
  3. The preview of the resized image and canvas within the window is helpful as you can see what the image and canvas will look like after the resize.

The above steps have shown you hot to properly resize a CSS sprite image in GIMP.

You may also like:

CSS

How to Properly Resize a CSS Sprite Image in Photoshop

CSS

Speed Up Your Web Site By Using CSS Sprites

No thumbnail image

Photo and Image Editors

No thumbnail image

Introduction to Cascading Stylesheets (CSS)

One person had something to say about “How to Properly Resize a CSS Sprite Image in GIMP”:

Comments


  1. Hm.. Nice share. Thanks a lot for sharing this. Very nice info!
    Andrew Walker recently posted…The Six Best U.S. AirportsMy Profile

Do you have something to say? Let everyone know!

Commenting policy: All comments are moderated for spam. You must use your real name and not your website name or keywords. If a comment is deemed to be spam, then it will be deleted or edited. Links to your website within the comment body is not permitted, but you are free to use CommentLuv to add a link to your latest post. If you wish to add a link to your website, you can always contact me about submitting a guest post.






CommentLuv badge
This blog uses premium CommentLuv which allows you to put your keywords with your name if you have had 5 approved comments. Use your real name and then @ your keywords (maximum of 3)

Previous Post:

Next Post: