Closed zenichanin closed 6 months ago
Hey @zenichanin! Sorry for the late response 👍 If you haven't already solved the issue, it can be due to error in image path, check this out, it is your full command executed by package under the hood:
{PATH}/vendor/maestroerror/php-heic-to-jpg/src/../bin/heicToJpg "{PATH}/storage/app/livewire-tmp/GJaKMOPh3waY8j6ZJJCNGTwixsaPJp-metaMkI4XzU3OTkuaGVpYw==-.heic" "{PATH}/storage/app/livewire-tmp/GJaKMOPh3waY8j6ZJJCNGTwixsaPJp-metaMkI4XzU3OTkuaGVpYw==-.heic-138155045764e902f20811d2.70833782" 2>&1
There are strange {PATH}
strings in your images locations, I assume that it should be replaced by something, but it isn't 👍
Hey @MaestroError I just changed the system path to {PATH}
that is not actually in the command or the error.
The thing is it works perfectly fine on our local Mac and Windows, yet it returns that on the Ubuntu production server.
The image path we pass is the full system path starting from /home/user/etc...
i face the same issues in ec2 yum server.
locale in ubuntu os working good when I add :
base_path() . "/vendor/bin/heif-converter-linux".
but in the server not working.
any suggestions, please .
I have this same issue on a docker container! I even verify if the file exists and it does exist.
Same Issue here. Any suggested solutions?
Hi, guys! I tried several times but couldn't reproduce an issue. So, the only things I can suggest for now:
Any contributions are welcome! ❤️
Also, you can consider using JS package, if applicable: heic2any
Please, comment here if any of suggested packages helped you ❤️
getting the same issue [2024-02-13 11:40:22] local.DEBUG: RuntimeException: Couldn't convert HEIC to JPG: '2024/02/13 07:40:22 heif: no EXIF found\nunexpected fault address 0xffff7deaa010\nfatal error: fault\n[signal SIGSEGV: segmentation violation code=0x1 addr=0xffff7deaa010 pc=0x4b5f5c]\n\ngoroutine 1 [running]:\nruntime.throw(0x545dad, 0x5)\n /usr/local/go/src/runtime/panic.go:774 +0x54 fp=0x40000db260 sp=0x40000db230 pc=0x43ceb4\nruntime.sigpanic()\n /usr/local/go/src/runtime/signal_unix.go:401 +0x3cc fp=0x40000db290 sp=0x40000db260 pc=0x45023c\nimage/jpeg.yCbCrToYCbCr(0x40000c4100, 0x0, 0x0, 0x40000db3c0, 0x40000db8c0, 0x40000db4c0)\n /usr/local/go/src/image/jpeg/writer.go:461 +0x10c fp=0x40000db320 sp=0x40000db2a0 pc=0x4b5f5c\nimage/jpeg.(*encoder).writeSOS(0x400014a000, 0x565fc0, 0x40000c4100)\n /usr/local/go/src/image/jpeg/writer.go:547 +0x2d8 fp=0x40000dbce0 sp=0x40000db320 pc=0x4b6448\nimage/jpeg.Encode(0x565160, 0x4000146000, 0x565fc0, 0x40000c4100, 0x0, 0x565160, 0x4000146000)\n /usr/local/go/src/image/jpeg/writer.go:634 +0x230 fp=0x40000dbd60 sp=0x40000dbce0 pc=0x4b6920\nmain.convertHeicToJpg(0xfffff4aaa9e5, 0x26, 0xfffff4aaaa0c, 0x47, 0x0, 0x0)\n /go/src/github.com/MaestroError/php-heic-to-jpg/main.go:69 +0x1ec fp=0x40000dbe90 sp=0x40000dbd60 pc=0x4c756c\nmain.main()\n /go/src/github.com/MaestroError/php-heic-to-jpg/main.go:22 +0x60 fp=0x40000dbf50 sp=0x40000dbe90 pc=0x4c7160\nruntime.main()\n /usr/local/go/src/runtime/proc.go:203 +0x23c fp=0x40000dbfd0 sp=0x40000dbf50 pc=0x43e78c\nruntime.goexit()\n /usr/local/go/src/runtime/asm_arm64.s:1128 +0x4 fp=0x40000dbfd0 sp=0x40000dbfd0 pc=0x466394' | Bin used: 'php-heic-to-jpg-linux-arm64' HEIC: 'HTTP-118050687365cb1ce535dd31.13532322' Full Command: '/var/www/html/vendor/maestroerror/php-heic-to-jpg/src/../bin/php-heic-to-jpg-linux-arm64 "HTTP-118050687365cb1ce535dd31.13532322" "HTTP-118050687365cb1ce535dd31.13532322-64072229565cb1ce6baeb09.47286249" 2>&1' Output from heif-converter-image exe: in /var/www/html/vendor/maestroerror/php-heic-to-jpg/src/HeicToJpg.php:208
I am getting this error on production server (Linux) but it works on my local Mac. I am using the correct convert vs. convertOnMac methods.
Getting this error:
Server info:
Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-1028-aws x86_64)