Created attachment 56157 [details] Sample Spreadsheet with Line Chart When exporting a spreadsheet to HTML, charts and other graphic objects are exported as JPG - with a poor outcome (see attachments). Proposal Instead of the lossy JPG compression, PNG should be used as the default graphic format for all graphic objects. See also: http://en.wikipedia.org/wiki/Portable_Network_Graphics#Comparison_to_JPEG I filled this under spreadsheet, but it probably applies to more modules, so feel free to change.
Created attachment 56158 [details] Chart as JPG from HTML Export of the Sample Spreadsheet
Created attachment 56159 [details] Chart as PNG from Sample Spreadsheet (exported via Draw)
No need for status NEEDINFO, changing to NEW.
Making this an EasyHack with SkillCpp (for Calc, can't say anything about Writer or others) In sc/source/filter/html/htmlexp2.cxx ScHTMLExport::WriteImage() change the filter name "JPG" to "png". Verify that for a sheet all graphics objects (images, charts, drawing objects, ...) are written as png instead of jpg, and identical objects share a file (i.e. not several files are generated for multiple occurrences of the same image).
Created attachment 57435 [details] Is this all that is needed? Quickly put this together. Appears to work.
If it works it's all that's needed :-) Thanks!
Josh Heidenreich committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=131cfef07ba1e941686bf71c4583b06e54e87434 resolved fdo#45239 EasyHack: use PNG instead of JPG in Calc to HTML export
Thanks, this was fast! :-) Please, check if this can also be committed to 3.5 branch for 3.5.1.
Modified assignee due to facts
Migrating Whiteboard tags to Keywords: (EasyHack SkillCpp) [NinjaEdit]