Basic Operations

Opening, Creating, and Saving Images in GIMP

The Foundation of Image Editing

Just as you need to know how to open a document, create a new one, and save your changes in a word processor, mastering these same fundamental operations in GIMP is essential before diving into advanced editing techniques.

Think of these operations as the doorways to your creative work—they're how you bring images into your digital studio, start fresh projects from scratch, and preserve your creative efforts for future use or sharing.

In this lecture, we'll explore these fundamental operations in depth, covering not just the basics but also best practices, common pitfalls, and workflow tips that will save you time and frustration throughout your image editing journey.

Opening Existing Images

GIMP allows you to open images from various sources, making it versatile for different workflows.

Methods to Open Images

flowchart TD A[Need to Open Image] --> B{Source?} B -->|Local File| C[File → Open or Ctrl+O] B -->|File Explorer| D[Drag and Drop] B -->|Recently Edited| E[File → Open Recent] B -->|Clipboard| F[Edit → Paste as → New Image] B -->|Web URL| G[File → Open Location] C & D & E & F & G --> H[Image Opens in GIMP]

Supported File Formats

GIMP can open a wide variety of image formats, each with different characteristics:

Real-World Example: A professional photographer's workflow might involve shooting in RAW format (for maximum quality and editing flexibility), editing in GIMP's XCF format (to preserve layers and adjustments), and finally exporting to JPG (for web) or TIFF (for print).

Opening Multiple Images

When working with multiple images, you have several options:

Handling Open Problems and Special Cases

Sometimes, you'll encounter issues when opening files:

Problem: File format not recognized

Solution: Install additional plugins or convert the file to a supported format using online converters.

Problem: Large files causing GIMP to slow down

Solution: Increase memory allocation in Edit → Preferences → System Resources.

Problem: PSD files with unsupported features

Solution: GIMP can open many PSD files but might not support all Photoshop-specific features. Flatten complex PSD files before opening if necessary.

Opening RAW Files: A Special Case

RAW files contain unprocessed data directly from your camera's sensor. To open these in GIMP:

  1. Install the RawTherapee or darktable plugin
  2. Open the RAW file through File → Open
  3. Make initial adjustments in the RAW processor that appears
  4. Transfer to GIMP for further editing

This workflow is similar to using Adobe Camera Raw before Photoshop in professional workflows.

Creating New Images

When starting a project from scratch, you'll need to create a new image with appropriate settings.

Accessing the New Image Dialog

Create a New Image Template: Default Image Size Width: 1920 pixels Height: 1080 pixels Resolution X resolution: 300 ppi Y resolution: 300 ppi Color Space Fill with: Transparent Create Cancel

Key Parameters for New Images

When creating a new image, consider these essential settings:

Common Image Dimensions for Different Projects

Project Type Dimensions (pixels) Resolution Notes
HD Desktop Wallpaper 1920×1080 72 PPI Common 16:9 screen aspect ratio
Instagram Post 1080×1080 72 PPI Square format
YouTube Thumbnail 1280×720 72 PPI 16:9 aspect ratio
Facebook Cover 851×315 72 PPI Displays well on both desktop and mobile
Print Photo (4×6 inches) 1200×1800 300 PPI Standard photo print quality
US Letter Document 2550×3300 300 PPI 8.5×11 inches at print quality

Understanding Resolution: Digital vs. Print

Resolution can be confusing for beginners. Here's a simple way to understand it:

  • For Digital Display (websites, social media, screens): 72-96 PPI is sufficient because screens have a fixed resolution. More pixels don't improve quality but increase file size.
  • For Print: 300 PPI is standard for quality prints. Professional print jobs may require higher resolutions for fine details.

Think of resolution like the density of threads in fabric: higher thread count feels smoother and shows more detail, but at some point, the human eye can't tell the difference.

Creating from Templates

GIMP offers templates for common project types. To use them:

  1. Choose File → New...
  2. Click the "Template" dropdown at the top of the dialog
  3. Select from available templates or create your own

Pro Tip: Create your own templates for recurring project dimensions by saving your custom settings using the "Save Template" button in the New Image dialog.

Creating from Clipboard

A quick way to create a new image from copied content:

  1. Copy image content from any source (web, another application, etc.)
  2. In GIMP, use Edit → Paste as → New Image or the shortcut Shift+Ctrl+V

This is particularly useful for quick edits on screenshots or web images without saving them first.

Saving and Exporting Images

GIMP distinguishes between "saving" and "exporting" images—a concept that often confuses beginners but is crucial for preserving your work correctly.

Saving vs. Exporting: Understanding the Difference

flowchart TB A[Need to preserve image] --> B{Purpose?} B -->|Continue editing later| C[Save in XCF format] B -->|Share/Use externally| D[Export in appropriate format] C -->|File → Save/Save As| E[Preserves layers, paths, channels] D -->|File → Export As| F[Creates flattened version for specific use] style C fill:#d4f7d4,stroke:#333 style D fill:#d4e4f7,stroke:#333

The Cooking Analogy

Think of GIMP's save/export system like cooking:

  • Saving (XCF) is like storing your ingredients separately in the fridge—you can easily modify your recipe later by adding more salt or taking out an ingredient you don't want.
  • Exporting (JPG, PNG, etc.) is like serving the finished dish—it looks great for presentation, but you can't easily separate the ingredients anymore.

Saving Your Work

When you want to preserve all editable features (layers, masks, paths, etc.):

GIMP's native XCF format preserves all editable features of your image. Always save a master copy in XCF format before exporting for specific uses.

Exporting for Different Purposes

When you need to create a version for specific uses:

Choosing the Right Format

Each file format has strengths and ideal use cases:

Format Best For Pros Cons
XCF (GIMP) Working files Preserves all editing capabilities Large file size, only opens in GIMP
JPG/JPEG Photos, complex images Small file size, widely supported Lossy compression, no transparency
PNG Graphics, logos, UI elements Lossless, supports transparency Larger file size than JPG
GIF Animations, simple graphics Animation support, transparency Limited to 256 colors
TIFF Print projects, archives High quality, preserves layers Very large file size
WebP Web graphics, modern sites Excellent compression, transparency Not universally supported by older browsers

Format-Specific Export Options

Different formats offer specific export options that affect quality and file size:

JPEG Export Settings

  • Quality: Higher values (90-100) preserve more detail but increase file size
  • Subsampling: Affects color detail preservation
  • Optimize: Creates smaller files with minimal quality loss
  • Progressive: Loads gradually when viewed online

Practical Tip: For web photos, a quality setting of 80-85 often provides the best balance between quality and file size. For archival purposes or professional printing, use 90-100.

PNG Export Settings

  • Compression level: Higher values produce smaller files but take longer to save
  • Interlacing: Similar to JPEG's progressive loading
  • Save background color: Useful for images that should display against specific backgrounds

Practical Tip: Use PNG-24 for images with transparency or gradients, and PNG-8 for simpler graphics with few colors to reduce file size.

Batch Exporting

When you need to save multiple images or versions:

Automating Save/Export with Scripts

For repetitive export tasks, GIMP offers scripting capabilities:

Note: We'll explore these advanced options in Module 9 on Workflow & Automation.

Workflow Best Practices

Establishing good habits with file management can save you time and prevent lost work.

File Management Strategy

  1. Create a logical folder structure for your projects (e.g., Client/Project/Working Files)
  2. Use descriptive filenames that include project name, version, and date
  3. Keep XCF working files in a separate folder from exported deliverables
  4. Use version numbering for significant iterations (e.g., logo_v1.xcf, logo_v2.xcf)

Autosave and Recovery

GIMP offers protection against crashes and unexpected shutdowns:

Pro Tip: Set autosave to 5-10 minutes for a good balance between performance and safety.

Real-World Workflow Example: Client Logo Project

  1. Create a new image with appropriate dimensions for logo design (e.g., 2000×2000px, 300 PPI, transparent background)
  2. Save immediately as "client_logo_project.xcf" in your working directory
  3. Create design elements on separate layers with descriptive names
  4. Save periodically during work (Ctrl+S)
  5. For client review, export as PNG with transparency
  6. After feedback, create a new version (client_logo_project_v2.xcf)
  7. For final delivery, export in multiple formats:
    • High-res PNG for digital use
    • Vector SVG (using GIMP's path export)
    • JPEG versions for various applications
  8. Archive the XCF file for future edits

Practical Examples and Common Tasks

Example 1: Opening and Preparing a Photo for Social Media

  1. Open your digital photo using File → Open
  2. Create a new image with Instagram-friendly dimensions (1080×1080px)
  3. Copy content from the original photo and paste into the new document
  4. Position and scale the photo to fit the square format
  5. Apply any desired adjustments or filters
  6. Save as XCF for future editing
  7. Export as JPEG with quality 85 for uploading to Instagram

Example 2: Creating a Multi-Device Wallpaper Set

  1. Create a new image at the largest required size (e.g., 3840×2160 for 4K desktop)
  2. Design your wallpaper with important elements in the center (visible on all devices)
  3. Save as "wallpaper_master.xcf"
  4. Export as PNG at full resolution for desktop
  5. Use Image → Scale Image to create versions at lower resolutions (1920×1080, 1280×720)
  6. For mobile, use Image → Canvas Size to crop to appropriate aspect ratios
  7. Export each version in the desired format

Example 3: Converting File Formats

  1. Open the source image (e.g., a JPEG photo)
  2. Make any necessary adjustments
  3. Use File → Export As to select a new format (e.g., PNG or WebP)
  4. Configure format-specific options in the export dialog
  5. Save the new version while keeping the original

Common Issues and Troubleshooting

Problem: "Cannot save file with transparency in JPEG format"

Solution: JPEG doesn't support transparency. Either:

  1. Export as PNG instead, or
  2. Add a background layer before exporting as JPEG

Problem: Exported image looks different from what was displayed in GIMP

Solution: This could be due to:

  1. Color profile issues: Check Edit → Preferences → Color Management
  2. Layer visibility: Ensure all relevant layers are visible
  3. Format limitations: Some formats restrict colors or quality

Problem: "This file contains features not supported by the XCF format"

Solution: Some advanced features from PSD files might not translate to XCF. Simplify the image structure or save in a different format.

Problem: File sizes are extremely large

Solution:

  1. For XCF files: Use File → Save As and enable compression
  2. For exported files: Adjust compression settings during export
  3. Scale down the image if full resolution isn't needed

Practice Activities

Activity 1: Format Exploration

Take a single image (a photo with some transparency) and export it in different formats (JPG, PNG, GIF, TIFF, WebP). Compare the resulting file sizes and visual quality. Note how each format handles transparency and detail.

Activity 2: Resolution Investigation

Create a new 4×6 inch image at three different resolutions: 72 PPI, 150 PPI, and 300 PPI. Draw some text and simple shapes in each. Export all three as JPEGs and examine the differences in file size and detail.

Activity 3: Project File Organization

Set up a proper file structure for a hypothetical client project that needs:

  • A logo in multiple formats
  • Social media profile images
  • A website banner

Create appropriate folders, naming conventions, and determine which formats you would use for each deliverable.

Activity 4: Batch Opening Challenge

Find five related images (e.g., vacation photos). Practice opening them all as layers in a single GIMP document, then create a simple collage by repositioning the layers. Save your work as XCF, then export as both JPEG and PNG to compare the results.

Summary: File Operations Mastery

In this lecture, we've covered the fundamental file operations in GIMP:

These operations form the foundation of all your work in GIMP. Mastering them will save you time, prevent frustration, and ensure your creative work is properly preserved and shared in the appropriate formats.

Coming Up Next

In the next lecture, we'll begin exploring the powerful concept of layers in GIMP, which will revolutionize how you approach image editing by enabling non-destructive workflows and complex compositions.

Further Resources