nextcloud / nextcloud/recognize

RAW images support

Open
#1,070 4 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
699
Forks
68
Avg merge
1d 4h
Merged PRs (30d)
5

Description

Describe the feature you'd like to request

The current value of IMAGE_FORMATS doesn't include the image/x-dcraw value which prevents RAW images from being scanned / recognized.

Describe the solution you'd like

I've verified that extending IMAGE_FORMATS with the value image/x-dcraw picks up all the various RAW image formats I have. This is sufficient given that Recognize uses the standard NextCloud Preview functionality and 'Camera RAW Previews' app already takes care of RAW files.

Describe alternatives you've considered

N/A.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in lib/Constants.php at the IMAGE_FORMATS definition around line 10 and review how the listed values are used for scanning. Add the image/x-dcraw value, then verify that RAW images are picked up for recognition through the existing Nextcloud Preview functionality and Camera RAW Previews app.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
computer-vision
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.