Budget: 70 USD Deadline: 2 days
Hello! The task is clear and right in my zone — clean client-side JS, I won't touch the PHP core of Tamaranga.
Here's how I'll do it:
• Intercept file selection before AJAX (change on input[type=file] / hook of your uploader).
• Determine format by MIME + extension (not just by name).
• HEIC/HEIF → JPEG via heic2any.
• AVIF, WebP, JFIF, TIFF, BMP, and heavy PNG/JPEG (>3-5 MB) → recompress via HTML5 Canvas to 1920px on the long side, quality 0.85.
• Wrap the result in new File() with .jpg and substitute it in FormData INSTEAD of the original — all field names, array structures, and AJAX parameters will be preserved exactly so that the engine accepts it as a regular JPEG and generates a preview itself.
• Promise queue — conversion strictly one photo at a time, the smartphone browser won't freeze on 5-10 photos.
• Loader "Optimizing photo..." + spinner during conversion.
First, I will create an isolated test on an empty HTML page with this form — I will show that it works; after your OK, I will transfer it to the Tamaranga template.
Deadline is 2 days, through a Secure Deal, starting today. I have a couple of clarifications regarding your AJAX uploader — I will send them in a private message at the start.