13

How can I obfuscate a small section of an image on macOS? I would like to obfuscate private information in an image before I share it. Is there a way to do it on macOS?

3 Answers 3

13

Preview, built into macOS, has a few tools for doing this. First, open the image in Preview (the default app for images), then choose the Annotate button on the toolbar.

Options for obfuscating:

  • Use a selection tool to make a selection on the image, then press Backspace to delete that area. For filetypes which support transparency, the area will be removed, otherwise it will be saved as white.

  • Use a rectangle or other shape and set a fill colour.

3
  • 1
    I am curious how did you manage to take the 1st screenshot? It looks much better when used for highlighting an item. Built-in feature or a 3rd party app?
    – Nimesh Neema
    Commented Aug 30, 2018 at 18:37
  • 2
    @Nimesh It's a Preview feature :) from the bottom of the shapes tool, did it for this question because of the focus on Preview but generally I use freehand red circles
    – grg
    Commented Aug 30, 2018 at 18:42
  • I should dig deeper into tools I use :-|.
    – Nimesh Neema
    Commented Aug 30, 2018 at 18:43
6

The app Skitch has a visually appealing 'pixellate' tool that you can use to obfuscate sections of an image:

enter image description here

3
  • 4
    Worth noting is that there are known methods to recover information hidden behind pixelated blocks like this. Know your threat model: what kind of adversary are you worried about? In particular, this sort of attack has been used against people who pixelate their account number on checks. The format of the numbers on a check is very regular, making the attack easier. Arbitrary text is harder to recover than that.
    – Cort Ammon
    Commented Aug 31, 2018 at 2:58
  • I’ve found the Lifehacker article that posits this ‘method’ of deobfuscation, but I’m not convinced of its practicality. I favor the pixillation method because it has a softer look than the ‘redacted’ appearance one finds in declassified secret documents.
    – IconDaemon
    Commented Aug 31, 2018 at 9:43
  • Here's an article, which links a paper. They were able to use hidden markov models to substantially automate the process. They presented success rates against various kinds of text (account numbers, natural language, etc.). That being said, I agree fully that the pixelation method does look better.
    – Cort Ammon
    Commented Aug 31, 2018 at 14:15
3

The general practise is to open the image with Preview.app and use the drawing tools to obfuscate the sensitive information.

The drawing tools can be accessed from the toolbar or from Tools → Annotate options under Menu bar.

enter image description here

7
  • I couldn't find obfuscate anywhere in Preview @Nimesh Neema
    – user674669
    Commented Aug 30, 2018 at 18:35
  • There is no 'obfuscate' tool or option in Preview. Using the tools described in either answer will draw over the sensitive section with a solid color.
    – IconDaemon
    Commented Aug 30, 2018 at 19:22
  • @IconDaemon Your comment makes me think, is it still possible to recover parts of image "overlaid" by some other image drawn on top of it?
    – Nimesh Neema
    Commented Aug 30, 2018 at 19:25
  • Perhaps it can be revealed if one were using Adobe Photoshop (or another app that uses layers) and drew a obfuscating block over a section, and saved it as a Photoshop document with layers intact. If one were to use Photoshop to obfuscate, and save as a Photoshop document, one would have to use the Layers > Flatten layers command first.
    – IconDaemon
    Commented Aug 30, 2018 at 19:30
  • 1
    I don't think so. PNGs and JPEGs are layer-less, although PNGs have an alpha channel but I don't that would have any effect on the obfuscation.
    – IconDaemon
    Commented Aug 30, 2018 at 19:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .