Fmstrat / ownnote

Notes app for ownCloud
GNU Affero General Public License v3.0
168 stars 42 forks source link

ownNote doesn't automatically convert images to Base64 when imported from Evernote #319

Open Cubytus opened 8 years ago

Cubytus commented 8 years ago

OwnNote is supposed to import notes exported as HTML from Evernote. If all files and folders are under the /Notes folder with an HTML extension, they get automaticlaly converted to HTM upon conversion. Images are supposed to be converted to Base64 and embedded in the HTM file.

However, this conversion is not performed properly. Upon importation, images and sound files are still linked from the HTML file by their relative path, and don't display at all.

captura de pantalla 2016-08-01 a las 18 35 14 captura de pantalla 2016-08-01 a las 18 32 43

README is also unclear: the /Notes folder isn't automatically created, nor used with default configuration. Default settings calls for database-storage only, while README refers to database + folder, which must be done by an administrator. captura de pantalla 2016-08-01 a las 18 19 10

What is the solution for effective and automatic conversion to Base64?

realgeek commented 8 years ago

I didn't think mine was working either, but I found one html/resource pair which did work: ZPAQ.html and ZPAQ.resources. I think if the stem names are simple (don't require URL encoding) then it works fine. The problem seems to be not doing URL decoding before trying to find the resource files in the filesystem.

ikke-t commented 7 years ago

storing images in base64 is problematic. I started loosing notes after inserting images. This was caused by hitting SQL limits for entry size. If your image happens to be large, or there are several of those, ownNote silently fails to store them. So I'd propose to have the images stored only in the file storage, not in the SQL at all.