Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Web) FEAT: Can select image from clipboard using paste command #26

Merged
merged 10 commits into from
Jul 23, 2022

Conversation

OutdatedGuy
Copy link
Owner

New

  • (Web) can select image using ctrl + v

Changes

  • Updated dependencies
  • Storing image as Uint8List instead of XFile
  • Changed broken image icon in preview box
  • Minor bug fixes and performance improvements

Resolves #14

- Keeps an unified way to represent image for all platforms
- Removes platform checking requirements
- Can use 'paste' cmd (i.e. ctrl + v) to select image from the clipboard
- No need to check if list is empty to execute 'for-in' loop
Not able to upload image to cloud storage due missing mimeType

- Setting mimeType from retrieved files into a var
- If image selected from clipboard set mimeType to 'image/jpeg'
- Showing 'Icons.broken_image' instead of PlaceHolder for image error
Gallery selected image has diff result from clipboard or dropped image

- Reduced image compression to match clipboard and dropped images
selected image gets previous image mimetype sometimes
@OutdatedGuy
Copy link
Owner Author

Checked on both web and android with successful working.

@OutdatedGuy OutdatedGuy merged commit 8ee3b9f into main Jul 23, 2022
@OutdatedGuy OutdatedGuy deleted the clipboard branch July 23, 2022 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image copy-paste for web version
1 participant