https://github.com/faruktoptas/androidframer
Add frames and titles to your Google Play screenshots.
https://github.com/faruktoptas/androidframer
Last synced: 3 months ago
JSON representation
Add frames and titles to your Google Play screenshots.
- Host: GitHub
- URL: https://github.com/faruktoptas/androidframer
- Owner: faruktoptas
- License: apache-2.0
- Created: 2019-08-03T09:41:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-07T20:18:03.000Z (almost 3 years ago)
- Last Synced: 2025-02-02T03:52:42.044Z (3 months ago)
- Language: Python
- Size: 8.13 MB
- Stars: 147
- Watchers: 2
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# android-framer 
Add frames and titles to your Google Play screenshots. Inspired by [fastlane frameit](https://docs.fastlane.tools/actions/frameit/)

## Prerequsities
* Python 3.6
* [ImageMagick](https://imagemagick.org/)## Install
```pip3 install androidframer==0.1``````python
from androidframer import FramerFramer("resources/framer.json", "resources/strings.json", "resources/images").start()
```
or clone this repo and then run the script below:`python3 sample.py`
## Configure
### Edit framer.json file* background: Background frame. More frames can be found on [Facebook Design](https://facebook.design/devices).
* font: Title font
* fontsize: Title font size
* resize: Resize ratio of the source image
* xposition: X position of source image to background image
* yposition: Y position of source image to background image
* data: Title keys ("1" for 1.png) Currently supports 1 or 2 lines
* output: Directory to place output files
```json
{
"background": "resources/background.png",
"data": {
"1": [
"title1_1",
"title1_2"
],
"2": [
"title2_1"
]
},
"font": "resources/font.ttf",
"fontsize":"108",
"xposition":156,
"yposition":780,
"resize":100,
"output": "resources/output"
}
```
### Edit strings.json file
For each language set strings for title keys specified in framer.json
```json
{
"en-US": {
"title1_1": "Follow popular news",
"title1_2": "feeds",
"title2_1": "News summary"
},
"tr-TR": {
"title1_1": "Popüler haber sitelerini",
"title1_2": "takip edin",
"title2_1": "Haber özeti"
}
}
```