Closed torfsen closed 5 years ago
Non-PDF attachments are currently not supported for redaction. However, there's already code that converts DOC-files to PDFs, so they can be redacted and published.
So either converting from images to PDF (slightly awkward) or adding functionality to redact images might be in order. I'm also occasionally looking for a new way of doing things in this repo: https://github.com/stefanw/froide-redact
I already suspected that only PDFs are currently supported, thanks for the confirmation.
Redacting images is a useful feature, but until it is available the redaction should be disabled for non-PDF files (with an appropriate message).
There is a conversion for images now that also includes OCR.
I'm trying to redact a GIF attachement (it's a screenshot that contains personal information) but the attachement does not load. However the page only says "Lade PDF...". The web console shows the following error messages:
It seems that froide tries to load the attachment as a PDF, which fails for obvious reasons. Are non-PDF attachements supported? If not then there should probably at least be a check for supported file formats.