Currently testing the uploading images and ran across it seems I am unable to resize or reformat Apple’s .heic format using the Server actions Resize Image and Save Image? Ideally I would like to resize the .heic image and save as a more compatible format such as .jpg or .png
I receive the error unsupported codec. I deploy out iPhones and iPads in our organization so having that as a option would be beneficial.
Thanks. Looks like you got it changed for me to a feature request. I went ahead and voted. I will look into your heic-convert link and see if I am able to do it that way until we can get it natively which would be great.
To follow up on this when I had some time I dove into the Wappler docs on creating a custom extension to accomplish this using the heic-convert you linked. I was able to create the extension and it does work so thanks for that. Unfortunately after further testing as its even stated in the heic-convert page during the conversion process a lot of the work is done synchronously so while its processing the .heic images everything else slows to a crawl for anyone on the site.
While Wappler uses Sharp for the image processing and Sharp does support HEIC images seems there are some changes needing to be done to libvips which I may not want to be messing with, that it would mess up other processes Sharp handles.
Yes this is why we couldn’t implement it. There are some licensing issues when issues HEIC so that is why it isn’t implemented in Sharp/libvips out of the box …
Thanks for the follow up George. Apple does like to make it harder on us all with their propriety formats. Unfortunately we issue Apple devices to our employees so I have to deal with that format. They also unfortunately also do not allow a managed device we own that we could push out the setting to take pictures as .jpg instead of .heic. That has to be manually done by the individual.
I see well then you should install the specific lipvips indeed, but do try first the latest version of sharp, they might have integrated it. It wasn’t fully clear to me.
maybe you could que it up with the bull que extension to not smack your server to hard when converting?
I voted as well, I know it’s a pain to implement, but it’s also a pain for us to implement, would be sweet to have an out of the box solution here. (I swear every job I do i hear about this)
Had some more time to work on this and implemented the Bull Queues. It does work and converts the images without bogging down the main system which is great. What is not great is it only sometimes works, sometimes when I upload the images everything gets put in a waiting status in the bull queue instead of actively processing. Then I go and recreate it (docker) and it then processes them. Make another change then publish then it stops working again so trying to figure out why that keeps happening.
An built in solution would definitely be ideal. I did try what George suggested and installed the latest version of Sharp but I just got the same initial error in my first post of unsupported codec.