Skip to content

Importing large images causes memory issues or crashes #7

Open

Description

@pradipNP

What happened?
Importing images near the 16M pixel limit causes browser freeze, lag, or silent failure.

Steps to reproduce:

  1. Open Drawora
  2. Go to Insert → Image
  3. Import a 4000×4000px image (16M pixels)
  4. Observe: App freezes, crashes, or image doesn't load

Expected: Image imports and renders without memory spike
Actual: Browser freezes 2-5 seconds, potential out-of-memory error

Code location:

// js/app.js - line ~85 (approx)
const MAX_IMAGE_PIXELS = 16_000_000;
const IMAGE_TYPES = /^image\/(png|jpe?g|gif|webp|bmp|svg\+xml)$/i;

// Issue: No downsampling or progressive loading
// Need: Compress or tile large images

Activity

  1. added
    bug
    help wanted
    good first issue
    on Aug 31, 2026
  2. pradipNP commented on Aug 31, 2026

    @pradipNP
    OwnerAuthor

    Test files:

    5000×5000px PNG (~100MB)
    4096×4096px JPEG (~50MB)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions