ImageUploadField now opens a crop overlay (react-easy-crop) before uploading a newly selected file, and offers a "Zuschneiden" button to re-crop an already-set image without re-uploading. Cropping happens entirely client-side via canvas; the resulting blob is sent through the existing /uploads endpoint unchanged. Wired a fixed aspect ratio into the fields whose images are displayed at a fixed ratio elsewhere on the site (gallery project/brand covers and service images at 4:3, matching their public aspect-[4/3] cards; the hero image at 16:9). Logo fields (brands, car models, site logo) stay unset, defaulting to the source image's own aspect ratio so they aren't forced into an unrelated shape. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| vite.config.js | ||