Output
Konimage Tests - What They Check
25 automated checks that run before any code changes go live
Saving Photos Locally (10 checks)
When PropertyMe sends us a property photo, we save a copy on our server so we don't have to re-download it every time. These tests make sure:
- Photos get saved to the right folder with the right name
- We can find photos we've already saved
- We can delete old photos when a listing is removed
- We keep track of how many photos we've stored
Resizing Photos (5 checks)
Property photos from agents are often huge (5000+ pixels wide). We resize them to web-friendly sizes. These tests make sure:
- Photos resize to the correct width (2000px, 1400px, or 800px)
- The resized photo is still a valid image file
- Cropping works for square thumbnails
- We don't accidentally make small photos bigger (which looks blurry)
Security & Requests (6 checks)
Only authorized systems should be able to use konimage. These tests make sure:
- Requests with the correct password are accepted
- Requests with wrong passwords are rejected
- The daily password (based on today's date) works
- Different types of requests (resize, fetch, health check) are handled correctly
Saving Final Images (3 checks)
After resizing, we save the final photos. These tests make sure:
- Photos are saved with the correct filename
- Corrupted or fake "photos" are rejected
- The photos folder is created automatically if it doesn't exist
Why This Matters
Every time we make a change to the image processing code, these 25 checks run automatically. If any check fails, the change is blocked. This prevents bugs from breaking the property photos on konnect.homes and konnect.rentals.
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Created
1 Jan 2026, 10:43 pm
Updated
2 Jan 2026, 3:10 pm
Created By
claude
Raw Data
{
"id": "51b01b57-cf2a-4f91-81ec-df6e7b565381",
"type": "general",
"status": "completed",
"title": "Konimage Tests - Plain English",
"description": "What the image tests check, explained simply",
"context": {
"output": "<div style=\"background:#fff;color:#222;padding:20px;border-radius:8px;\">\n<h2 style=\"color:#111;margin:0 0 8px 0;\">Konimage Tests - What They Check</h2>\n<p style=\"color:#666;margin:0 0 20px 0;\">25 automated checks that run before any code changes go live</p>\n\n<div style=\"background:#f0fdf4;padding:16px;border-radius:8px;margin-bottom:16px;border-left:4px solid #22c55e;\">\n<h3 style=\"color:#166534;margin:0 0 12px 0;\">Saving Photos Locally (10 checks)</h3>\n<p style=\"margin:0;color:#333;line-height:1.7;\">When PropertyMe sends us a property photo, we save a copy on our server so we don't have to re-download it every time. These tests make sure:</p>\n<ul style=\"margin:12px 0 0 0;padding-left:20px;color:#333;line-height:1.8;\">\n<li>Photos get saved to the right folder with the right name</li>\n<li>We can find photos we've already saved</li>\n<li>We can delete old photos when a listing is removed</li>\n<li>We keep track of how many photos we've stored</li>\n</ul>\n</div>\n\n<div style=\"background:#fef3c7;padding:16px;border-radius:8px;margin-bottom:16px;border-left:4px solid #f59e0b;\">\n<h3 style=\"color:#92400e;margin:0 0 12px 0;\">Resizing Photos (5 checks)</h3>\n<p style=\"margin:0;color:#333;line-height:1.7;\">Property photos from agents are often huge (5000+ pixels wide). We resize them to web-friendly sizes. These tests make sure:</p>\n<ul style=\"margin:12px 0 0 0;padding-left:20px;color:#333;line-height:1.8;\">\n<li>Photos resize to the correct width (2000px, 1400px, or 800px)</li>\n<li>The resized photo is still a valid image file</li>\n<li>Cropping works for square thumbnails</li>\n<li>We don't accidentally make small photos bigger (which looks blurry)</li>\n</ul>\n</div>\n\n<div style=\"background:#ede9fe;padding:16px;border-radius:8px;margin-bottom:16px;border-left:4px solid #8b5cf6;\">\n<h3 style=\"color:#5b21b6;margin:0 0 12px 0;\">Security & Requests (6 checks)</h3>\n<p style=\"margin:0;color:#333;line-height:1.7;\">Only authorized systems should be able to use konimage. These tests make sure:</p>\n<ul style=\"margin:12px 0 0 0;padding-left:20px;color:#333;line-height:1.8;\">\n<li>Requests with the correct password are accepted</li>\n<li>Requests with wrong passwords are rejected</li>\n<li>The daily password (based on today's date) works</li>\n<li>Different types of requests (resize, fetch, health check) are handled correctly</li>\n</ul>\n</div>\n\n<div style=\"background:#e0f2fe;padding:16px;border-radius:8px;margin-bottom:16px;border-left:4px solid #0ea5e9;\">\n<h3 style=\"color:#0369a1;margin:0 0 12px 0;\">Saving Final Images (3 checks)</h3>\n<p style=\"margin:0;color:#333;line-height:1.7;\">After resizing, we save the final photos. These tests make sure:</p>\n<ul style=\"margin:12px 0 0 0;padding-left:20px;color:#333;line-height:1.8;\">\n<li>Photos are saved with the correct filename</li>\n<li>Corrupted or fake \"photos\" are rejected</li>\n<li>The photos folder is created automatically if it doesn't exist</li>\n</ul>\n</div>\n\n<div style=\"background:#f5f5f5;padding:16px;border-radius:8px;border-left:4px solid #6b7280;\">\n<h3 style=\"color:#374151;margin:0 0 8px 0;\">Why This Matters</h3>\n<p style=\"margin:0;color:#666;line-height:1.6;\">Every time we make a change to the image processing code, these 25 checks run automatically. If any check fails, the change is blocked. This prevents bugs from breaking the property photos on konnect.homes and konnect.rentals.</p>\n</div>\n</div>",
"requestedAt": "2026-01-01T12:42:00.000Z",
"requestId": "70391735-a762-42c9-96b5-9b9c9fbca47e"
},
"createdBy": "claude",
"createdAt": "2026-01-01T12:43:30.333Z",
"updatedAt": "2026-01-02T05:10:54.070Z",
"requestId": "70391735-a762-42c9-96b5-9b9c9fbca47e"
}