capacitor-plugins
capacitor-plugins copied to clipboard
feat: Provide mime type for images from camera
Feature Request
Plugin
- Camera
Description
Currently the format property is set to 'png', 'jpeg' or 'gif', however usually we want to deal with mimetypes (e.g. to pass to the Blob/File constructor). The absence of this means users need to remember to always prepend 'image/' to format. Whilst this isn't a major issue, it is a subtle one, and given the current state encourages hard coding the 'image/' which could cause issues in the future if say video support was added, it would be nice if there was a property (e.g. mimetype) which contained the correct mimetype for the image.
Platform(s)
All
Preferred Solution
Add a mimetype property to all results from the camera plugin.
Any update?
We need this as well. Would be nice to have :)