| Write python code to Create an API endpoint for image upload with format conversion using Flask. accepts image file via POST /upload-image; validates format and size; converts to target format; saves securely. Structure the project as: app/, routes/upload.py, utils/image_processor.py. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |