how API's used to convert png image to jpg image ? how link API's in html
Share
how API's used to convert png image to jpg image ? how link API's in html
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
api = cloudconvert. Api('your_api_key')
process = api.
"inputformat": "png",
"outputformat": "jpg",
"input": "upload",
"file": open('inputfile.png', 'rb')
Explanation:
create a request variable and assign a new XMLHttpRequest object to it. Then we'll open a new connection with the open() method - in the arguments we'll specify the type of request as GET as well as the URL of the API endpoint. The request completes and we can access the data inside the onload function.