Create a PREMIUM 3D MEDICAL AWARENESS INFOGRAPHIC POSTER in Urdu (1080x1080 px) for Social Media, WhatsApp Channel, Facebook, Instagram, and WhatsApp Status. موضوع: بانجھ پن / اولاد نہ ہونا (Male Infertility Awareness) ڈیزائن اسٹائل: - پریمیم ہسپتال معیار (Premium Healthcare Branding) - جدید اور پروفیشنل میڈیکل ڈیزائن - روشن، واضح اور دلکش لے آؤٹ - Ultra HD Quality (1080x1080 px) - صاف، پڑھنے میں آسان اور درست اردو - سفید، نیلا، فیروزی اور سبز میڈیکل کلر پیلیٹ - ہلکے 3D میڈیکل عناصر - پروفیشنل آئیکنز اور بصری عناصر - اعلیٰ معیار کی اردو ٹائپوگرافی - موبائل اسکرین پر آسانی سے پڑھا جا سکے ہیڈنگ: 🩺 بانجھ پن (Infertility) کیا ہے؟ تعارفی متن: بانجھ پن ایک ایسی طبی حالت ہے جس میں شادی شدہ جوڑا ایک سال یا اس سے زیادہ عرصے تک باقاعدہ ازدواجی تعلق کے باوجود حاملہ نہ ہو سکے۔ یہ مسئلہ مرد یا عورت دونوں میں موجود ہو سکتا ہے اور بروقت تشخیص و علاج سے اکثر کامیابی حاصل کی جا سکتی ہے۔ عام علامات: ✔ حمل نہ ٹھہرنا ✔ ماہواری کی بے قاعدگی ✔ ماہواری کا بند ہونا ✔ ہارمونز کا عدم توازن ✔ مردانہ کمزوری یا سپرم کی کمی ✔ تولیدی نظام کے مسائل ممکنہ وجوہات: 🔹 ہارمونز کا عدم توازن 🔹 سپرم کی کم تعداد یا کمزوری 🔹 بیضہ دانی کے مسائل 🔹 پولی سسٹک اووری سنڈروم (PCOS) 🔹 تولیدی نالیوں کی رکاوٹ 🔹 بڑھتی عمر 🔹 موٹاپا اور غیر صحت مند طرزِ زندگی 🔹 ذہنی دباؤ احتیاطی تدابیر: ✅ متوازن غذا استعمال کریں ✅ وزن کو مناسب حد میں رکھیں ✅ سگریٹ نوشی اور نشہ آور اشیاء سے پرہیز کریں ✅ باقاعدہ ورزش کریں ✅ ذہنی دباؤ کم کریں ✅ بروقت طبی معائنہ کروائیں اہم پیغام: بانجھ پن قابلِ تشخیص اور قابلِ علاج مسئلہ ہے۔ بروقت ماہر ڈاکٹر سے مشورہ آپ کے والدین بننے کے خواب کو حقیقت میں بدل سکتا ہے۔ فوٹر سیکشن: شفا آن لائن کنسلٹیشن ماہر ڈاکٹروں سے آن لائن مشاورت دستیاب ہے 📞 واٹس ایپ نمبر: 03024309473 نمایاں نوٹ: تمام آن لائن مشاورتی خدمات فیس کے ساتھ (Paid Services) فراہم کی جاتی ہیں۔ ڈیزائن ہدایات: - "بانجھ پن" کو نمایاں اور بڑا لکھیں۔ - "Paid Services" کو واضح اور نمایاں انداز میں دکھائیں۔ - WhatsApp نمبر 03024309473 کو نمایاں سبز WhatsApp باکس میں شامل کریں۔ - میڈیکل، خاندانی اور صحت سے متعلق مناسب آئیکنز استعمال کریں۔ - متن کے درمیان مناسب فاصلہ رکھیں تاکہ چارٹ صاف اور پڑھنے میں آسان ہو۔ - کسی بھی اردو لفظ، اعراب یا جملے میں غلطی نہ ہو۔ - مجموعی ڈیزائن قابلِ اعتماد، روشن، پروفیشنل اور ہسپتال معیار کا ہونا چاہیے۔
ls -la /home/daytona/workspace/ 2>/dev/null || echo "workspace empty or not found"
mkdir -p /home/daytona/workspace/infertility-poster && which python3 && python3 --version && python3 -c "from PIL import Image; print('PIL OK')" 2>/dev/null || echo "PIL not available"
python3 -c "from PIL import ImageFont; print('ImageFont OK')" && python3 -c "import arabic_reshaper; print('arabic_reshaper OK')" 2>/dev/null || echo "no arabic_reshaper" && python3 -c "from bidi.algorithm import get_display; print('bidi OK')" 2>/dev/null || echo "no bidi" && fc-list | grep -i noto | grep -i arabic | head -5
fc-list | grep -i urdu | head -10; fc-list | grep -i noto | head -10; fc-list | grep -i arabic | head -10; which wkhtmltoimage 2>/dev/null || echo "no wkhtmltoimage"; which chromium 2>/dev/null || echo "no chromium"; which google-chrome 2>/dev/null || echo "no chrome"; which puppeteer 2>/dev/null || echo "no puppeteer"
fc-list | grep -i noto; fc-list | grep -i arabic; ls /usr/share/fonts/ | head -20
fc-list 2>/dev/null | head -20; ls /usr/share/fonts/truetype/ 2>/dev/null | head -20; find /usr/share/fonts -name "*.ttf" 2>/dev/null | grep -i -E "noto|arabic|urdu|nastaliq|jameel" | head -10
~/infertility-poster/poster.html
<!DOCTYPE html>
<html lang="ur" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Infertility Awareness Poster</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;600;700;800&display=swap" rel="stylesheet">
<style>
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;600;700;800&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 1080px;
height: 1080px;
overflow: hidden;
background: #020b18;
font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', 'Arial Unicode MS', sans-serif;
direction: rtl;
}
.poster {
width: 1080px;
height: 1080px;
position: relative;
overflow: hidden;
background: linear-gradient(145deg, #031525 0%, #042240 30%, #051e3a 60%, #020f20 100%);
}
/* Animated grid background */
.bg-grid {
position: absolute;
inset: 0;
background-image:
linear-gradient(rgba(0,180,216,0.06) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,180,216,0.06) 1px, transparent 1px);
background-size: 60px 60px;
}
/* Glowing orbs */
.orb1 {
position: absolute;
width: 400px;
height: 400px;
border-radius: 50%;
background: radial-gradient(circle, rgba(0,180,216,0.18) 0%, transparent 70%);
top: -80px;
right: -80px;
}
.orb2 {
position: absolute;
width: 350px;
height: 350px;
border-radius: 50%;
background: radial-gradient(circle, rgba(6,214,160,0.12) 0%, transparent 70%);
bottom: 100px;
left: -60px;
}
.orb3 {
position: absolute;
width: 250px;
height: 250px;
border-radius: 50%;
background: radial-gradient(circle, rgba(72,149,239,0.10) 0%, transparent 70%);
top: 400px;
left: 50%;
transform: translateX(-50%);
}
/* Top accent line */
.top-accent {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #06d6a0, #00b4d8, #4895ef, #06d6a0);
}
/* Main container */
.container {
position: relative;
z-index: 10;
padding: 22px 36px 16px 36px;
height: 100%;
display: flex;
flex-direction: column;
gap: 10px;
}
/* HEADER */
.header {
background: linear-gradient(135deg, rgba(0,180,216,0.22) 0%, rgba(6,214,160,0.15) 100%);
border: 1.5px solid rgba(0,180,216,0.4);
border-radius: 18px;
padding: 14px 24px 10px 24px;
text-align: center;
position: relative;
box-shadow: 0 4px 30px rgba(0,180,216,0.20), inset 0 1px 0 rgba(255,255,255,0.08);
}
.header::before {
content: '';
position: absolute;
top: 0; left: 50%; transform: translateX(-50%);
width: 200px; height: 2px;
background: linear-gradient(90deg, transparent, #06d6a0, transparent);
}
.header-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: linear-gradient(135deg, #00b4d8, #06d6a0);
border-radius: 20px;
padding: 4px 16px;
margin-bottom: 8px;
}
.header-badge span {
font-size: 11px;
font-weight: 700;
color: #fff;
letter-spacing: 1.5px;
font-family: 'Arial', sans-serif;
direction: ltr;
}
.main-title {
font-size: 36px;
font-weight: 700;
color: #ffffff;
line-height: 1.3;
text-shadow: 0 0 30px rgba(0,180,216,0.5);
font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif;
}
.main-title .highlight {
color: #06d6a0;
font-size: 40px;
}
.subtitle-text {
font-size: 13px;
color: rgba(255,255,255,0.75);
line-height: 1.7;
margin-top: 6px;
font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif;
direction: rtl;
}
/* TWO COLUMN LAYOUT */
.two-col {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
flex: 1;
}
/* SECTION CARDS */
.card {
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.10);
border-radius: 16px;
padding: 14px 18px 12px 18px;
position: relative;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
.card::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 2px;
}
.card-green::before { background: linear-gradient(90deg, #06d6a0, transparent); }
.card-blue::before { background: linear-gradient(90deg, #00b4d8, transparent); }
.card-purple::before { background: linear-gradient(90deg, #4895ef, transparent); }
.card-teal::before { background: linear-gradient(90deg, #48cae4, transparent); }
.card-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
flex-direction: row-reverse;
}
.card-icon {
width: 36px;
height: 36px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
flex-shrink: 0;
}
.icon-green { background: linear-gradient(135deg, rgba(6,214,160,0.25), rgba(6,214,160,0.10)); border: 1px solid rgba(6,214,160,0.35); }
.icon-blue { background: linear-gradient(135deg, rgba(0,180,216,0.25), rgba(0,180,216,0.10)); border: 1px solid rgba(0,180,216,0.35); }
.icon-purple { background: linear-gradient(135deg, rgba(72,149,239,0.25), rgba(72,149,239,0.10)); border: 1px solid rgba(72,149,239,0.35); }
.icon-teal { background: linear-gradient(135deg, rgba(72,202,228,0.25), rgba(72,202,228,0.10)); border: 1px solid rgba(72,202,228,0.35); }
.card-title {
font-size: 16px;
font-weight: 700;
color: #ffffff;
font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif;
direction: rtl;
line-height: 1.4;
}
.card-title.green { color: #06d6a0; }
.card-title.blue { color: #48cae4; }
.card-title.purple { color: #4895ef; }
.card-title.teal { color: #90e0ef; }
.item-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 5px;
}
.item-list li {
display: flex;
align-items: flex-start;
gap: 8px;
font-size: 12px;
color: rgba(255,255,255,0.88);
line-height: 1.5;
font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif;
direction: rtl;
flex-direction: row-reverse;
}
.item-list li .dot {
flex-shrink: 0;
margin-top: 4px;
font-size: 14px;
line-height: 1;
}
.dot-green { color: #06d6a0; }
.dot-blue { color: #00b4d8; }
.dot-purple { color: #4895ef; }
.dot-teal { color: #48cae4; }
/* IMPORTANT MESSAGE */
.message-box {
background: linear-gradient(135deg, rgba(6,214,160,0.15) 0%, rgba(0,180,216,0.15) 100%);
border: 1.5px solid rgba(6,214,160,0.4);
border-radius: 14px;
padding: 12px 20px;
text-align: center;
position: relative;
box-shadow: 0 0 25px rgba(6,214,160,0.12);
}
.message-box::before {
content: '';
position: absolute;
top: 0; left: 50%; transform: translateX(-50%);
width: 120px; height: 2px;
background: linear-gradient(90deg, transparent, #06d6a0, transparent);
}
.message-label {
font-size: 10px;
font-weight: 700;
color: #06d6a0;
letter-spacing: 2px;
font-family: 'Arial', sans-serif;
direction: ltr;
margin-bottom: 4px;
}
.message-text {
font-size: 13px;
color: rgba(255,255,255,0.92);
line-height: 1.7;
font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif;
direction: rtl;
}
.message-text strong {
color: #06d6a0;
font-size: 14px;
}
/* FOOTER */
.footer {
background: linear-gradient(135deg, rgba(0,180,216,0.18) 0%, rgba(4,162,86,0.18) 100%);
border: 1.5px solid rgba(0,180,216,0.35);
border-radius: 16px;
padding: 12px 20px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
box-shadow: 0 4px 25px rgba(0,180,216,0.15);
}
.footer-brand {
flex: 1;
text-align: right;
}
.brand-name {
font-size: 18px;
font-weight: 700;
color: #ffffff;
font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif;
direction: rtl;
text-shadow: 0 0 15px rgba(0,180,216,0.4);
}
.brand-tagline {
font-size: 11px;
color: rgba(255,255,255,0.70);
font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif;
direction: rtl;
margin-top: 2px;
}
.footer-divider {
width: 1px;
height: 50px;
background: rgba(255,255,255,0.15);
}
.footer-contact {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.whatsapp-badge {
background: linear-gradient(135deg, #25d366, #1da851);
border-radius: 10px;
padding: 6px 14px;
display: flex;
align-items: center;
gap: 8px;
box-shadow: 0 4px 15px rgba(37,211,102,0.35);
}
.whatsapp-icon {
font-size: 18px;
}
.whatsapp-number {
font-size: 15px;
font-weight: 700;
color: #ffffff;
font-family: 'Arial', sans-serif;
direction: ltr;
letter-spacing: 0.5px;
}
.paid-badge {
background: linear-gradient(135deg, #f72585, #b5179e);
border-radius: 8px;
padding: 3px 12px;
font-size: 10px;
font-weight: 700;
color: #fff;
font-family: 'Arial', sans-serif;
letter-spacing: 1px;
direction: ltr;
box-shadow: 0 2px 10px rgba(247,37,133,0.35);
}
/* 3D decorative elements */
.deco-circle {
position: absolute;
border-radius: 50%;
border: 1px solid rgba(0,180,216,0.15);
}
.deco1 { width: 120px; height: 120px; top: 200px; left: 20px; border-color: rgba(6,214,160,0.10); }
.deco2 { width: 80px; height: 80px; top: 250px; left: 50px; border-color: rgba(0,180,216,0.12); }
.deco3 { width: 60px; height: 60px; bottom: 200px; right: 30px; border-color: rgba(72,149,239,0.12); }
/* Medical cross decoration */
.med-cross {
position: absolute;
opacity: 0.06;
font-size: 80px;
color: #00b4d8;
top: 420px;
right: -10px;
transform: rotate(15deg);
}
</style>
</head>
<body>
<div class="poster">
<!-- Background elements -->
<div class="bg-grid"></div>
<div class="orb1"></div>
<div class="orb2"></div>
<div class="orb3"></div>
<div class="top-accent"></div>
<div class="deco-circle deco1"></div>
<div class="deco-circle deco2"></div>
<div class="deco-circle deco3"></div>
<div class="med-cross">✚</div>
<div class="container">
<!-- HEADER SECTION -->
<div class="header">
<div class="header-badge">
<span>🩺 MEDICAL AWARENESS</span>
</div>
<div class="main-title">
<span class="highlight">بانجھ پن</span> کیا ہے؟
</div>
<div class="subtitle-text">
بانجھ پن ایک ایسی طبی حالت ہے جس میں شادی شدہ جوڑا ایک سال یا اس سے زیادہ عرصے تک باقاعدہ ازدواجی تعلق کے باوجود حاملہ نہ ہو سکے۔ یہ مسئلہ مرد یا عورت دونوں میں ہو سکتا ہے اور بروقت علاج سے اکثر کامیابی ممکن ہے۔
</div>
</div>
<!-- TWO COLUMN: Symptoms + Causes -->
<div class="two-col">
<!-- SYMPTOMS -->
<div class="card card-green">
<div class="card-header">
<div class="card-icon icon-green">🔬</div>
<div class="card-title green">عام علامات</div>
</div>
<ul class="item-list">
<li><span class="dot dot-green">✔</span><span>حمل نہ ٹھہرنا</span></li>
<li><span class="dot dot-green">✔</span><span>ماہواری کی بے قاعدگی</span></li>
<li><span class="dot dot-green">✔</span><span>ماہواری کا بند ہونا</span></li>
<li><span class="dot dot-green">✔</span><span>ہارمونز کا عدم توازن</span></li>
<li><span class="dot dot-green">✔</span><span>مردانہ کمزوری یا سپرم کی کمی</span></li>
<li><span class="dot dot-green">✔</span><span>تولیدی نظام کے مسائل</span></li>
</ul>
</div>
<!-- CAUSES -->
<div class="card card-blue">
<div class="card-header">
<div class="card-icon icon-blue">🧬</div>
<div class="card-title blue">ممکنہ وجوہات</div>
</div>
<ul class="item-list">
<li><span class="dot dot-blue">🔹</span><span>ہارمونز کا عدم توازن</span></li>
<li><span class="dot dot-blue">🔹</span><span>سپرم کی کم تعداد یا کمزوری</span></li>
<li><span class="dot dot-blue">🔹</span><span>بیضہ دانی کے مسائل (PCOS)</span></li>
<li><span class="dot dot-blue">🔹</span><span>تولیدی نالیوں کی رکاوٹ</span></li>
<li><span class="dot dot-blue">🔹</span><span>بڑھتی عمر اور موٹاپا</span></li>
<li><span class="dot dot-blue">🔹</span><span>غیر صحت مند طرزِ زندگی</span></li>
<li><span class="dot dot-blue">🔹</span><span>ذہنی دباؤ</span></li>
</ul>
</div>
</div>
<!-- PREVENTION -->
<div class="card card-teal">
<div class="card-header">
<div class="card-icon icon-teal">🛡️</div>
<div class="card-title teal">احتیاطی تدابیر</div>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px;">
<div style="display:flex; align-items:flex-start; gap:6px; flex-direction:row-reverse;">
<span style="color:#48cae4; font-size:13px; margin-top:2px; flex-shrink:0;">✅</span>
<span style="font-size:12px; color:rgba(255,255,255,0.88); font-family:'Noto Nastaliq Urdu','Noto Sans Arabic',sans-serif; direction:rtl; line-height:1.5;">متوازن غذا استعمال کریں</span>
</div>
<div style="display:flex; align-items:flex-start; gap:6px; flex-direction:row-reverse;">
<span style="color:#48cae4; font-size:13px; margin-top:2px; flex-shrink:0;">✅</span>
<span style="font-size:12px; color:rgba(255,255,255,0.88); font-family:'Noto Nastaliq Urdu','Noto Sans Arabic',sans-serif; direction:rtl; line-height:1.5;">وزن کو مناسب حد میں رکھیں</span>
</div>
<div style="display:flex; align-items:flex-start; gap:6px; flex-direction:row-reverse;">
<span style="color:#48cae4; font-size:13px; margin-top:2px; flex-shrink:0;">✅</span>
<span style="font-size:12px; color:rgba(255,255,255,0.88); font-family:'Noto Nastaliq Urdu','Noto Sans Arabic',sans-serif; direction:rtl; line-height:1.5;">سگریٹ نوشی اور نشہ آور اشیاء سے پرہیز کریں</span>
</div>
<div style="display:flex; align-items:flex-start; gap:6px; flex-direction:row-reverse;">
<span style="color:#48cae4; font-size:13px; margin-top:2px; flex-shrink:0;">✅</span>
<span style="font-size:12px; color:rgba(255,255,255,0.88); font-family:'Noto Nastaliq Urdu','Noto Sans Arabic',sans-serif; direction:rtl; line-height:1.5;">باقاعدہ ورزش کریں</span>
</div>
<div style="display:flex; align-items:flex-start; gap:6px; flex-direction:row-reverse;">
<span style="color:#48cae4; font-size:13px; margin-top:2px; flex-shrink:0;">✅</span>
<span style="font-size:12px; color:rgba(255,255,255,0.88); font-family:'Noto Nastaliq Urdu','Noto Sans Arabic',sans-serif; direction:rtl; line-height:1.5;">ذہنی دباؤ کم کریں</span>
</div>
<div style="display:flex; align-items:flex-start; gap:6px; flex-direction:row-reverse;">
<span style="color:#48cae4; font-size:13px; margin-top:2px; flex-shrink:0;">✅</span>
<span style="font-size:12px; color:rgba(255,255,255,0.88); font-family:'Noto Nastaliq Urdu','Noto Sans Arabic',sans-serif; direction:rtl; line-height:1.5;">بروقت طبی معائنہ کروائیں</span>
</div>
</div>
</div>
<!-- IMPORTANT MESSAGE -->
<div class="message-box">
<div class="message-label">⭐ اہم پیغام</div>
<div class="message-text">
<strong>بانجھ پن قابلِ تشخیص اور قابلِ علاج مسئلہ ہے۔</strong> بروقت ماہر ڈاکٹر سے مشورہ آپ کے والدین بننے کے خواب کو حقیقت میں بدل سکتا ہے۔
</div>
</div>
<!-- FOOTER -->
<div class="footer">
<div class="footer-brand">
<div class="brand-name">🏥 شفا آن لائن کنسلٹیشن</div>
<div class="brand-tagline">ماہر ڈاکٹروں سے آن لائن مشاورت دستیاب ہے</div>
</div>
<div class="footer-divider"></div>
<div class="footer-contact">
<div class="whatsapp-badge">
<span class="whatsapp-icon">💬</span>
<span class="whatsapp-number">03024309473</span>
</div>
<div class="paid-badge">★ PAID SERVICES ONLY ★</div>
</div>
</div>
</div>
</div>
</body>
</html>
chromium --headless --no-sandbox --disable-gpu --screenshot=/home/daytona/workspace/infertility-poster/poster.png --window-size=1080,1080 --hide-scrollbars "file:///home/daytona/workspace/infertility-poster/poster.html" 2>&1 | tail -5; ls -lh /home/daytona/workspace/infertility-poster/poster.png 2>/dev/null || echo "File not created"
python3 -c " from PIL import Image img = Image.open('/home/daytona/workspace/infertility-poster/poster.png') print('Size:', img.size) print('Mode:', img.mode) # Resize for preview preview = img.resize((540, 540), Image.LANCZOS) preview.save('/home/daytona/workspace/infertility-poster/preview.jpg', 'JPEG', quality=92) print('Preview saved') "
~/infertility-poster/poster.html
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/infertility-poster/poster.html'
chromium --headless --no-sandbox --disable-gpu --screenshot=/home/daytona/workspace/infertility-poster/poster.png --window-size=1080,1080 --hide-scrollbars "file:///home/daytona/workspace/infertility-poster/poster.html" 2>&1 | tail -2 && python3 -c " from PIL import Image img = Image.open('/home/daytona/workspace/infertility-poster/poster.png') print('Size:', img.size) preview = img.resize((540, 540), Image.LANCZOS) preview.save('/home/daytona/workspace/infertility-poster/preview.jpg', 'JPEG', quality=92) print('Preview saved') "
~/infertility-poster/poster.html
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/infertility-poster/poster.html'
chromium --headless --no-sandbox --disable-gpu --screenshot=/home/daytona/workspace/infertility-poster/poster.png --window-size=1080,1080 --hide-scrollbars "file:///home/daytona/workspace/infertility-poster/poster.html" 2>&1 | tail -2 && python3 -c " from PIL import Image img = Image.open('/home/daytona/workspace/infertility-poster/poster.png') print('Size:', img.size) preview = img.resize((540, 540), Image.LANCZOS) preview.save('/home/daytona/workspace/infertility-poster/preview.jpg', 'JPEG', quality=92) print('Done') "
poster
Image · PNG
| خصوصیت | تفصیل |
|---|---|
| سائز | 1080 × 1080 px (Ultra HD) |
| فارمیٹ | PNG (High Quality) |
| ڈیزائن | Dark Premium Medical Theme |
| رنگ | نیلا، فیروزی، سبز، سفید |
| زبان | اردو (Noto Nastaliq Urdu) |
| پلیٹ فارم | WhatsApp, Instagram, Facebook |
I am unable to see the poster show me in png file for downloadable
ls -lh /home/daytona/workspace/infertility-poster/
poster
Image · PNG

Generate a printable high-resolution PDF version
python3 -c " from PIL import Image from reportlab.lib.pagesizes import A4 from reportlab.pdfgen import canvas from reportlab.lib.units import mm import io # Open the original 1080x1080 PNG img = Image.open('/home/daytona/workspace/infertility-poster/poster.png') print('Original size:', img.size, img.mode) # For print quality, upsample to 300 DPI equivalent # 1080px at 96dpi screen = 11.25 inches # At 300 DPI print = 3375 x 3375 px img_hires = img.resize((3375, 3375), Image.LANCZOS) img_hires.save('/home/daytona/workspace/infertility-poster/poster_hires.png', 'PNG', dpi=(300,300)) print('Hi-res PNG saved:', img_hires.size) "
python3 << 'EOF' from PIL import Image from reportlab.lib.pagesizes import A4 from reportlab.pdfgen import canvas from reportlab.lib.units import mm, inch import os # Paths hires_png = '/home/daytona/workspace/infertility-poster/poster_hires.png' output_pdf = '/home/daytona/workspace/infertility-poster/Banjhpan_Infertility_Awareness_Poster.pdf' # Page size: square 210x210 mm (fits perfectly in A4 width, centered) # Or use A4 with the image centered # We'll use a square page = 210 x 210 mm at 300 DPI for clean print output page_size_mm = 210 # mm square page_size_pt = page_size_mm * mm # points c = canvas.Canvas(output_pdf, pagesize=(page_size_pt, page_size_pt)) # Set PDF metadata c.setTitle("بانجھ پن - Infertility Awareness Poster") c.setAuthor("Shifa Online Consultation") c.setSubject("Male & Female Infertility Medical Awareness - Urdu") c.setCreator("Orris Medical Poster Generator") # Draw the hi-res image filling the full page c.drawImage(hires_png, 0, 0, width=page_size_pt, height=page_size_pt, preserveAspectRatio=True, anchor='c') c.save() print("PDF saved:", output_pdf) # Check file size size = os.path.getsize(output_pdf) print(f"File size: {size/1024/1024:.2f} MB") EOF
Banjhpan Infertility Awareness Poster
PDF Document · PDF
| Property | Value |
|---|---|
| Resolution | 300 DPI (Print Quality) |
| Page Size | 210 × 210 mm (Square) |
| Image Size | 3375 × 3375 px |
| File Size | 5.81 MB |
| Format | PDF (printable) |
| Metadata | Title, Author, Subject embedded |