New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HEIC conversion #2004
Comments
At This means you'll need to compile and install libvips with support for libheif before installing sharp. Please see #1105 (comment) |
I install vips (brew install vips) I install sharp in my local lambda function folder. How to compile globally-installed copy of libvips?? |
@vdongbin I notice you opened #2006 so let's continue your question there. |
just in case it is helpful to others... With the pointer given by Lovell (thanks) I got things working by installing in the following order: libheif |
…nalpr (#264) This adds about 6 seconds of latency since `heic-convert` is written in JS, but it's better than nothing. Maybe I can get `sharp` working at some point. Fixes #263: > Here's a test image [share.icloud.com/photos/0-5_Dy6WhkGw_7G-mlzadci-w#New_York](https://share.icloud.com/photos/0-5_Dy6WhkGw_7G-mlzadci-w#New_York) > > I suspect openalpr doesn't support HEIC, and we might need to convert to JPG on the server before sending to openalpr, see [lovell/sharp#2004](lovell/sharp#2004) > > If we can't get sharp working, try [npmjs.com/package/heic-convert](https://www.npmjs.com/package/heic-convert)
Thanks for posting this @orkc, I just got it working!
|
This drops the latency from 6 seconds down to 1. However, it requires libheif and libvips to be installed, so I need to figure out how to do that on Heroku before this can be merged. On MacOS, this made it work (see lovell/sharp#2004 (comment)): ``` brew install libheif brew install libvips yarn remove sharp && yarn add sharp ``` Fixes #265: > See #264: > > > This adds about 6 seconds of latency since `heic-convert` is written in > > JS, but it's better than nothing. Maybe I can get `sharp` working at > > some point. > > Fixes #263: > > > Here's a test image [share.icloud.com/photos/0-5_Dy6WhkGw_7G-mlzadci-w#New_York](https://share.icloud.com/photos/0-5_Dy6WhkGw_7G-mlzadci-w#New_York) > > > I suspect openalpr doesn't support HEIC, and we might need to convert to JPG on the server before sending to openalpr, see [lovell/sharp#2004](lovell/sharp#2004) > > > If we can't get sharp working, try [npmjs.com/package/heic-convert](https://www.npmjs.com/package/heic-convert)
thanks, it works on my mac, but still doesn't work on the ubuntu server :( I've installed the libvips42, libvips-dev, libvips-tools, libheif and rebuilt sharp |
What are you trying to achieve?
Convert range of image types including HEIC to JPEG. After reading the historical trail I can find I am confused as to if Sharp can be used for converting HEIC to JPEG and if so then how to achieve that. I think that the current situation is that the answer is yes for input and experimental for output but not with the standard install. However, I do not understand the steps required to complete an installation that will support HEIC conversion. Can anyone confirm my understanding and if accurate provide the correct steps?
The text was updated successfully, but these errors were encountered: