Images are converted into PNG when inserting from the toolbar button

Bug report

with debug log:

Error: Invalid file dropped
    at O (file:///private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/browser-commons.js:1:166030)
    at t.createImageAttachment (file:///private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/browser-commons.js:1:162141)
    at file:///private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/browser-main.js:1:213116
    at HTMLBodyElement.<anonymous> (file:///private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/browser-main.js:1:214030)
    at HTMLBodyElement.__trace__ (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/@bugsnag/browser/dist/bugsnag.js:2834:36)
    at t.default.dispatch (file:///private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/browser-main.js:1:579959)
    at HTMLDivElement.<anonymous> (file:///private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/browser-main.js:1:260776)
    at HTMLDivElement.__trace__ (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/@bugsnag/browser/dist/bugsnag.js:2834:36)
    at t.default.dispatch (file:///private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/browser-main.js:1:579959)
    at onClick (file:///private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/browser-main.js:1:252820)
    at Object.ba (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:14:90)
    at ja (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:14:244)
    at ka (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:14:298)
    at oa (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:15:78)
    at lc (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:52:176)
    at jc (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:51:261)
    at mc (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:52:340)
    at sc (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:56:16)
    at Ia (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:287:195)
    at Ma (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:19:63)
    at Rc (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:70:285)
    at id (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:69:108)
    at exports.unstable_runWithPriority (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/scheduler/cjs/scheduler.production.min.js:19:473)
    at cg (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:122:331)
    at Ga (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:287:54)
    at gd (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:68:377)
    at HTMLDocument.__trace__ (/private/var/folders/5h/_pcnl_d51bbdhzjs24z1k6qw0000gn/T/AppTranslocation/D45A7C44-7D2C-479F-A03A-E24F99D8C80D/d/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/@bugsnag/browser/dist/bugsnag.js:2834:36)

Environment

  • Platform: macOS
  • Platform version: Ventura 13.4
  • App Version: 5.5.3

How to reproduce

  • Downloaded an image from unsplash and tried to import it in inkdrop note. but got an error saying file should not be bigger than 10mb. while my image size was only 2.6mb

Hi Abdullah,

Thanks for the report.
That’s strange. I have to reproduce it to fix it. Could you tell me the Unsplash URL?

You can download any img from the unsplash website. Usually they are around 2 to 3 mbs. Then when i click the insert img button in the toolbar inside inkdrop editor. It displays the error msg. But if i drag and drop the img from the finder to inkdrop then it works!

But if i drag and drop the img from the finder to inkdrop then it works!

Okay, so it only happens when inserting an image from the toolbar button.
I got it to reproduce. That is because it converts an image into PNG.
Will be fixed in the next release!

v5.6.0-beta.0 is out! It should be fixed in this version.