Vitron-Front/app/components/store
Arda Samadi bac93568f5 feat(upload): convert HEIC/HEIF to JPEG on the client before preview/upload
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>
2026-06-23 16:43:30 +03:30
..
ColorSelector.tsx first 2026-04-29 01:44:16 +03:30
ImageEditor.tsx fix(upload): preserve resolution when cropping product images 2026-06-23 16:27:28 +03:30
ImageUpload.tsx first 2026-04-29 01:44:16 +03:30
ImageUploadDrawer.tsx first 2026-04-29 01:44:16 +03:30
ImageUploadSection.tsx first 2026-04-29 01:44:16 +03:30
PricingForm.tsx first 2026-04-29 01:44:16 +03:30
ProductDetailsForm.tsx first 2026-04-29 01:44:16 +03:30
ProductVariantDrawer.tsx first 2026-04-29 01:44:16 +03:30
ProductVariantsSection.tsx first 2026-04-29 01:44:16 +03:30
SizeSelector.tsx first 2026-04-29 01:44:16 +03:30
StoreForm.tsx feat(upload): convert HEIC/HEIF to JPEG on the client before preview/upload 2026-06-23 16:43:30 +03:30