HifiPlanet-Website/hifi-src/src/utils
Maaxxs 48a2b5f7a6 Add image cropping to the shared upload field
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>
2026-09-09 23:59:27 +02:00
..
businessHours.js Add CMS v1: editable business identity and legal pages 2026-09-09 02:03:59 +02:00
cropImage.js Add image cropping to the shared upload field 2026-09-09 23:59:27 +02:00
dragAnchorPosition.js Add live-preview positioning to all homepage sections 2026-09-09 03:42:17 +02:00