apache / apache/cordova-plugin-camera

Max resolution according to aspectratio

Open
#358 0 comments 0 reactions 0 assignees View on GitHub
support
Dominant language
Objective-C
Stars
976
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

I would like to limit the size of the picture on the longest size of the picture.
So when the picture is taken in Landscape or Portrait mode, the longest size may not be heigher than for example 1920px.

Now you can set targetHeight and targetWidth.
When I set both to 1920px, the landscape version is width is higher than 1920px.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how targetHeight and targetWidth are handled for landscape and portrait captures. Verify the current dimensions and identify the camera implementation and tests covering these options. Done means the longest image dimension never exceeds the requested maximum while preserving the aspect ratio.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.