Computer Science, asked by sumbalbatool56, 1 month ago

how API's used to convert png image to jpg image ? how link API's in html​

Answers

Answered by radheshyam6441
2

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.

Similar questions