{"_id":"@apiverve/imageconverter","_rev":"3-6f813d956b83a787eb471132781bd55c","name":"@apiverve/imageconverter","dist-tags":{"latest":"1.2.0"},"versions":{"1.1.13":{"name":"@apiverve/imageconverter","version":"1.1.13","keywords":[],"author":{"url":"https://apiverve.com","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/imageconverter@1.1.13","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/imageconverter?utm_source=npm&utm_medium=homepage","bugs":{"url":"https://github.com/apiverve/imageconverter-api/issues"},"dist":{"shasum":"ffb1aa5f72b9763c08c21073f32f52e744a688d7","tarball":"https://registry.npmjs.org/@apiverve/imageconverter/-/imageconverter-1.1.13.tgz","fileCount":5,"integrity":"sha512-MdDPjh+jwW/tuYORng/0mT2XL0IN29tZ7GE5w6oSw2FylEoqR+LK1sDeTu6RHMqkjuJpRwGZFBaxeI/xKBTqpw==","signatures":[{"sig":"MEQCIAjG7ieeZPfwzqn00HK6rb1X9kpmC5tSozDcK57LeyWEAiAzqF/u20aV5oPWTbvPBAVfcCDOFzifQoB1cg4r3FInWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22893},"main":"index.js","types":"index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"603be281ba20b71024115a78fa6ae64907e245cc","scripts":{"test":"mocha","example":"node examples/basic.js"},"_npmUser":{"name":"charifield","email":"charifield@gmail.com"},"repository":{"url":"git+https://github.com/apiverve/imageconverter-api.git","type":"git","directory":"npm"},"_npmVersion":"10.9.3","description":"Image Converter transforms images between formats. Convert HEIC from iPhones, modern WebP and AVIF formats, or classic PNG, JPG, GIF, and TIFF. Includes optional resizing and quality control.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"axios":"1.13.2","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/imageconverter_1.1.13_1771045771458_0.42346363477061133","host":"s3://npm-registry-packages-npm-production"}},"1.1.14":{"name":"@apiverve/imageconverter","version":"1.1.14","keywords":[],"author":{"url":"https://apiverve.com","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/imageconverter@1.1.14","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/imageconverter?utm_source=npm&utm_medium=homepage","bugs":{"url":"https://github.com/apiverve/imageconverter-api/issues"},"dist":{"shasum":"16d0866d33088dd1cd0a62e8895e0b7e810d9c58","tarball":"https://registry.npmjs.org/@apiverve/imageconverter/-/imageconverter-1.1.14.tgz","fileCount":5,"integrity":"sha512-J/OJIGgxoKPWLXlQiZgsASZ7ygBklwwcAf+DmjNGsNOk5ZdBSoUl71uIx2BEcn3A4lMu5LlWi6rh4menUjyJqA==","signatures":[{"sig":"MEYCIQChHLfjcRCHkGsxCRmW84T2tas1yVaIr+OvA09R1f27WQIhALGnHRDB5bwaOsk+sSuCQ1LHzt70Aapb3Z42ipie+hLW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22602},"main":"index.js","types":"index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"2f35257ac4df6e979213a38ff3974fd82a1cf5b1","scripts":{"test":"mocha","example":"node examples/basic.js"},"_npmUser":{"name":"charifield","email":"charifield@gmail.com"},"repository":{"url":"git+https://github.com/apiverve/imageconverter-api.git","type":"git","directory":"npm"},"_npmVersion":"10.9.3","description":"Image Converter transforms images between formats. Convert HEIC from iPhones, modern WebP and AVIF formats, or classic PNG, JPG, GIF, and TIFF. Includes optional resizing and quality control.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"axios":"1.13.2","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/imageconverter_1.1.14_1771237763619_0.9402459322669519","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@apiverve/imageconverter","version":"1.2.0","description":"Image Converter transforms images between formats. Convert HEIC from iPhones, modern WebP and AVIF formats, or classic PNG, JPG, GIF, and TIFF. Includes optional resizing and quality control.","main":"index.js","types":"index.d.ts","sideEffects":false,"engines":{"node":">=18.0.0"},"scripts":{"test":"mocha","example":"node examples/basic.js"},"repository":{"type":"git","url":"git+https://github.com/apiverve/imageconverter-api.git","directory":"npm"},"keywords":["image converter api","convert image format","heic to png","heic to jpg","webp to png"],"author":{"name":"APIVerve","email":"hello@apiverve.com","url":"https://apiverve.com"},"license":"MIT","bugs":{"url":"https://github.com/apiverve/imageconverter-api/issues"},"homepage":"https://apiverve.com/marketplace/imageconverter?utm_source=npm&utm_medium=homepage","devDependencies":{"mocha":"^11.0.1","chai":"^5.1.2","dotenv":"^16.4.7"},"dependencies":{"axios":"1.13.2","form-data":"^4.0.1"},"gitHead":"2878cdb345f00af84126a08bcc1be2b68ae96fec","_id":"@apiverve/imageconverter@1.2.0","_nodeVersion":"24.15.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-5rg5963Wduzwi3c6VSrYQHsWTEiumSl2vv+41ef0XMdtaJoD3eS+YUZPrvj/Af1eYXYGJfJP3dyDHG3whTOMFw==","shasum":"14140326a5bac3fd8d75d8b8d5a7d339eafe8f94","tarball":"https://registry.npmjs.org/@apiverve/imageconverter/-/imageconverter-1.2.0.tgz","fileCount":5,"unpackedSize":23093,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCcbN/lCWTZ3xm3Tdcd1sN9/SDTYHrySDQRidfqEIZ4GAIhAKr/jmYhFO0Pn4+SXvJfQds4uaNlfrdNhwIa+IZiWvn4"}]},"_npmUser":{"name":"apivervehq","email":"hello@apiverve.com"},"directories":{},"maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/imageconverter_1.2.0_1784150873465_0.13524140337116952"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-14T05:09:31.379Z","modified":"2026-07-15T21:27:53.794Z","1.1.13":"2026-02-14T05:09:31.637Z","1.1.14":"2026-02-16T10:29:23.785Z","1.2.0":"2026-07-15T21:27:53.634Z"},"bugs":{"url":"https://github.com/apiverve/imageconverter-api/issues"},"author":{"name":"APIVerve","email":"hello@apiverve.com","url":"https://apiverve.com"},"license":"MIT","homepage":"https://apiverve.com/marketplace/imageconverter?utm_source=npm&utm_medium=homepage","keywords":["image converter api","convert image format","heic to png","heic to jpg","webp to png"],"repository":{"type":"git","url":"git+https://github.com/apiverve/imageconverter-api.git","directory":"npm"},"description":"Image Converter transforms images between formats. Convert HEIC from iPhones, modern WebP and AVIF formats, or classic PNG, JPG, GIF, and TIFF. Includes optional resizing and quality control.","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"readme":"# Image Converter API\r\n\r\nImage Converter transforms images between formats. Convert HEIC from iPhones, modern WebP and AVIF formats, or classic PNG, JPG, GIF, and TIFF. Includes optional resizing and quality control.\r\n\r\n![Build Status](https://img.shields.io/badge/build-passing-green)\r\n![Code Climate](https://img.shields.io/badge/maintainability-B-purple)\r\n![Prod Ready](https://img.shields.io/badge/production-ready-blue)\r\n[![npm version](https://img.shields.io/npm/v/@apiverve/imageconverter.svg)](https://www.npmjs.com/package/@apiverve/imageconverter)\r\n\r\nThis is a Javascript Wrapper for the [Image Converter API](https://apiverve.com/marketplace/imageconverter?utm_source=npm&utm_medium=readme)\r\n\r\n---\r\n\r\n## Installation\r\n\r\nUsing npm:\r\n```shell\r\nnpm install @apiverve/imageconverter\r\n```\r\n\r\nUsing yarn:\r\n```shell\r\nyarn add @apiverve/imageconverter\r\n```\r\n\r\n---\r\n\r\n## Configuration\r\n\r\nBefore using the Image Converter API client, you have to setup your account and obtain your API Key.\r\nYou can get it by signing up at [https://apiverve.com](https://apiverve.com?utm_source=npm&utm_medium=readme)\r\n\r\n---\r\n\r\n## Quick Start\r\n\r\n[Get started with the Quick Start Guide](https://docs.apiverve.com/quickstart?utm_source=npm&utm_medium=readme)\r\n\r\nThe Image Converter API documentation is found here: [https://docs.apiverve.com/ref/imageconverter](https://docs.apiverve.com/ref/imageconverter?utm_source=npm&utm_medium=readme).\r\nYou can find parameters, example responses, and status codes documented here.\r\n\r\n### Setup\r\n\r\n```javascript\r\nconst imageconverterAPI = require('@apiverve/imageconverter');\r\nconst api = new imageconverterAPI({\r\n    api_key: '[YOUR_API_KEY]'\r\n});\r\n```\r\n\r\n---\r\n\r\n## Usage\r\n\r\n### File Upload\r\n\r\nThis API requires a file upload. Use `executeWithFile()` to upload files:\r\n\r\n```javascript\r\n// Upload a file (path, Buffer, or ReadStream)\r\napi.executeWithFile('/path/to/file.image', options, callback);\r\n```\r\n\r\n**Accepted file types:** .heic, .heif, .avif, .webp, .png, .jpg, .jpeg, .gif, .tiff, .tif, .bmp, .pdf, .svg\r\n**Maximum file size:** 10 MB\r\n\r\n### Available Parameters\r\n\r\nPass additional parameters via `options.fields`:\r\n\r\n| Parameter | Type | Description |\r\n|-----------|------|-------------|\r\n| `outputFormat` | string | Target format *(required)* |\r\n| `quality` | integer | Output quality (applies to jpg/webp) |\r\n| `maxWidth` | integer | Maximum width in pixels (maintains aspect ratio) |\r\n| `maxHeight` | integer | Maximum height in pixels (maintains aspect ratio) |\r\n\r\n```javascript\r\napi.executeWithFile('/path/to/file', {\r\n    fields: {\r\n        outputFormat: 'png',\r\n        quality: 90,\r\n        maxWidth: 1920,\r\n        maxHeight: 1080\r\n    }\r\n});\r\n```\r\n\r\n---\r\n\r\n### Perform Request\r\n\r\nUsing the API is simple. All you have to do is make a request. The API will return a response with the data you requested.\r\n\r\n```javascript\r\n// This API requires a file upload\n// You can pass a file path, Buffer, or ReadStream\nvar filePath = '/path/to/image.heic';\r\n\r\napi.executeWithFile(filePath,\n    {\n        fields: {\n        outputFormat: 'png',\n        quality: 90,\n        maxWidth: 1920,\n        maxHeight: 1080\n        }\n    }, function (error, data) {\r\n    if (error) {\r\n        return console.error(error);\r\n    } else {\r\n        console.log(data);\r\n    }\r\n});\r\n```\r\n\r\n---\r\n\r\n### Using Promises\r\n\r\nYou can also use promises to make requests. The API returns a promise that you can use to handle the response.\r\n\r\n```javascript\r\n// This API requires a file upload\n// You can pass a file path, Buffer, or ReadStream\nvar filePath = '/path/to/image.heic';\r\n\r\napi.executeWithFile(filePath, { fields: { /* parameters */ } })\r\n    .then(data => {\r\n        console.log(data);\r\n    })\r\n    .catch(error => {\r\n        console.error(error);\r\n    });\r\n```\r\n\r\n---\r\n\r\n### Using Async/Await\r\n\r\nYou can also use async/await to make requests. The API returns a promise that you can use to handle the response.\r\n\r\n```javascript\r\nasync function makeRequest() {\r\n    // This API requires a file upload\n// You can pass a file path, Buffer, or ReadStream\nvar filePath = '/path/to/image.heic';\r\n\r\n    try {\r\n        const data = await api.executeWithFile(filePath, { fields: { /* parameters */ } });\r\n        console.log(data);\r\n    } catch (error) {\r\n        console.error(error);\r\n    }\r\n}\r\n```\r\n\r\n---\r\n\r\n## Example Response\r\n\r\n```json\r\n{\n  \"status\": \"ok\",\n  \"error\": null,\n  \"data\": {\n    \"id\": \"a1b2c3d4-5678-90ab-cdef-1234567890ab\",\n    \"inputFormat\": \"heic\",\n    \"outputFormat\": \"png\",\n    \"inputSize\": 2456789,\n    \"outputSize\": 1834567,\n    \"mimeType\": \"image/png\",\n    \"expires\": 1707350400000,\n    \"downloadURL\": \"https://storage.googleapis.com/apiverve/imageconverter/a1b2c3d4.png\"\n  },\n  \"code\": 200\n}\r\n```\r\n\r\n---\r\n\r\n## Customer Support\r\n\r\nNeed any assistance? [Get in touch with Customer Support](https://apiverve.com/contact?utm_source=npm&utm_medium=readme).\r\n\r\n---\r\n\r\n## Updates\r\n\r\nStay up to date by following [@apiverveHQ](https://twitter.com/apiverveHQ) on Twitter.\r\n\r\n---\r\n\r\n## Legal\r\n\r\nAll usage of the APIVerve website, API, and services is subject to the [APIVerve Terms of Service](https://apiverve.com/terms?utm_source=npm&utm_medium=readme), [Privacy Policy](https://apiverve.com/privacy?utm_source=npm&utm_medium=readme), and [Refund Policy](https://apiverve.com/refund?utm_source=npm&utm_medium=readme).\r\n\r\n---\r\n\r\n## License\r\nLicensed under the The MIT License (MIT)\r\n\r\nCopyright (&copy;) 2026 APIVerve, and EvlarSoft LLC\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n","readmeFilename":"README.md"}