5d6a4a630dfd174c4171dd1bf1a1793c2057d34b
Problem: cropper always called out.toBlob(..., 'image/jpeg') regardless of the original file type, silently converting PNGs to JPGs. Fix: - openCropper() now stores file.type and file.name on the cropper object - applyCrop() uses the stored mime type for toBlob() and the filename - Quality param only passed for lossy formats (jpeg/webp), not for PNG/GIF - uploadImage() accept list expanded: svg, ico allowed - Server-side: .svg and .ico added to allowed extensions Result: PNG stays PNG, WebP stays WebP, ICO stays ICO. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Description
No description provided
Languages
HTML
74.2%
C#
25.4%
Dockerfile
0.3%
Batchfile
0.1%