https://bugs.documentfoundation.org/show_bug.cgi?id=150040

            Bug ID: 150040
           Summary: Feature Request (Writer): Delete parts of an image
                    after cutting
           Product: LibreOffice
           Version: 7.3.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: trivial
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When you cut an image the part of the image that is no longer visible is not
deleted. This can be a potential security risk and the files use more data.

The suggestion is to have an option to delete or clear the parts of the file
that are not visible.

Steps to Reproduce:
1. Take an image
2. Cut it in Writer
3. Export it as PDF or save it as file

Actual Results:
The image can be restored in full size even it is not visible. The full images
takes up space that is not needed.

Expected Results:
Option to delete the parts that were cut away in the odt file (saves space).
Option to delete the parts that were cut away in the pdf export.


Reproducible: Always


User Profile Reset: No



Additional Info:
The image can be 'uncut' or saved to a file in writer if you have the original
file. If you save the file, Writer even asks you if you want to save the full
size.
When the file is exported to a pdf, the large image is kept. This could lead to
security issues and increases file size.
Since the image is just cropped to a smaller size but is included in full size,
tools like https://pdfcandy.com/extract-images.html or
https://tools.pdf24.org/en/extract-images can be used to extract these images.

I am not aware that there is an option to delete the parts of the image that
were cropped out for the odt file to save space and don't include unwanted
parts of the image.
I am not aware that there is an option to delete the parts of the image that
were cropped out for the pdf export.


General thoughts:
- If this option exists, it should be more obvious

- You should be able to edit all images at once (imagine with a document with
~50 images) and one by one.

- There should be an option to delete the cropped out parts by default as
config or maybe even to not be able to enable it at all for security reasons
(eg. for Tails OS so that you can not forget to enable it)

- The cut should not be applied right away. So that you can enlarge the image
when you cut it a little bit too far. The point when the section of the image
is deleted would on user activation or when the file is saved to the disk. User
activation would be so that you can finish the file and cut it when everything
is ready. Save to disk is if the [cut + delete] option is on by default.

- delete vs. clear: The best thing would be if the cropped parts would be
deleted. If this is not possible somehow it could be cleard/overlayed with a
eg. black or white layer so that the cropped part can no longer be recovered.

- tool access could be with via the existing icon with a drop down menu or eg.
Ctrl click of the button.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to