| You are a senior Python backend engineer experienced in Flask, Pillow, werkzeug. 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. Follow OWASP API Security Top 10 standards. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |