Bug 139331 - Option to redact/ anonymizing file by replacing images by dummy or make them black (Sanitize media)
Summary: Option to redact/ anonymizing file by replacing images by dummy or make them ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyInteresting, easyHack, skillCpp, topicUI
Depends on:
Blocks: Redaction
  Show dependency treegraph
 
Reported: 2020-12-31 07:42 UTC by Telesto
Modified: 2021-08-28 19:08 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-12-31 07:42:29 UTC
Description:
Option to redact/ anonymizing file by replacing images by dummy or make them black

Steps to Reproduce:
certain bug require anonymizing, but also contain images

Actual Results:
Not possible. see https://wiki.documentfoundation.org/QA/Bugzilla/Sanitizing_Files_Before_Submission

Expected Results:
A function?


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha1+
Build ID: c784b3da15102caf1022e83371863a86766e69cd
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 1 Telesto 2020-12-31 07:43:39 UTC
Maybe as kind of redact function
Comment 2 Heiko Tietze 2021-01-12 10:32:30 UTC
Muhammet, what do you think?
Comment 3 Heiko Tietze 2021-01-19 09:02:33 UTC
Covering the images manually is easy to do. But there might be long documents with a lot of images where this function becomes handy. No objection from UX.
Comment 4 Muhammet Kara 2021-01-19 18:44:48 UTC
(In reply to Heiko Tietze from comment #2)
> Muhammet, what do you think?

Looks like a valid enhancement request.

Can be done by using a macro as well. Hint for macro-writers and someone who wants to implement this enhancement:

- Go through images in the document (grep for IsRedactMode to find similar code)
- Draw redaction rectangles over them (see SfxRedactionHelper::addRedactionRectToPage in SfxRedactionHelper.cxx)
- The rest will be automatically handled by the existing redaction feature when user clicks on the redacted export button
Comment 5 Roman Kuznetsov 2021-01-25 18:22:27 UTC
(In reply to Muhammet Kara from comment #4)

> - Draw redaction rectangles over them (see
> SfxRedactionHelper::addRedactionRectToPage in SfxRedactionHelper.cxx)

Please use a white variant of redaction rectangles for images. Or possibly we can use a different type of redaction rectangle like a white rectangle with two diagonal lines?
Comment 6 Muhammet Kara 2021-08-28 17:18:00 UTC
(In reply to Roman Kuznetsov from comment #5)
> (In reply to Muhammet Kara from comment #4)
> 
> > - Draw redaction rectangles over them (see
> > SfxRedactionHelper::addRedactionRectToPage in SfxRedactionHelper.cxx)
> 
> Please use a white variant of redaction rectangles for images. Or possibly
> we can use a different type of redaction rectangle like a white rectangle
> with two diagonal lines?

Why?
Comment 7 Roman Kuznetsov 2021-08-28 18:54:32 UTC
(In reply to Muhammet Kara from comment #6)
> (In reply to Roman Kuznetsov from comment #5)
> > (In reply to Muhammet Kara from comment #4)
> > 
> > > - Draw redaction rectangles over them (see
> > > SfxRedactionHelper::addRedactionRectToPage in SfxRedactionHelper.cxx)
> > 
> > Please use a white variant of redaction rectangles for images. Or possibly
> > we can use a different type of redaction rectangle like a white rectangle
> > with two diagonal lines?
> 
> Why?

I don't remember the reason today =(

I think you can just ignore it
Comment 8 Telesto 2021-08-28 19:08:24 UTC
The diagonal lines maybe useful to showing this being an removed image? A white placeholder is probably less obvious.. I guess

Compare View -> Disable images & charts.