Skip to content

Commit

Permalink
Merge branch 'newtemplates2021'
Browse files Browse the repository at this point in the history
  • Loading branch information
fredyshox committed Sep 26, 2021
2 parents 783d356 + 2775ddc commit 0e43f28
Show file tree
Hide file tree
Showing 110 changed files with 95 additions and 17 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(ScreenFramer VERSION 1.2.1)
project(ScreenFramer VERSION 1.2.2)

# dependencies
find_package(OpenCV 4 REQUIRED)
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ Padding can be specified using fraction of template dimensions. Available option

##### iPhones

* iPhone 12: `iphone12`
* Colors: `black`, `blue`, `green`, `red`, `white`
* iPhone 12 Mini: `iphone12mini`
* Colors: `black`, `blue`, `green`, `red`, `white`
* iPhone 12 Pro: `iphone12pro`
* Colors: `gold`, `graphite`, `pacific-blue`, `silver`
* iPhone 12 Pro: `iphone12promax`
* Colors: `gold`, `graphite`, `pacific-blue`, `silver`
* iPhone 11: `iphone11`
* Colors: `black`, `green`, `purple`, `red`, `white`, `yellow`
* iPhone 11 Pro: `iphone11pro`
Expand Down Expand Up @@ -113,14 +121,14 @@ Padding can be specified using fraction of template dimensions. Available option
* Colors: `silver`, `space-gray`
* iPad Pro 12.9 (3/4 gen): `ipadpro129`
* Colors: `silver`, `space-gray`
* iPad Air 4 (2020): `ipadair4`
* Colors: `green`, `rose-gold`, `silver`, `sky-blue`, `space-gray`
* iPad Air 3 (2019): `ipadair3`
* Colors: `gold`, `silver`, `space-gray`
* iPad Air 2: `ipadair2`
* Colors: `gold`, `silver`, `space-gray`
* iPad Mini 5 (2019): `ipadmini5`
* Colors: `gold`, `silver`, `space-gray`
* iPad Mini 4: `ipadmini4`
* Colors: `gold`, `silver`, `space-gray`

##### Apple Watch

Expand Down
Binary file modified Resources/Apple iPad 10.2 Gold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad 10.2 Silver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad 10.2 Space Gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Apple iPad Air (2019) 2020 Green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Apple iPad Air (2019) 2020 Silver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Air (2019) Gold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Air (2019) Silver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Air (2019) Space Gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Air 2 Gold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Air 2 Silver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Air 2 Space Gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Mini (2019) Gold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Mini (2019) Silver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Mini (2019) Space Gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Resources/Apple iPad Mini 4 Gold.png
Binary file not shown.
Binary file removed Resources/Apple iPad Mini 4 Silver.png
Binary file not shown.
Binary file removed Resources/Apple iPad Mini 4 Space Gray.png
Binary file not shown.
Binary file modified Resources/Apple iPad Pro (11-inch) Silver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Pro (11-inch) Space Gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Pro (12.9-inch) (3rd generation) Silver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Pro Gold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Apple iPad Pro Silver.png
Binary file modified Resources/Apple iPad Pro Space Gray.png
Binary file modified Resources/Apple iPhone 11 Black.png
Binary file modified Resources/Apple iPhone 11 Green.png
Binary file modified Resources/Apple iPhone 11 Pro Gold.png
Binary file modified Resources/Apple iPhone 11 Pro Max Gold.png
Binary file modified Resources/Apple iPhone 11 Pro Max Midnight Green.png
Binary file modified Resources/Apple iPhone 11 Pro Max Silver.png
Binary file modified Resources/Apple iPhone 11 Pro Max Space Gray.png
Binary file modified Resources/Apple iPhone 11 Pro Midnight Green.png
Binary file modified Resources/Apple iPhone 11 Pro Silver.png
Binary file modified Resources/Apple iPhone 11 Pro Space Gray.png
Binary file modified Resources/Apple iPhone 11 Purple.png
Binary file modified Resources/Apple iPhone 11 Red.png
Binary file modified Resources/Apple iPhone 11 White.png
Binary file modified Resources/Apple iPhone 11 Yellow.png
Binary file added Resources/Apple iPhone 12 Black.png
Binary file added Resources/Apple iPhone 12 Blue.png
Binary file added Resources/Apple iPhone 12 Green.png
Binary file added Resources/Apple iPhone 12 Mini Black.png
Binary file added Resources/Apple iPhone 12 Mini Blue.png
Binary file added Resources/Apple iPhone 12 Mini Green.png
Binary file added Resources/Apple iPhone 12 Mini Red.png
Binary file added Resources/Apple iPhone 12 Mini White.png
Binary file added Resources/Apple iPhone 12 Pro Gold.png
Binary file added Resources/Apple iPhone 12 Pro Graphite.png
Binary file added Resources/Apple iPhone 12 Pro Max Gold.png
Binary file added Resources/Apple iPhone 12 Pro Max Graphite.png
Binary file added Resources/Apple iPhone 12 Pro Max Silver.png
Binary file added Resources/Apple iPhone 12 Pro Pacific Blue.png
Binary file added Resources/Apple iPhone 12 Pro Silver.png
Binary file added Resources/Apple iPhone 12 Red.png
Binary file added Resources/Apple iPhone 12 White.png
Binary file modified Resources/Apple iPhone 5c Blue.png
Binary file modified Resources/Apple iPhone 5c Green.png
Binary file modified Resources/Apple iPhone 5c Red.png
Binary file modified Resources/Apple iPhone 5c White.png
Binary file modified Resources/Apple iPhone 5c Yellow.png
Binary file modified Resources/Apple iPhone 5s Gold.png
Binary file modified Resources/Apple iPhone 5s Silver.png
Binary file modified Resources/Apple iPhone 5s Space Gray.png
Binary file modified Resources/Apple iPhone 6s Gold.png
Binary file modified Resources/Apple iPhone 6s Plus Gold.png
Binary file modified Resources/Apple iPhone 6s Plus Rose Gold.png
Binary file modified Resources/Apple iPhone 6s Plus Silver.png
Binary file modified Resources/Apple iPhone 6s Plus Space Gray.png
Binary file modified Resources/Apple iPhone 6s Rose Gold.png
Binary file modified Resources/Apple iPhone 6s Silver.png
Binary file modified Resources/Apple iPhone 6s Space Gray.png
Binary file modified Resources/Apple iPhone 7 Gold.png
Binary file modified Resources/Apple iPhone 7 Jet Black.png
Binary file modified Resources/Apple iPhone 7 Matte Black.png
Binary file modified Resources/Apple iPhone 7 Plus Gold.png
Binary file modified Resources/Apple iPhone 7 Plus Jet Black.png
Binary file modified Resources/Apple iPhone 7 Plus Matte Black.png
Binary file modified Resources/Apple iPhone 7 Plus Rose Gold.png
Binary file modified Resources/Apple iPhone 7 Plus Silver.png
Binary file modified Resources/Apple iPhone 7 Rose Gold.png
Binary file modified Resources/Apple iPhone 7 Silver.png
Binary file modified Resources/Apple iPhone 8 Gold.png
Binary file modified Resources/Apple iPhone 8 Plus Gold.png
Binary file modified Resources/Apple iPhone 8 Plus Silver.png
Binary file modified Resources/Apple iPhone 8 Plus Space Gray.png
Binary file modified Resources/Apple iPhone 8 Silver.png
Binary file modified Resources/Apple iPhone 8 Space Gray.png
Binary file modified Resources/Apple iPhone X Silver.png
Binary file modified Resources/Apple iPhone X Space Gray.png
Binary file modified Resources/Apple iPhone XR Blue.png
Binary file modified Resources/Apple iPhone XR Coral.png
Binary file modified Resources/Apple iPhone XR Red.png
Binary file modified Resources/Apple iPhone XR Silver.png
Binary file modified Resources/Apple iPhone XR Space Gray.png
Binary file modified Resources/Apple iPhone XR Yellow.png
Binary file modified Resources/Apple iPhone XS Gold.png
Binary file modified Resources/Apple iPhone XS Max Gold.png
Binary file modified Resources/Apple iPhone XS Max Silver.png
Binary file modified Resources/Apple iPhone XS Max Space Gray.png
Binary file modified Resources/Apple iPhone XS Silver.png
Binary file modified Resources/Apple iPhone XS Space Gray.png
86 changes: 75 additions & 11 deletions Resources/contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"space-gray": "Apple iPad Air 2 Space Gray.png"
},
"left": 111,
"res_height": 2496,
"res_height": 2495,
"res_width": 1763,
"right": 1647,
"top": 224
Expand All @@ -41,19 +41,21 @@
"right": 1741,
"top": 192
},
"ipadmini4": {
"bottom": 2326,
"ipadair4": {
"bottom": 2474,
"default_image": "space-gray",
"images": {
"gold": "Apple iPad Mini 4 Gold.png",
"silver": "Apple iPad Mini 4 Silver.png",
"space-gray": "Apple iPad Mini 4 Space Gray.png"
"green": "Apple iPad Air (2019) 2020 Green.png",
"rose-gold": "Apple iPad Air (2019) 2020 Rose Gold.png",
"silver": "Apple iPad Air (2019) 2020 Silver.png",
"sky-blue": "Apple iPad Air (2019) 2020 Sky Blue.png",
"space-gray": "Apple iPad Air (2019) 2020 Space Gray.png"
},
"left": 96,
"res_height": 2604,
"res_width": 1728,
"right": 1632,
"top": 278
"left": 110,
"res_height": 2584,
"res_width": 1864,
"right": 1750,
"top": 114
},
"ipadmini5": {
"bottom": 2327,
Expand Down Expand Up @@ -156,6 +158,68 @@
"right": 1328,
"top": 78
},
"iphone12": {
"bottom": 2595,
"default_image": "black",
"images": {
"black": "Apple iPhone 12 Black.png",
"blue": "Apple iPhone 12 Blue.png",
"green": "Apple iPhone 12 Green.png",
"red": "Apple iPhone 12 Red.png",
"white": "Apple iPhone 12 White.png"
},
"left": 72,
"res_height": 2658,
"res_width": 1314,
"right": 1242,
"top": 63
},
"iphone12mini": {
"bottom": 2399,
"default_image": "black",
"images": {
"black": "Apple iPhone 12 Mini Black.png",
"blue": "Apple iPhone 12 Mini Blue.png",
"green": "Apple iPhone 12 Mini Green.png",
"red": "Apple iPhone 12 Mini Red.png",
"white": "Apple iPhone 12 Mini White.png"
},
"left": 70,
"res_height": 2458,
"res_width": 1220,
"right": 1150,
"top": 59
},
"iphone12pro": {
"bottom": 2595,
"default_image": "silver",
"images": {
"gold": "Apple iPhone 12 Pro Gold.png",
"graphite": "Apple iPhone 12 Pro Graphite.png",
"pacific-blue": "Apple iPhone 12 Pro Pacific Blue.png",
"silver": "Apple iPhone 12 Pro Silver.png"
},
"left": 72,
"res_height": 2658,
"res_width": 1314,
"right": 1242,
"top": 63
},
"iphone12promax": {
"bottom": 2840,
"default_image": "silver",
"images": {
"gold": "Apple iPhone 12 Pro Max Gold.png",
"graphite": "Apple iPhone 12 Pro Max Graphite.png",
"pacific-blue": "Apple iPhone 12 Pro Max Pacific Blue.png",
"silver": "Apple iPhone 12 Pro Max Silver.png"
},
"left": 74,
"res_height": 2902,
"res_width": 1432,
"right": 1358,
"top": 62
},
"iphone5c": {
"bottom": 1375,
"default_image": "white",
Expand Down
8 changes: 7 additions & 1 deletion Tools/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"Rose Gold",
"Jet Black",
"Matte Black",
"Pacific Blue",
"Sky Blue",
"Clearly White",
"Just Black",
"Not Pink",
Expand Down Expand Up @@ -50,7 +52,8 @@
"Green",
"Gray",
"Coral",
"Purple"
"Purple",
"Graphite",
]

# every apple device right now is available in one of these colors
Expand All @@ -68,14 +71,17 @@

# renaming, prefer generation over years
IPAD_AIR_YEAR = "2019"
NEW_IPAD_AIR_YEAR = "2020"
IPAD_MINI_YEAR = "2019"
IPAD_AIR_GEN = "3"
NEW_IPAD_AIR_GEN = "4"
IPAD_MINI_GEN = "5"
IPAD_PRO_12_9_GEN = "3"
RENAME_SCHEME = {
"iPad Pro (11 inch)": "iPad Pro 11",
f"iPad Pro (12.9 inch) ({IPAD_PRO_12_9_GEN}rd generation)": "iPad Pro 12.9",
f"iPad Air ({IPAD_AIR_YEAR})": f"iPad Air {IPAD_AIR_GEN}",
f"iPad Air ({IPAD_AIR_YEAR}) {NEW_IPAD_AIR_YEAR}": f"iPad Air {NEW_IPAD_AIR_GEN}",
f"iPad Mini ({IPAD_MINI_YEAR})": f"iPad Mini {IPAD_MINI_GEN}",
f"iPodTouch Portrait": "iPod Touch"
}
Expand Down
4 changes: 2 additions & 2 deletions Tools/fastlane-templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def main():
repo_dir = path.join(resource_dir, "frameit-frames-gh-pages")

print("Downloading frameit frames...")
if os.system(f"wget -q --show-progress -O \"{zip_path}\" \"{FRAMEIT_URL}\" && unzip -d \"{resource_dir}\" \"{zip_path}\"") != 0:
exit(2)
status_code = os.system(f"wget -q --show-progress -O \"{zip_path}\" \"{FRAMEIT_URL}\" && unzip -d \"{resource_dir}\" \"{zip_path}\"")
print(f"Status code: {status_code}")

# path to latest frames
frameit_dir = path.join(repo_dir, "latest")
Expand Down

0 comments on commit 0e43f28

Please sign in to comment.