serverlesspub / imagemagick-aws-lambda-2

ImageMagick for AWS Lambda 2 runtimes
https://serverless.pub
Other
259 stars 163 forks source link

Convert Issue (Possibly fixed by latest Image Magick build) #41

Open reply2srij opened 2 years ago

reply2srij commented 2 years ago

I have integrated this layer to my Lambda to use ImageMagick's convert function (TIF or JPG to PNG) and resize functions. JPG works fine, but TIF is giving the following error

org.im4java.core.CommandException: convert: improper image header `/tmp/XYZ_IMG.TIF' @ error/tiff.c/ReadTIFFImage/1388

Did anyone using this layer encounter a similar issue? If yes, can you please post how you resolved the issue?

https://github.com/ImageMagick/ImageMagick/issues/1091 says newer Image Magick build would resolve the issue. Highly appreciate it if a newer build version layer is provided for use by the community.