Most browsers (everything but Safari/WebKit) can't decode HEIC in <img> or canvas, so picking an iPhone HEIC photo broke the preview and the crop editor, and could reach the backend in a format it couldn't process. Convert HEIC/HEIF to JPEG right after selection via heic2any (dynamically imported, browser-only). - new util app/utils/convert-heic.ts: isHeic() detection (MIME or extension when iOS reports no type) + convertHeicToJpeg()/convertHeicFiles(); never throws — falls back to the original file on failure. - wired into the product image picker (store.add.manual) and the store logo picker (StoreForm). - adds heic2any dependency. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| ColorSelector.tsx | ||
| ImageEditor.tsx | ||
| ImageUpload.tsx | ||
| ImageUploadDrawer.tsx | ||
| ImageUploadSection.tsx | ||
| PricingForm.tsx | ||
| ProductDetailsForm.tsx | ||
| ProductVariantDrawer.tsx | ||
| ProductVariantsSection.tsx | ||
| SizeSelector.tsx | ||
| StoreForm.tsx | ||