darktable-org / darktable-org/darktable
Add new variables / image attributes for megapixels and file size
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.1k
- Forks
- 1.4k
- Avg merge
- 22h 14m
- Merged PRs (30d)
- 198
Description
Feature request
Just a simple request to add variables and image attributes so we have more options for viewing and filtering, specifically related to image size.
Certain websites, print shops and other photographic services have a maximum/minimum megapixel count and/or file size, so the ability to view and filter by these criteria would be welcome.
We can currently view the image's width and height, so the megapixel count can be calculated, but it would be good to view this information without the need for a calculation, and there is no current option to filter via this information.
Proposed solution
Add all or some of these:
Variable: $(MEGAPIXELS.RAW)
Variable: $(MEGAPIXELS.EXPORT)
Variable: $(FILE.SIZE)
Image attribute: Megapixels (of image in its current state, i.e. after cropping if crop applied)
Image attribute: File size (original file on disk)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing width and height variables and image attributes mentioned in the issue, then inspect the entry points for RAW, EXPORT, cropped-image, and on-disk file metadata. Compare the available representations before deciding which requested variables and attributes can be supported; done means the selected megapixel and file-size values are viewable and filterable as specified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100