Inlined HTML images: <img src="data:image/jpeg;base64,fdsiid..." .../> are imported as text. This is an enhancement request to parse such data correctly. Since the base64-data contains no whitespace, Writer has a hard time figuring out how to break lines, freezing it even on small amounts of such data. So this is more important than a random feature request as it might be responsible/root cause for a lot of "copy-paste from web, then freeze" bugs. If a full implementation of base64 parsing is out of scope, a workaround should be implemented to at least just skip such data, to prevent the Writer layout going havoc. Consider splitting such a task of as a simpler to fix bug.
@cbosdonnat, mst: Possible EasyHack?
writer HTML filter is in sw/source/filter/html with some base classes in svtools/source/svhtml/parhtml.cxx etc. to patse the base64 itself it's best to use sax::Converter::decodeBase64 from sax/tools/converter.hxx.
I would like to give this a try. One thing I can't figure out is, once I have the image data converted from base 64, how do I add it as an image to the document. Can someone give a hint?
adding LibreOffice developer list as CC to unresolved EasyHacks for better visibility. see e.g. http://nabble.documentfoundation.org/minutes-of-ESC-call-td4076214.html for details
Restricted my LibreOffice hacking area
For reference, there's a work-in-progress patch on gerrit now: https://gerrit.libreoffice.org/#/c/7773/
Chr. Rossmanith committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=363f1c1462963f6f032de07649dc9c4d02b4e446 fdo#50763: handle inlined base64 images The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Chr. Rossmanith committed a patch related to this issue. It has been pushed to "libreoffice-4-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=047913ea8f0cb8b03f78be0780c5e828be9ef323&h=libreoffice-4-2 fdo#50763: handle inlined base64 images It will be available in LibreOffice 4.2.2. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 77520 has been marked as a duplicate of this bug. ***
Matuš Kukan committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=72703173066a2db5c977d422ace59d60b998bbfc HTML import: fix importing of inlined images (related: fdo#50763) The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Matuš Kukan committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1c1fe7afb77e0538cdc4081ee266a7bda80f7b05 HTML import test for image inlined in 'src' attribute (related: fdo#50763) The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 90574 has been marked as a duplicate of this bug. ***
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillCpp ) [NinjaEdit]
Remove LibreOffice Dev List from CC on EasyHacks (curtailing excessive email to list) [NinjaEdit]