https://github.com/hellothisisflo/resizepictureandroid
Resize sample pictures for Android projects
https://github.com/hellothisisflo/resizepictureandroid
Last synced: about 2 months ago
JSON representation
Resize sample pictures for Android projects
- Host: GitHub
- URL: https://github.com/hellothisisflo/resizepictureandroid
- Owner: HelloThisIsFlo
- Created: 2015-12-01T09:46:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-01T16:02:19.000Z (over 9 years ago)
- Last Synced: 2025-02-13T12:54:02.341Z (3 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ResizePictureAndroid
This tiny program resizes sample pictures for Android Projects.
The problem with sample pictures is that :
* If they are too low resolution and in xxhdpi folder, they will be even more downscaled for hdpi/mdpi/ldpi/etc ...
* If they are too high resolution and in ldpi folder, they still be upscaled for xhdpi/xxhdpi/etc ... resulting in OOM Error
The solution is to resize sample pictures to a base width while keeping the aspect ratio, regarding of their original resolution.
Of course this solution is just a quick fix that should only be used with sample images that won't be included in production.