question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uppy Image Editor shows 2 editable images instead of one

See original GitHub issue

I’m using @uppy/image-editor and seeing two images that are both editable (only changes to the image on the right actually seem to be saved). This is regardless of file type.

image

Configuration looks like this:

          <Dashboard
            uppy={uppy}
            metaFields={[
              { id: 'name', name: 'Name', placeholder: 'File name' },
            ]}
            plugins={['ImageEditor']}
            locale={{
              strings: {
                // Text to show on the droppable area.
                // `%{browse}` is replaced with a link that opens the system file selection dialog.
                dropHereOr: 'Drop here or %{browse}',
                // Used as the label for the link that opens the system file selection dialog.
                browse: 'browse',
              },
            }}
          />

Versions:

    "@uppy/core": "1.13.2",
    "@uppy/image-editor": "0.1.6",
    "@uppy/react": "1.10.8",

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
arturicommented, Nov 6, 2020

Ok, I got it working by removing the target option when setting up the ImageEditor, following the guidance here: https://uppy.io/docs/react/dashboard/#Props.

The <Dashboard /> cannot be passed to a target: option of a remote provider or plugins such as @uppy/webcam. To use other plugins like @uppy/webcam with the <Dashboard /> component, first add them to the Uppy instance, and then specify their id in the plugins prop.

https://codesandbox.io/s/romantic-ride-lsw4f?file=/src/App.js

We probably should double-mention this in the docs 🤔

0reactions
mcabramscommented, Nov 4, 2020

@arturi Here is a codesandbox reproduction where I am seeing the double image issue:

https://codesandbox.io/s/gifted-feather-5lvks?file=/src/App.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

Image Editor - Uppy
@uppy/image-editor allows users to crop, rotate, zoom and flip images that are added to Uppy. Designed to be used with the Dashboard UI...
Read more >
Dashboard - Uppy
Image previews; Metadata editor; Upload progress; Ability to pause or cancel (depending on the uploader plugin) uploads. import ...
Read more >
const - Uppy
With this option set to true , users can upload some files, and then add more files and upload those as well. A...
Read more >
Drag & Drop - Uppy
The @uppy/drag-drop plugin renders a drag and drop area for file selection. it can be useful when you only want the local device...
Read more >
Writing Plugins - Uppy
Render some custom UI element, e.g., StatusBar or Dashboard. · Do the actual uploading, e.g., XHRUpload or Tus. · Do work before the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found