Skip to content

Jimp Browser Support #1194

@marvinruder

Description

@marvinruder

Is your feature request related to a problem? Please describe.
At the moment, some problems arise when attempting to use Jimp in React (similar issues were reported from users of other tools, e.g. React Native). The following are known so far:

Describe the solution you'd like
The issues described above are resolved and Jimp can be used in frontend tools like React using import Jimp from "jimp[/es]"; without a problem.

Describe alternatives you've considered
Using the browser version of Jimp via require("jimp/browser/lib/jimp.js"); const { Jimp } = window; is a possible workaround, but that version is aimed more at using Jimp in plain HTML/JS than by bundling tools such as Webpack, Rollup etc., which should be able to handle jimp or jimp/es properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugthere is a bug in the way jimp behaveshelp wantedreleasedThis issue/pull request has been released.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions