You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I compress index.js and node_modules and upload zip file in aws lambda functions.
However when I convert heic to jpeg, it is not working (error : not supported fomat error)
=> I think, it was downloading libvips-8.8.1-linux-x64.tar.gz. So, Maybe it was not complied my global libvips.
So, I tried another process.
npm install --no-cache --arch=x64 --platform=linux --target=10.15.0 sharp
(in command)
info sharp Detected globally-installed libvips v8.8.4
info sharp Building from source via node-gyp
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
CXX(target) Release/obj.target/sharp/src/metadata.o
CXX(target) Release/obj.target/sharp/src/stats.o
CXX(target) Release/obj.target/sharp/src/operations.o
CXX(target) Release/obj.target/sharp/src/pipeline.o
CXX(target) Release/obj.target/sharp/src/sharp.o
CXX(target) Release/obj.target/sharp/src/utilities.o
SOLINK_MODULE(target) Release/sharp.node
But, It is also not working. (error:Something went wrong installing the "sharp" module
/var/task/node_modules/sharp/build/Release/sharp.node: invalid ELF header)
I want to convert heic format image to jpeg format.
How to docker install sharp in my global libvibs circumstance???
Please help me.
The text was updated successfully, but these errors were encountered:
I download it on my local mac and try ./configure & make & make install in vips-8.8.4 folder.
However, It was not work.
clang: error: unsupported option '-fopenmp'
make[3]: *** [heifload.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I install libvips in global => brew install vips
--------------- brew info vips -------------------
vips: stable 8.8.4 (bottled)
Image processing library
https://github.com/libvips/libvips
/usr/local/Cellar/vips/8.8.4 (166 files, 11.6MB) *
Poured from bottle on 2019-12-13 at 14:10:10
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/vips.rb
==> Dependencies
Build: pkg-config ✔
Required: cfitsio ✔, fftw ✔, fontconfig ✔, gettext ✔, giflib ✔, glib ✔, imagemagick ✔, libexif ✔, libgsf ✔, libheif ✔, libmatio ✔, libpng ✔, librsvg ✔, libtiff ✔, little-cms2 ✔, mozjpeg ✔, openexr ✔, openslide ✔, orc ✔, pango ✔, poppler ✔, webp ✔
==> Analytics
install: 2,531 (30 days), 6,027 (90 days), 19,448 (365 days)
install-on-request: 2,403 (30 days), 5,774 (90 days), 18,362 (365 days)
build-error: 0 (30 days)
I check Sharp.format in my local mac.
{ jpeg:
{ id: 'jpeg',
input: { file: true, buffer: true, stream: true },
output: { file: true, buffer: true, stream: true } },
png:
{ id: 'png',
input: { file: true, buffer: true, stream: true },
output: { file: true, buffer: true, stream: true } },
webp:
{ id: 'webp',
input: { file: true, buffer: true, stream: true },
output: { file: true, buffer: true, stream: true } },
tiff:
{ id: 'tiff',
input: { file: true, buffer: true, stream: true },
output: { file: true, buffer: true, stream: true } },
magick:
{ id: 'magick',
input: { file: true, buffer: true, stream: true },
output: { file: true, buffer: true, stream: true } },
openslide:
{ id: 'openslide',
input: { file: true, buffer: false, stream: false },
output: { file: false, buffer: false, stream: false } },
dz:
{ id: 'dz',
input: { file: false, buffer: false, stream: false },
output: { file: true, buffer: true, stream: true } },
ppm:
{ id: 'ppm',
input: { file: true, buffer: false, stream: false },
output: { file: true, buffer: false, stream: false } },
fits:
{ id: 'fits',
input: { file: true, buffer: false, stream: false },
output: { file: true, buffer: false, stream: false } },
gif:
{ id: 'gif',
input: { file: true, buffer: true, stream: true },
output: { file: false, buffer: false, stream: false } },
svg:
{ id: 'svg',
input: { file: true, buffer: true, stream: true },
output: { file: false, buffer: false, stream: false } },
heif:
{ id: 'heif',
input: { file: true, buffer: true, stream: true },
output: { file: true, buffer: true, stream: true } },
pdf:
{ id: 'pdf',
input: { file: true, buffer: true, stream: true },
output: { file: false, buffer: false, stream: false } },
vips:
{ id: 'vips',
input: { file: true, buffer: false, stream: false },
output: { file: true, buffer: false, stream: false } },
raw:
{ id: 'raw',
input: { file: false, buffer: true, stream: true },
output: { file: false, buffer: true, stream: true } } }
docker run -v "$PWD":/var/task lambci/lambda:build-nodejs10.x npm install sharp
(in command)
I compress index.js and node_modules and upload zip file in aws lambda functions.
However when I convert heic to jpeg, it is not working (error : not supported fomat error)
=> I think, it was downloading libvips-8.8.1-linux-x64.tar.gz. So, Maybe it was not complied my global libvips.
So, I tried another process.
npm install --no-cache --arch=x64 --platform=linux --target=10.15.0 sharp
(in command)
info sharp Detected globally-installed libvips v8.8.4
info sharp Building from source via node-gyp
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
CXX(target) Release/obj.target/sharp/src/metadata.o
CXX(target) Release/obj.target/sharp/src/stats.o
CXX(target) Release/obj.target/sharp/src/operations.o
CXX(target) Release/obj.target/sharp/src/pipeline.o
CXX(target) Release/obj.target/sharp/src/sharp.o
CXX(target) Release/obj.target/sharp/src/utilities.o
SOLINK_MODULE(target) Release/sharp.node
But, It is also not working. (error:Something went wrong installing the "sharp" module
/var/task/node_modules/sharp/build/Release/sharp.node: invalid ELF header)
I want to convert heic format image to jpeg format.
How to docker install sharp in my global libvibs circumstance???
Please help me.
The text was updated successfully, but these errors were encountered: