{"repo":"MaestroError/php-heic-to-jpg","free":true,"listed":false,"github":"https://github.com/MaestroError/php-heic-to-jpg","clone":"git clone https://github.com/MaestroError/php-heic-to-jpg.git","description":"The easiest way to convert HEIC images to JPEG with PHP and Laravel framework (Go-Based conversion)","language":"PHP","stars":184,"topics":["heic-to-jpg","heictojpg","laravel","golang","php"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"php-heic-to-jpg The easiest way to convert HEIC/HEIF images to JPEG with PHP and Laravel framework. It uses binary file created with Go language and has no dependencies on any other PHP libraries, extensions or third-part software - Installation - Usage - For MacOS users - Force arm64 for linux - isHeic method - convertFromUrl method - Mdat issue - Credits - Support Installation Run command in your project's root directory Usage Using the class \"HeicToJpeg\" is extremely simple. You need full location of any HEIC image to pass in \"convert\" function and call \"saveAs\" (save as file) or \"get\" (get file contents) methods. For MacOS users It should detect the OS itself, but if you want to specify architecture, it is recommended to use convertOnMac instead. The second argument is architecture of your system, by default set as \"amd64\", but you can specify \"arm64\" (AArch64, M1) Note: As reported by several users, M1 Macbook works on amd64 binary file, so if arm64 doesn't work for you, just try convertOnMac(\"image1.heic\") Force arm64 for linux In case of linux, for some reason, if it doesn't detect your architecture correct or just the php-heic-to-jpg-linux-arm64 binary is working for you well, (From v1.0.4) you can force it to use in convert and convertFromUrl by passing true as third argument: isHeic method Before converting, you can use the isHeic method (contributed by pbs-dg) to check if a file is HEIC format. convertFromUrl method If your image is available publicly, you can easi","default_branch":null,"files":null,"tree":[],"storefront":"/r/MaestroError","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MaestroError/php-heic-to-jpg/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}