Update app.py
Browse files
app.py
CHANGED
|
@@ -2452,23 +2452,77 @@ class PhotoRequirementsChecker:
|
|
| 2452 |
|
| 2453 |
html += '</div>'
|
| 2454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2455 |
html += '''
|
| 2456 |
<div style="background: #e7f3ff; padding: 20px; border-radius: 8px; border-left: 5px solid #0073aa; margin-top: 30px;">
|
| 2457 |
-
<h3 style="margin: 0 0 15px 0; color: #0073aa;">π U.S. Visa Photo Requirements</h3>
|
| 2458 |
<ul style="margin: 10px 0; padding-left: 25px; line-height: 1.8;">
|
| 2459 |
<li><strong>Color:</strong> Must be in color (24-bit)</li>
|
| 2460 |
-
<li><strong>Size:</strong> Head 50-69% of image height</li>
|
| 2461 |
-
<li><strong>Recent:</strong> Taken within last 6 months</li>
|
| 2462 |
-
<li><strong>Background:</strong> Plain white or off-white</li>
|
| 2463 |
-
<li><strong>Position:</strong> Full-face view facing camera</li>
|
| 2464 |
-
<li><strong>Expression:</strong> Neutral with both eyes open</li>
|
| 2465 |
-
<li><strong>
|
| 2466 |
-
<li><strong>
|
| 2467 |
-
<li><strong>
|
|
|
|
|
|
|
| 2468 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2469 |
</div>
|
| 2470 |
-
|
| 2471 |
|
|
|
|
|
|
|
| 2472 |
return html
|
| 2473 |
|
| 2474 |
|
|
|
|
| 2452 |
|
| 2453 |
html += '</div>'
|
| 2454 |
|
| 2455 |
+
# html += '''
|
| 2456 |
+
# <div style="background: #e7f3ff; padding: 20px; border-radius: 8px; border-left: 5px solid #0073aa; margin-top: 30px;">
|
| 2457 |
+
# <h3 style="margin: 0 0 15px 0; color: #0073aa;">π U.S. Visa Photo Requirements</h3>
|
| 2458 |
+
# <ul style="margin: 10px 0; padding-left: 25px; line-height: 1.8;">
|
| 2459 |
+
# <li><strong>Color:</strong> Must be in color (24-bit)</li>
|
| 2460 |
+
# <li><strong>Size:</strong> Head 50-69% of image height</li>
|
| 2461 |
+
# <li><strong>Recent:</strong> Taken within last 6 months</li>
|
| 2462 |
+
# <li><strong>Background:</strong> Plain white or off-white</li>
|
| 2463 |
+
# <li><strong>Position:</strong> Full-face view facing camera</li>
|
| 2464 |
+
# <li><strong>Expression:</strong> Neutral with both eyes open</li>
|
| 2465 |
+
# <li><strong>Head Covering:</strong> No hats unless religious</li>
|
| 2466 |
+
# <li><strong>Eyeglasses:</strong> Not allowed (except medical)</li>
|
| 2467 |
+
# <li><strong>Quality:</strong> Sharp focus, proper lighting</li>
|
| 2468 |
+
# </ul>
|
| 2469 |
+
# </div>
|
| 2470 |
+
# </div>'''
|
| 2471 |
+
|
| 2472 |
+
# Add official requirements reference
|
| 2473 |
html += '''
|
| 2474 |
<div style="background: #e7f3ff; padding: 20px; border-radius: 8px; border-left: 5px solid #0073aa; margin-top: 30px;">
|
| 2475 |
+
<h3 style="margin: 0 0 15px 0; color: #0073aa;">π Official U.S. Visa Photo Requirements</h3>
|
| 2476 |
<ul style="margin: 10px 0; padding-left: 25px; line-height: 1.8;">
|
| 2477 |
<li><strong>Color:</strong> Must be in color (24-bit)</li>
|
| 2478 |
+
<li><strong>Size:</strong> Head must be 50-69% of image height (1 to 1 3/8 inches or 22-35mm from chin to top of head)</li>
|
| 2479 |
+
<li><strong>Recent:</strong> Taken within last 6 months to reflect current appearance</li>
|
| 2480 |
+
<li><strong>Background:</strong> Plain white or off-white background with no shadows</li>
|
| 2481 |
+
<li><strong>Position:</strong> Full-face view directly facing camera</li>
|
| 2482 |
+
<li><strong>Expression:</strong> Neutral facial expression with both eyes open</li>
|
| 2483 |
+
<li><strong>Clothing:</strong> Everyday clothing (no uniforms except religious clothing worn daily)</li>
|
| 2484 |
+
<li><strong>Head Covering:</strong> No hats unless religious head covering worn daily. Full face must be visible, no shadows on face</li>
|
| 2485 |
+
<li><strong>Eyeglasses:</strong> Not allowed (policy updated). Exception only for medical reasons with doctor's statement</li>
|
| 2486 |
+
<li><strong>Devices:</strong> No headphones, wireless devices, or similar items</li>
|
| 2487 |
+
<li><strong>Quality:</strong> Sharp focus, proper lighting, no red-eye, not grainy</li>
|
| 2488 |
</ul>
|
| 2489 |
+
<p style="margin: 15px 0 5px 0; font-size: 14px;">
|
| 2490 |
+
<strong>πΈ Tips for Best Results:</strong><br>
|
| 2491 |
+
β’ Use a white blanket or sheet as background if wall is not white<br>
|
| 2492 |
+
β’ Ensure even lighting with no shadows on face or background<br>
|
| 2493 |
+
β’ Stand 4-5 feet away from background to avoid shadows<br>
|
| 2494 |
+
β’ Use natural light or diffused indoor lighting<br>
|
| 2495 |
+
β’ Avoid grainy photos - use good quality printer if printing<br>
|
| 2496 |
+
β’ Do not use photos from driver's licenses or copied from other documents<br>
|
| 2497 |
+
β’ No selfies or full-length photos
|
| 2498 |
+
</p>
|
| 2499 |
+
<p style="margin: 15px 0 0 0; font-size: 13px; color: #666;">
|
| 2500 |
+
For complete requirements and photo examples, visit:<br>
|
| 2501 |
+
<a href="https://travel.state.gov/content/travel/en/us-visas/visa-information-resources/photos.html"
|
| 2502 |
+
target="_blank"
|
| 2503 |
+
style="
|
| 2504 |
+
display: inline-block;
|
| 2505 |
+
margin-top: 10px;
|
| 2506 |
+
background: linear-gradient(135deg, #0073aa, #005f8d);
|
| 2507 |
+
color: white;
|
| 2508 |
+
text-decoration: none;
|
| 2509 |
+
padding: 10px 18px;
|
| 2510 |
+
border-radius: 8px;
|
| 2511 |
+
font-weight: 500;
|
| 2512 |
+
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
|
| 2513 |
+
transition: all 0.25s ease;
|
| 2514 |
+
"
|
| 2515 |
+
onmouseover="this.style.transform='translateY(-3px)'; this.style.boxShadow='0 8px 15px rgba(0,0,0,0.25)';"
|
| 2516 |
+
onmouseout="this.style.transform='translateY(0)'; this.style.boxShadow='0 4px 10px rgba(0,0,0,0.15)';">
|
| 2517 |
+
U.S. Department of State β Photo Requirements
|
| 2518 |
+
</a>
|
| 2519 |
+
</p>
|
| 2520 |
+
|
| 2521 |
</div>
|
| 2522 |
+
'''
|
| 2523 |
|
| 2524 |
+
html += '</div>'
|
| 2525 |
+
|
| 2526 |
return html
|
| 2527 |
|
| 2528 |
|