feat: Add Pixel 8 PNG mockup for Android phone screenshots#19
feat: Add Pixel 8 PNG mockup for Android phone screenshots#19thecoffeehog wants to merge 1 commit intoParthJadhav:mainfrom
Conversation
Replace the CSS-only AndroidPhone component with a PNG-based approach (matching how iPhone already works) for higher visual fidelity. - Add android-mockup.png (Pixel 8 frame from MockUPhone, CC BY 3.0) - Update AndroidPhone component to use PNG + pre-measured screen overlay - Add AMK_RATIO constant for Android mockup aspect ratio - Add /android-mockup.png to IMAGE_PATHS for preloading - Add attribution in README and SKILL.md The CSS-only frame works but lacks the realistic bezel detail and device-specific character that the iPhone mockup provides. This brings Android phone screenshots to visual parity with iPhone. If you prefer not to ship the PNG, consider sourcing one from MockUPhone (https://mockuphone.com/) — they provide CC BY 3.0 licensed device frames for all major devices.
|
Interesting, can you please attach example run with this? |
|
Sure, here is an approved app: https://play.google.com/store/apps/details?id=app.wishday&hl=en_IN&pli=1 |
|
Hmm, the screen and ratio looks quite outdated. What would be the current common device which is used in adroid screenshots? Can we use that? |
|
Fair point — I looked into this. Here's what I found: Canvas/export size: You're right that 1080×1920 (16:9) is outdated. Modern Android screenshots should be 1080×2400 (19.5:9) to match current phones. The Pixel 8 mockup's aspect ratio (978×2100 ≈ 9:19.3) is already modern — so this is really a canvas size fix, which I can apply in this PR. Updating Device choice: Pixel 8 (late 2023) is actually the most recent Pixel available under CC BY 3.0 from both MockUPhone and WebMobileFirst — neither has Pixel 9/10 yet. Newer mockups (Pixel 9 Pro) exist on Freepik/Good Mockups but are PSD-only or have restrictive licensing that wouldn't work for open-source redistribution. Options:
My recommendation is #1 — it addresses the actual aspect ratio issue, and the Pixel 8 is still a visually current device (same form factor family as Pixel 9/10). Happy to also add the S24 Ultra as a second option (toggleable via a Let me know which direction you'd prefer! |
|
I think the general assumption here seems to be that people are using the Pixel 8. When I looked into this a bit, I found that this is generally everyone’s preference. Of course, there are also those who use the Galaxy, but I suppose the general consensus is the Google Play Store. I also tested that it provides a more vibrant and premium look compared to plain CSS. For other cases, we can still stick with CSS. |
Summary
android-mockup.png) for the Android phone device frame, replacing the CSS-only approachAndroidPhonecomponent in SKILL.md to use PNG + pre-measured screen overlay — same pattern as the iPhonePhonecomponentAMK_RATIOconstant and pre-measured screen coordinates from MockUPhone's device data/android-mockup.pngtoIMAGE_PATHSfor base64 preloadingWhy
The CSS-only Android frame works functionally, but it lacks the realistic bezel detail, device-specific character, and visual fidelity that the iPhone mockup PNG provides. Users who generate screenshots for both platforms notice the quality gap.
This brings Android phone screenshots to visual parity with iPhone — same approach (PNG frame + absolute-positioned screen overlay), same reliability during html-to-image export.
Mockup source & license
The Pixel 8 frame is from MockUPhone and licensed under CC BY 3.0 — commercial use and redistribution allowed with attribution. Attribution is added in both README.md and SKILL.md.
See MockUPhone's attribution page for details.
If you'd prefer not to ship the PNG
Even if you choose not to merge this, consider pointing users to MockUPhone as a source for high-quality device frames — they have CC BY 3.0 licensed mockups for all major Android devices.
Test plan
🤖 Generated with Claude Code