-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Production Deployment
- Loading branch information
Showing
67 changed files
with
916 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Why add padding in `create_fit_coord_image` | ||
|
||
Because there will see weird triangle in the corner for some deivces because there is a black area between the phone frame and the display area | ||
|
||
![samsung-s24-ultra-right](https://github.com/user-attachments/assets/75936a3a-89b9-4885-874f-dfac4a0d1d0d) | ||
|
||
| type | Before | After | | ||
| --------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | ||
| landscape | ![samsung-s24-ultra-landscape](https://github.com/user-attachments/assets/b3ec7528-20a7-4508-b8c2-f7b6308e59c8) | ![samsung-s24-ultra-landscape](https://github.com/user-attachments/assets/bb508211-edd4-4dc3-b5d1-ed228150c12b) | | ||
| portrait | ![samsung-s24-ultra-portrait](https://github.com/user-attachments/assets/a9f56fec-6524-4983-9d21-2c598e1094a5) | ![samsung-s24-ultra-portrait](https://github.com/user-attachments/assets/96c6046e-be8e-4b36-8a2f-b374ffbe7d79) | | ||
| left | ![samsung-s24-ultra-left](https://github.com/user-attachments/assets/5e90d39b-40ff-44b8-96c1-e8479a17a9f5) | ![samsung-s24-ultra-left](https://github.com/user-attachments/assets/e33e5a43-69d9-494c-acae-dc371abe7406) | | ||
| right | ![samsung-s24-ultra-right](https://github.com/user-attachments/assets/8d258f18-bfd9-47a9-8258-3285f1a01b8a) | ![samsung-s24-ultra-right](https://github.com/user-attachments/assets/15768da2-e0af-442e-9c62-f99510c485e4) | | ||
|
||
For the portrait one, the gray area on the top disappear after the update, but I think that should be expected, I guess the `coords` in `device_info.json` is incorrect so the image is pasted slightly to the bottom than expected , but it is not related to the current issue. (not sure if we need to spend some time checking that all model templates and configurations are correct) | ||
|
||
## why shift mask position in `create_mockup_image` | ||
|
||
After adding padding in `create_fit_coord_image`, we need to shift mask too get correct mockup | ||
![image](https://github.com/user-attachments/assets/c751f8a2-4ff5-4a53-8eff-d58432b2f48a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from .image import mockup as startMockup # noqa: F401 | ||
from .image import previewMockup # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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
BIN
+8.07 KB
(170%)
public/images/devices_picture/apple-imac2015retina-front.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
BIN
+10.7 KB
(210%)
public/images/devices_picture/google-pixel-quite-black-landscape.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
BIN
+11.1 KB
(200%)
public/images/devices_picture/google-pixel-quite-black-portrait.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
BIN
+18.5 KB
(250%)
public/images/devices_picture/google-pixel-really-blue-landscape.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
BIN
+21.3 KB
(230%)
public/images/devices_picture/google-pixel-really-blue-portrait.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
BIN
+18.7 KB
(240%)
public/images/devices_picture/google-pixel-very-silver-landscape.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
BIN
+17.3 KB
(210%)
public/images/devices_picture/google-pixel-very-silver-portrait.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.
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.
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 added
BIN
+267 KB
public/images/devices_picture/samsung-galaxy-watch-4-black-landscape.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
BIN
+272 KB
public/images/devices_picture/samsung-galaxy-watch-4-black-portrait.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
BIN
+376 KB
public/images/devices_picture/samsung-galaxy-watch-4-pink-gold-landscape.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
BIN
+380 KB
public/images/devices_picture/samsung-galaxy-watch-4-pink-gold-portrait.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
BIN
+278 KB
public/images/devices_picture/samsung-galaxy-watch-4-silver-landscape.png
Oops, something went wrong.
Binary file added
BIN
+286 KB
public/images/devices_picture/samsung-galaxy-watch-4-silver-portrait.png
Oops, something went wrong.
Binary file modified
BIN
+36.2 KB
(230%)
public/images/devices_picture/samsung-galaxys4-black-landscape.png
Oops, something went wrong.
Binary file modified
BIN
+38.7 KB
(240%)
public/images/devices_picture/samsung-galaxys4-black-portrait.png
Oops, something went wrong.
Binary file modified
BIN
+34.2 KB
(230%)
public/images/devices_picture/samsung-galaxys4-white-landscape.png
Oops, something went wrong.
Binary file modified
BIN
+35.7 KB
(230%)
public/images/devices_picture/samsung-galaxys4-white-portrait.png
Oops, something went wrong.
Binary file added
BIN
+249 KB
public/images/mockup_mask_templates/samsung-galaxy-watch-4-black-landscape.png
Oops, something went wrong.
Binary file added
BIN
+254 KB
public/images/mockup_mask_templates/samsung-galaxy-watch-4-black-portrait.png
Oops, something went wrong.
Binary file added
BIN
+356 KB
public/images/mockup_mask_templates/samsung-galaxy-watch-4-pink-gold-landscape.png
Oops, something went wrong.
Binary file added
BIN
+361 KB
public/images/mockup_mask_templates/samsung-galaxy-watch-4-pink-gold-portrait.png
Oops, something went wrong.
Binary file added
BIN
+260 KB
public/images/mockup_mask_templates/samsung-galaxy-watch-4-silver-landscape.png
Oops, something went wrong.
Binary file added
BIN
+268 KB
public/images/mockup_mask_templates/samsung-galaxy-watch-4-silver-portrait.png
Oops, something went wrong.
Binary file added
BIN
+361 KB
public/images/mockup_templates/samsung-galaxy-watch-4-black-landscape.png
Oops, something went wrong.
Binary file added
BIN
+266 KB
public/images/mockup_templates/samsung-galaxy-watch-4-black-portrait.png
Oops, something went wrong.
Binary file added
BIN
+479 KB
public/images/mockup_templates/samsung-galaxy-watch-4-pink-gold-landscape.png
Oops, something went wrong.
Binary file added
BIN
+377 KB
public/images/mockup_templates/samsung-galaxy-watch-4-pink-gold-portrait.png
Oops, something went wrong.
Binary file added
BIN
+351 KB
public/images/mockup_templates/samsung-galaxy-watch-4-silver-landscape.png
Oops, something went wrong.
Binary file added
BIN
+269 KB
public/images/mockup_templates/samsung-galaxy-watch-4-silver-portrait.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.