In T351401: Create service(s) to send an image to PhotoDNA for a scan, services were added to allow scanning from the PhotoDNA API. These services work for files with around equal width and height. However, as raised in code review for that task, the current code is only getting a thumbnail that meets the width requirements. In the cases where a file is much wider than tall, the thumbnail sent to the PhotoDNA API will not meet the minimum height requirements.
The service should be updated to determine the best width for the thumbnail where the thumbnail is at least 160px in height. The best width is likely to be the smallest width possible while ensuring the height requirement.
Acceptance criteria
- Ensure that the thumbnail sent to PhotoDNA meets the minimum height requirements where it is possible to do so with the given possible thumbnail widths