Files
michaelschiemer/tests/debug/check-python-image.php
Michael Schiemer fc3d7e6357 feat(Production): Complete production deployment infrastructure
- Add comprehensive health check system with multiple endpoints
- Add Prometheus metrics endpoint
- Add production logging configurations (5 strategies)
- Add complete deployment documentation suite:
  * QUICKSTART.md - 30-minute deployment guide
  * DEPLOYMENT_CHECKLIST.md - Printable verification checklist
  * DEPLOYMENT_WORKFLOW.md - Complete deployment lifecycle
  * PRODUCTION_DEPLOYMENT.md - Comprehensive technical reference
  * production-logging.md - Logging configuration guide
  * ANSIBLE_DEPLOYMENT.md - Infrastructure as Code automation
  * README.md - Navigation hub
  * DEPLOYMENT_SUMMARY.md - Executive summary
- Add deployment scripts and automation
- Add DEPLOYMENT_PLAN.md - Concrete plan for immediate deployment
- Update README with production-ready features

All production infrastructure is now complete and ready for deployment.
2025-10-25 19:18:37 +02:00

35 lines
996 B
PHP

<?php
$img = imagecreatefrompng('/var/www/html/public/qrcode-python-large.png');
$width = imagesx($img);
$height = imagesy($img);
echo "Image dimensions: {$width}x{$height}\n\n";
// Check a few known positions
$scale = 20;
$qz = 4;
// Top-left corner of finder pattern (should be black)
$x = ($qz + 0) * $scale + 10;
$y = ($qz + 0) * $scale + 10;
$rgb = imagecolorat($img, $x, $y);
$r = ($rgb >> 16) & 0xFF;
echo "Position [0,0] (finder corner): RGB=$r, " . ($r < 128 ? "Black" : "White") . "\n";
// Format info position [8,0]
$x = ($qz + 0) * $scale + 10;
$y = ($qz + 8) * $scale + 10;
$rgb = imagecolorat($img, $x, $y);
$r = ($rgb >> 16) & 0xFF;
echo "Position [8,0] (format): RGB=$r, " . ($r < 128 ? "Black" : "White") . "\n";
// Try center of module instead
$x = ($qz + 0) * $scale + $scale/2;
$y = ($qz + 8) * $scale + $scale/2;
$rgb = imagecolorat($img, (int)$x, (int)$y);
$r = ($rgb >> 16) & 0xFF;
echo "Position [8,0] (center): RGB=$r, " . ($r < 128 ? "Black" : "White") . "\n";