Skip to content

Feature request: Establish minimum sizes when recovering images #167

@springfielddatarecovery

Description

We frequently use photorec in our workflow when doing file carving to recover client data. Unfortunately, photorec recovers a LOT of files which are not relevant to the end user, particularly files which are thumbnail size. For many recoveries, this is a significant portion of the recovered content, resulting in thousands or tens of thousands of small files being read from the source image, written to disk, and then they must be read again to find their size and then deleted if they don't match the criteria.

We would love to see a feature to limit the minimum size (by kb and resolution) of recovered photos. Photorec could check this prior to saving the photos, which would be a massive efficiency gain.

Relevant documentation on how to define file formats in photorec:
https://www.cgsecurity.org/wiki/Developers#Adding_a_new_file_format_to_PhotoRec

We will pay $100 USD to the first developer who can submit a PR that devs accept to implement this feature. If the devs do not respond or don't accept the feature but otherwise the PR works and meets the criteria below, we will pay the dev regardless. The developers of this projects are eligible to claim this bounty if they want. Bounty will be paid out in Bitcoin. This bounty expires 2 years from the date of this issue creation.

Bounty requirements:

  • Add a feature to photorec where user can prevent the saving/recovery of image files which are below:
    -- A minimum height
    -- A minimum width
    -- A minimum combined widthxheight
    -- A minimum size (in bytes)
  • This feature should work on the following file formats: JPG, PNG. And it should be coded in such a way that it would be copyable to other formats with minor modifications.
  • This feature should be accessible somewhere in the photorec configuration screens
  • This feature should be accessible from photorec's batch/cli mode
  • Match existing coding standards/format used in rest of Testdisk/photorec application

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions