https://github.com/alperozturk96/bitmapdownsampling
Helpful solution to reduce image size.
https://github.com/alperozturk96/bitmapdownsampling
android bitmap downsample downsampling java memory-optimization
Last synced: 3 months ago
JSON representation
Helpful solution to reduce image size.
- Host: GitHub
- URL: https://github.com/alperozturk96/bitmapdownsampling
- Owner: alperozturk96
- Created: 2021-11-07T16:06:02.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-19T20:32:44.000Z (about 3 years ago)
- Last Synced: 2025-01-13T07:40:34.976Z (4 months ago)
- Topics: android, bitmap, downsample, downsampling, java, memory-optimization
- Language: Java
- Homepage:
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BitmapDownsampling
###### This demo project completed at fall of 2021
The purpose of this application is to downsample bitmap with modern and old method.
In this project user can able to choose desired downsample width and see difference on screen.
###### Comparison:
| RawImage | Downsample (3000px) | Downsample (1000px) | Downsample (100px) |
| ------------- | ------------- | ------------- | ------------- |
| 32mb | 19.5mb | 4875kb | 75kb |[Raw Image Link](https://images7.alphacoders.com/671/671281.jpg)
https://user-images.githubusercontent.com/67455295/140652845-bd4eaee2-3336-45fd-b613-11f8c6818c0c.mp4
## What Can I Learn From This Project
- Downsample image via BitmapFactory
- Downsample image via ImageDecoder which is more modern way to do that.