-
-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image import fails when inserting HTML or image from clipboard #857
Comments
When I copy your image from this webpage with a bit of other text on Linux I get AssigneesNo one—assign yourself
LabelsNone yetProjectsNone yetMilestoneNo milestoneNotifications UnsubscribeYou’re receiving notifications because you’re subscribed to this repository.
1 participant[![media-AM2270](file://media/1074265970.png)
](https://github.com/echo511)[ **Lock conversation**](https://github.com/pbek/QOwnNotes/issues/857#lock-confirmation)[![media-WT2270](file://media/1328689228.png)
](https://github.com/echo511) [](https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fpbek%2FQOwnNotes%2Fissues%2F857&report=echo511+%28user%29)
### **[echo511](https://github.com/echo511) **commented [18 minutes ago](https://github.com/pbek/QOwnNotes/issues/857#issue-298367819) Works perfectly fine for me. |
Does it work on other webpages, like on www.qownnotes.org? |
I tried to copy some content from your website. In log I have
In actual note this was pasted:
Images are not present. |
@pbek Maybe a lead. I've tried to import Evernote .enex and after import has been completed no images or attachments were present - the options have been checked. |
Maybe your system is unable to detect images (missing libraries?). Or no write permission to the media folder... Something seems amiss... |
Permissions are not the problem. Inserting images from filesystem through drag&drop or context menu is working. |
I am also running full Gnome environment. It is pretty robust. Or is it missing some special library? Thanks for suggestions. |
The Qt libraries should be enough... Inserting the images is done by QOwnNotes/src/entities/note.cpp Lines 2261 to 2313 in e1cf02f
I wonder whats happening on your machine... |
@pbek You were correct. I have installed |
Thank you for your kind words! |
It seems like some more libraries are needed in https://github.com/pbek/QOwnNotes/blob/develop/build-systems/aur/PKGBUILD |
Libs "installed":
But I have to reopen because it is only partial solution for use case when the image alone is in clipboard. When copying HTML, images are still not present. :( Link is copied, missing image:
|
And to clarify the partial fix. The |
I have the same problem on my Manjaro Laptop (KDE Neon worked fine)... |
I have installed the whole qt5 but the issue persists. |
I'll have to investigate more... But I still have no idea why temporary files behave differently on Arch, could be a Qt upstream problem... |
Interesting, |
18.02.4
|
thank you, I've not commited my fix yet, but I already fixed it ;) |
There now is a new release, could you please test it and report if it works for you? |
@pbek Tested successfully. As a pleasant side-effect it also fixed importing images from Evernote's .enex file. Thanks again for insanely fast support. |
Great, thank you for reporting and testing! |
Expected behaviour
Should store images into media/.
Actual behaviour
In the bar at the bottom it says the image was downloaded but nothing is actually imported - no file in media folder, no snipped in note inserted.
Output from the debug section in the settings dialog
Current Date:
po úno 19 19:26:38 2018
Version:
18.02.3
Build date:
Feb 19 2018
Build number:
417
Platform:
linux
Operating System:
Arch Linux
Build architecture:
x86_64
Current architecture:
x86_64
Release:
AUR
Qt Version (build):
5.10.1
Qt Version (runtime):
5.10.1
Portable mode:
no
Settings path / key:
/home/.../.config/PBE/QOwnNotes.conf
Application database path:
/home/.../.local/share/PBE/QOwnNotes/QOwnNotes.sqlite
Application arguments:
QOwnNotes
Qt Debug:
0
Locale (system):
cs_CZ
Locale (interface): empty
Icon theme:
Numix-Square
Notes in current note folder:
16
Enabled scripts:
1
Relevant log output (you have to enable enable the log widget)
The text was updated successfully, but these errors were encountered: