Vitron-Front/app/components/store
Arda Samadi 641abf711c fix(upload): preserve resolution when cropping product images
The crop canvas was sized to cropArea.width/height, which are the editor's
on-screen (CSS) pixels — a few hundred px. Phone photos were therefore
downscaled to that size before upload, so cropped product images came out
blurry (most visibly on iPhone, whose source photos are large).

Size the canvas to the crop region in the source image's native pixels
(adjustedCropWidth/Height, already computed) and draw 1:1. Bumped JPEG
quality 0.9 -> 0.92. The backend still caps the final image to 1600px webp,
so output size stays bounded.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 16:27:28 +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 first 2026-04-29 01:44:16 +03:30